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
add code to control the audio buzzer
[protos/xbee-avr.git]
/
main.h
diff --git
a/main.h
b/main.h
index
87070a3
..
9ba70de
100644
(file)
--- a/
main.h
+++ b/
main.h
@@
-64,9
+64,13
@@
extern volatile uint16_t global_ms;
#define LED3_ON() sbi(PORTA, 0)
#define LED3_OFF() cbi(PORTA, 0)
#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
/* 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 SPI_PRIO 100 /* users of spi_servo must have lower prio */
/* lowest priority */