]> git.gag.com Git - fw/altos/commitdiff
easymotor-v3: Configure beeper
authorKeith Packard <keithp@keithp.com>
Mon, 4 Apr 2022 05:17:15 +0000 (22:17 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 4 Apr 2022 05:17:40 +0000 (22:17 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/easymotor-v3/ao_pins.h

index 48485c6cbdf2f53aacb7795b51c7acdd2351263a..668bcf04d27d4a1146908714594bccf642987a9f 100644 (file)
 #define HAS_BEEP               0
 #define HAS_BATTERY_REPORT     1
 #define HAS_PAD_REPORT         1
-#define BEEPER_CHANNEL         3
-#define BEEPER_TIMER           2
-#define BEEPER_PORT            (&stm_gpioa)
-#define BEEPER_PIN             2
-#define BEEPER_AFR              STM_AFR_AF2
+
+/* Beeper is on pio0_1 ct32b0_mat2 */
+#define BEEPER_PORT            0
+#define BEEPER_PIN             1
+#define BEEPER_TIMER           0
+#define BEEPER_OUTPUT          2
 
 #define HAS_RADIO              0
 #define HAS_TELEMETRY          0