X-Git-Url: http://git.droids-corp.org/?p=protos%2Fxbee-avr.git;a=blobdiff_plain;f=main.h;h=d28a3662502b13cf51fd567cf46dcd9dfbebfc73;hp=87070a30029364180e19018399f4bdda50718971;hb=98ee473e32629463b081b01d82097a541da958b2;hpb=2710a676cfb8d84c4e4de9d4e0ba2e8f3b553120 diff --git a/main.h b/main.h index 87070a3..d28a366 100644 --- a/main.h +++ b/main.h @@ -36,13 +36,8 @@ #include #include #include +#include -#include "xbee_neighbor.h" -#include "xbee_atcmd.h" -#include "xbee_stats.h" -#include "xbee_buf.h" -#include "xbee_proto.h" -#include "xbee.h" #include "cmdline.h" #include "callout.h" #include "rc_proto.h" @@ -64,9 +59,13 @@ extern volatile uint16_t global_ms; #define LED3_ON() sbi(PORTA, 0) #define LED3_OFF() cbi(PORTA, 0) +#define BUZZER_ON() sbi(PORTA, 4) +#define BUZZER_OFF() cbi(PORTA, 4) + /* highest priority */ #define LED_PRIO 170 #define TIME_PRIO 160 +#define BEEP_PRIO 130 #define SPI_PRIO 100 /* users of spi_servo must have lower prio */ /* lowest priority */ @@ -106,7 +105,7 @@ extern struct callout_manager cm; void bootloader(void); -void xbee_rx(struct xbee_dev *dev, int channel, int type, +void xbeeapp_rx(struct xbee_dev *dev, int channel, int type, void *frame, unsigned len, void *opaque); int xbeeapp_send_atcmd(const char *atcmd_str, void *param, unsigned param_len, int foreground,