Revision 706
This is the first attempt at porting the wireless library to the charge bay board. This mostly involved a lot of complicated #defines to change hardware interface. ROBOT and BAYBOARD should be defined when compiling, which currently I think is handled in the Makefile with -D arguments. This code does not work, still working on debugging.
wl_token_ring.c | ||
---|---|---|
42 | 42 |
#include <sensor_matrix.h> |
43 | 43 |
|
44 | 44 |
#ifdef ROBOT |
45 |
#ifndef FIREFLY |
|
46 |
#include <bom.h> |
|
47 |
#endif |
|
45 |
#ifndef FIREFLY |
|
46 |
#ifdef BAYBOARD |
|
47 |
#include <lbom.h> |
|
48 |
#else |
|
49 |
#include <bom.h> |
|
50 |
#endif |
|
51 |
#endif |
|
48 | 52 |
#include <time.h> |
49 | 53 |
#endif |
50 | 54 |
|
... | ... | |
111 | 115 |
|
112 | 116 |
#ifdef ROBOT |
113 | 117 |
#ifndef FIREFLY |
118 |
#ifdef BAYBOARD |
|
114 | 119 |
static void (*bom_on_function) (void) = bom_on; |
115 | 120 |
static void (*bom_off_function) (void) = bom_off; |
121 |
static int (*get_max_bom_function) (void) = get_nothing; |
|
122 |
#else |
|
123 |
static void (*bom_on_function) (void) = bom_on; |
|
124 |
static void (*bom_off_function) (void) = bom_off; |
|
116 | 125 |
static int (*get_max_bom_function) (void) = get_max_bom; |
126 |
#endif |
|
117 | 127 |
#else |
118 | 128 |
static void (*bom_on_function) (void) = do_nothing; |
119 | 129 |
static void (*bom_off_function) (void) = do_nothing; |
Also available in: Unified diff