root / branches / autonomous_recharging / code / projects / autonomous_recharging / charging_station / main.c @ 116
History | View | Annotate | Download (431 Bytes)
1 |
#include <firefly+_lib.h> |
---|---|
2 |
|
3 |
#include <wireless.h> |
4 |
#include <wl_token_ring.h> |
5 |
|
6 |
#include "charging.h" |
7 |
|
8 |
int main(void) |
9 |
{ |
10 |
analog_init(); |
11 |
led_init(); |
12 |
orb_init(); |
13 |
buzzer_init(); |
14 |
usb_init(BAUD115200); |
15 |
xbee_init(BAUD9600); |
16 |
|
17 |
//dragonfly_init(ALL_ON);
|
18 |
|
19 |
usb_puts("Initializing wireless.\n");
|
20 |
wl_init(); |
21 |
wl_token_ring_register(); |
22 |
charging_init(); |
23 |
|
24 |
usb_puts("Charging station initialized.\n");
|
25 |
|
26 |
while (1) |
27 |
wl_do(); |
28 |
|
29 |
return 0; |
30 |
} |
31 |
|