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
send "ATCN" when exiting from xbee raw mode
[protos/xbee-avr.git]
/
main.h
diff --git
a/main.h
b/main.h
index
4ed5259
..
87070a3
100644
(file)
--- a/
main.h
+++ b/
main.h
@@
-25,25
+25,50
@@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <aversive.h>
+#include <aversive/queue.h>
+#include <aversive/pgmspace.h>
+#include <aversive/error.h>
+
+#include <uart.h>
+#include <scheduler.h>
+#include <clock_time.h>
+#include <parse.h>
+#include <rdline.h>
+#include <timer.h>
+
+#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 */
#define E_USER_DEFAULT 194
#define NB_LOGS 4
/** ERROR NUMS */
#define E_USER_DEFAULT 194
-#define LED1_ON() sbi(PORTE, 2)
-#define LED1_OFF() cbi(PORTE, 2)
-
-#define LED2_ON() sbi(PORTE, 3)
-#define LED2_OFF() cbi(PORTE, 3)
+#define LED1_ON() sbi(PORTA, 2)
+#define LED1_OFF() cbi(PORTA, 2)
-#define LED
3_ON() sbi(PORTB, 3
)
-#define LED
3_OFF() cbi(PORTB, 3
)
+#define LED
2_ON() sbi(PORTA, 1
)
+#define LED
2_OFF() cbi(PORTA, 1
)
-#define LED
4_ON() sbi(PORTB, 4
)
-#define LED
4_OFF() cbi(PORTB, 4
)
+#define LED
3_ON() sbi(PORTA, 0
)
+#define LED
3_OFF() cbi(PORTA, 0
)
+/* highest priority */
#define LED_PRIO 170
#define TIME_PRIO 160
#define LED_PRIO 170
#define TIME_PRIO 160
+#define SPI_PRIO 100 /* users of spi_servo must have lower prio */
+/* lowest priority */
#define MAX_POWER_LEVEL 5
/* generic to all boards */
#define MAX_POWER_LEVEL 5
/* generic to all boards */