root / trunk / code / projects / libwireless / robotTest / main.c @ 138
History | View | Annotate | Download (337 Bytes)
1 |
#include <dragonfly_lib.h> |
---|---|
2 |
#include <wireless.h> |
3 |
#include <wl_token_ring.h> |
4 |
|
5 |
int main(void) |
6 |
{ |
7 |
dragonfly_init(ALL_ON); |
8 |
usb_puts("Start.\r\n");
|
9 |
orb_set_color(GREEN); |
10 |
wl_init(); |
11 |
orb_set_color(YELLOW); |
12 |
usb_puts("Wireless initialized.\n");
|
13 |
wl_token_ring_register(); |
14 |
wl_token_ring_join(); |
15 |
orb_set_color(CYAN); |
16 |
while (1) |
17 |
wl_do(); |
18 |
} |