Project

General

Profile

Revision 258

cleaned up lemmings code
added more comments

View differences:

driver.c
7 7
#include <wl_token_ring.h>
8 8
#include "lemmings.h"
9 9

  
10
/* ORB COLORS
11
  RED: light blue
12
  ORANGE: light blue
13
  YELLOW: light blue
14
  GREEN:
15
  BLUE:
16
*/
17 10

  
18 11
int main(void) {
12
  // enable everything
19 13
  dragonfly_init(ALL_ON);
20 14
  orb_enable();
21

  
22 15
  wl_init();
23 16
  wl_token_ring_register();
24 17
  wl_token_ring_join(); // join token ring
......
27 20

  
28 21
  while(1) {
29 22
    wl_do();
30
    lemmings_FSM();
23
    lemmings_FSM(); // do lemmings
31 24
  }
32 25

  
33 26
  return 0;

Also available in: Unified diff