git.droids-corp.org
/
protos
/
xbee-avr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use static variables for callout instead of using xbeeboard struct
[protos/xbee-avr.git]
/
xbee_user.c
diff --git
a/xbee_user.c
b/xbee_user.c
index
a4cb84f
..
859d203
100644
(file)
--- a/
xbee_user.c
+++ b/
xbee_user.c
@@
-56,6
+56,8
@@
int xbee_cmdline_input_enabled = 1;
/* parameters */
int xbee_raw = 0;
/* parameters */
int xbee_raw = 0;
+static struct callout xbee_rx_poll_timer;
+
static void __hexdump(const void *buf, unsigned int len)
{
unsigned int i, out, ofs;
static void __hexdump(const void *buf, unsigned int len)
{
unsigned int i, out, ofs;
@@
-544,8
+546,8
@@
void xbee_stdin_disable(void)
void xbeeapp_init(void)
{
void xbeeapp_init(void)
{
- callout_init(&xbee
board.xbee
_rx_poll_timer, xbee_rx_poll_timer_cb,
+ callout_init(&xbee_rx_poll_timer, xbee_rx_poll_timer_cb,
NULL, XBEE_PRIO);
NULL, XBEE_PRIO);
- callout_schedule(&xbeeboard.intr_cm,
-
&xbeeboard.xbee_rx_poll_timer,
XBEE_POLL_TIMER_MS);
+ callout_schedule(&xbeeboard.intr_cm,
&xbee_rx_poll_timer,
+ XBEE_POLL_TIMER_MS);
}
}