Revision 86
Updated wireless library, fixing bug and now works for a firefly if FIREFLY is defined.
wireless.c | ||
---|---|---|
10 | 10 |
#include <signal.h> |
11 | 11 |
#else |
12 | 12 |
#include <time.h> |
13 |
#ifndef FIREFLY |
|
13 | 14 |
#include <bom.h> |
14 | 15 |
#endif |
16 |
#endif |
|
15 | 17 |
|
16 | 18 |
/*Function Prototypes*/ |
17 | 19 |
|
... | ... | |
65 | 67 |
|
66 | 68 |
//begin timeout timer |
67 | 69 |
#ifdef ROBOT |
70 |
#ifdef FIREFLY |
|
71 |
rtc_init(PRESCALE_DIV_128, 32, &wl_do_timeout); |
|
72 |
#else |
|
68 | 73 |
rtc_init(HALF_SECOND, &wl_do_timeout); |
74 |
#endif |
|
69 | 75 |
#else |
70 | 76 |
//create a timer to trigger every half second |
71 | 77 |
struct sigevent evp; |
Also available in: Unified diff