Revision 336
Updated wireless to use a circular buffer instead of a queue using malloc. Tested on both the computer and robots with a token ring, and was successful.
xbee.h | ||
---|---|---|
43 | 43 |
* Also, a backup port if the other is used. |
44 | 44 |
**/ |
45 | 45 |
#ifndef ROBOT |
46 |
#ifndef XBEE_PORT |
|
47 |
#define XBEE_PORT "/dev/ttyUSB0" |
|
46 |
#define XBEE_PORT_DEFAULT "/dev/ttyUSB1" |
|
48 | 47 |
#endif |
49 |
#define XBEE_PORT2 "/dev/ttyUSB0" |
|
50 |
#endif |
|
51 | 48 |
|
52 | 49 |
/** |
53 | 50 |
* @defgroup xbee XBee |
... | ... | |
77 | 74 |
#define XBEE_RX 0x81 |
78 | 75 |
|
79 | 76 |
/**@brief Initialize the XBee library **/ |
80 |
void xbee_lib_init(void);
|
|
77 |
int xbee_lib_init(void);
|
|
81 | 78 |
/**@brief Uninitialize the XBee library **/ |
82 | 79 |
void xbee_terminate(void); |
83 | 80 |
/**@brief Get a packet from the XBee **/ |
Also available in: Unified diff