Project

General

Profile

Statistics
| Revision:

root / branches / lemmings / code / behaviors / lemmings / driver.c @ 332

History | View | Annotate | Download (453 Bytes)

1 239 emarinel
/** driver for lemmings code
2
        continually execute lemmings behavior
3
*/
4
5
#include <dragonfly_lib.h>
6
#include <wireless.h>
7
#include <wl_token_ring.h>
8
#include "lemmings.h"
9
10
11
int main(void) {
12 258 dsschult
  // enable everything
13 239 emarinel
  dragonfly_init(ALL_ON);
14
  orb_enable();
15 295 dsschult
  orb_init();
16 239 emarinel
  wl_init();
17
  wl_token_ring_register();
18
  wl_token_ring_join(); // join token ring
19
20
  lemmings_init();
21
22
  while(1) {
23
    wl_do();
24 258 dsschult
    lemmings_FSM(); // do lemmings
25 239 emarinel
  }
26
27
  return 0;
28
}