telemetrum-v4.0: Correct beeper configuration
authorKeith Packard <keithp@keithp.com>
Sun, 13 Nov 2022 04:44:38 +0000 (20:44 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 13 Nov 2022 04:45:34 +0000 (20:45 -0800)
Beeper is on PA16, which is TCC2/0 with config E

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

index 9abbdc551c80ee518b6c3d176ecf520f1a92af9e..bc0576118d6dbb6c477ff04ca59e2a3ea02efc92 100644 (file)
  */
 
 #define HAS_BEEP               1
-/* Beep on PA11 function F TCC0.3 */
+/* Beep on PA16 function E TCC2.0 */
 
-#define AO_BEEP_TCC            (&samd21_tcc0)
-#define AO_BEEP_TCC_APBC_MASK  SAMD21_PM_APBCMASK_TCC0
+#define AO_BEEP_TCC            (&samd21_tcc2)
+#define AO_BEEP_TCC_APBC_MASK  SAMD21_PM_APBCMASK_TCC2
 #define AO_BEEP_PORT           (&samd21_port_a)
-#define AO_BEEP_PIN            (11)
-#define AO_BEEP_FUNC           SAMD21_PORT_PMUX_FUNC_F
+#define AO_BEEP_PIN            (16)
+#define AO_BEEP_FUNC           SAMD21_PORT_PMUX_FUNC_E
 
 /*
  * Igniter