Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / libwireless / robotTest / main.c @ 1430

History | View | Annotate | Download (550 Bytes)

1
#include <dragonfly_lib.h>
2
#include <wireless.h>
3
#include <wl_token_ring.h>
4
#include <xbee.h>
5

    
6
int main(void)
7
{
8
        //usb_puts("Turned on.\n");
9
        dragonfly_init(ALL_ON);
10
        usb_puts("Dragonfly initialized.\n");
11
        //range_init();
12
        //orb_enable();
13
        //usb_puts("Rangefinders initialized.\n");
14
        wl_init();
15
        usb_puts("Wireless initialized.\n");
16

    
17
        wl_set_channel(0xF);
18
        usb_puts("Wireless channel set.\n");
19
        wl_token_ring_register();
20
        usb_puts("Token ring initialized.\n");
21
        wl_token_ring_join();
22
        usb_puts("Token ring joined.\n");
23
        while (1)
24
        {
25
                wl_do();
26
        }
27
}
28