altos/telemini-v3.0: Add beeper defines needed for more general beeper code
authorKeith Packard <keithp@keithp.com>
Tue, 21 Feb 2017 01:33:37 +0000 (17:33 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 21 Feb 2017 01:35:26 +0000 (17:35 -0800)
The beeper code now wants to know which timer, port and pin are in use.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/telemini-v3.0/ao_pins.h

index be7fd8d0e67d1010caaa668e28a651190db08f35..7249ece7269827a4d54601b4743c9e42b7f0701b 100644 (file)
@@ -69,6 +69,9 @@
 
 /* Beeper is on Tim1 CH3 */
 #define BEEPER_CHANNEL         3
+#define BEEPER_TIMER           1
+#define BEEPER_PORT            (&stm_gpioa)
+#define BEEPER_PIN             10
 
 /* LED */
 #define LED_PORT_ENABLE                STM_RCC_AHBENR_IOPAEN