X-Git-Url: http://git.droids-corp.org/?p=protos%2Fxbee-avr.git;a=blobdiff_plain;f=main.h;h=18ddf0514d8c19c763a1599512b4e68b717b6dfc;hp=001ecc0537757547a78e0c5d623da3bf395c0786;hb=84514fdc4e37939d888eddf89956225ef20b57fc;hpb=608c07083a1bf61df3ef38415242dbf0f333b806 diff --git a/main.h b/main.h index 001ecc0..18ddf05 100644 --- a/main.h +++ b/main.h @@ -59,10 +59,11 @@ #define BUZZER_OFF() cbi(PORTA, 4) /* highest priority */ -#define LED_PRIO 170 -#define TIME_PRIO 160 -#define BEEP_PRIO 130 +#define LED_PRIO 160 +#define TIME_PRIO 140 +#define BEEP_PRIO 120 #define SPI_PRIO 100 /* users of spi_servo must have lower prio */ +#define XBEE_PRIO 80 /* lowest priority */ #define MAX_POWER_LEVEL 5 @@ -76,6 +77,7 @@ struct xbeeboard { struct callout_mgr intr_cm; struct callout spi_timer; struct callout beep_timer; + struct callout xbee_rx_poll_timer; /* log */ uint8_t logs[NB_LOGS+1]; @@ -87,4 +89,3 @@ extern struct xbeeboard xbeeboard; extern volatile uint32_t global_ms; void bootloader(void); -