altos/stm: Make beeper driver support all possible tim234 configs
[fw/altos] / src / telefiretwo-v0.2 / ao_pins.h
index f6656f169fa1e345208618c12543aa4f39da5ec2..01faace2dfad944deff3825f8a5a9fc546c9ad69 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -26,6 +27,7 @@
 #define HAS_USB                        1
 #define HAS_BEEP               1
 #define BEEPER_CHANNEL         4
+#define BEEPER_TIMER           3
 #define HAS_GPS                        0
 #define HAS_SERIAL_1           0
 #define HAS_ADC                        1
 #define AO_CC1200_SPI_CS_PIN   7
 #define AO_CC1200_SPI_BUS      AO_SPI_2_PB13_PB14_PB15
 #define AO_CC1200_SPI          stm_spi2
+#define AO_CC1200_SPI_SPEED    AO_SPI_SPEED_FAST
 
 #define AO_CC1200_INT_PORT             (&stm_gpiob)
 #define AO_CC1200_INT_PIN              (11)
 
 #define LEDS_AVAILABLE         (LED_PORT_0_MASK|LED_PORT_1_MASK)
 
-/* Alarm 2 */
+/* Alarm A */
 #define AO_SIREN
 #define AO_SIREN_PORT          (&stm_gpiob)
 #define AO_SIREN_PIN           8
 
-/* Alarm 1 */
+/* Alarm B */
 #define AO_STROBE
 #define AO_STROBE_PORT         (&stm_gpiob)
 #define AO_STROBE_PIN          9