X-Git-Url: http://git.droids-corp.org/?p=protos%2Fxbee-avr.git;a=blobdiff_plain;f=main.h;h=9ba70de77b9d7ee71171626507f49612d352c9de;hp=617628e922ac47f1659a15dbc24f620bf25683a0;hb=f74db5fd03bcd38af3ca533e7531dd70454dfaaf;hpb=a4e51d8b2a5b13308d314aaf72e58672346dfb1f diff --git a/main.h b/main.h index 617628e..9ba70de 100644 --- a/main.h +++ b/main.h @@ -25,6 +25,31 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include +#include +#include +#include + +#include +#include +#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" +#include "spi_servo.h" + +extern volatile uint16_t global_ms; + #define NB_LOGS 4 /** ERROR NUMS */ @@ -39,8 +64,15 @@ #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 */ #define MAX_POWER_LEVEL 5 /* generic to all boards */