altos: Compute igniter good/bad thresholds using 3.5V value
[fw/altos] / src / telemetrum-v4.0 / ao_pins.h
index 353ecb65baa082c13183bddd2b45197f9d9674c0..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
@@ -182,6 +182,7 @@ struct ao_adc {
 #define AO_SERIAL_SPEED_UBLOX  AO_SERIAL_SPEED_9600
 
 #define HAS_SERIAL_1           1
+#define USE_SERIAL_1_STDIN     0
 #define SERIAL_1_PA00_PA01     1
 
 #define ao_gps_getchar         ao_serial1_getchar
@@ -194,10 +195,9 @@ struct ao_adc {
  */
 #define HAS_MS5607             1
 #define HAS_MS5611             0
-#define AO_MS5607_PRIVATE_PINS 1
+#define AO_MS5607_PRIVATE_PINS 0
 #define AO_MS5607_CS_PORT      (&samd21_port_a)
 #define AO_MS5607_CS_PIN       21
-#define AO_MS5607_CS_MASK      (1 << AO_MS5607_CS)
 #define AO_MS5607_MISO_PORT    (&samd21_port_a)
 #define AO_MS5607_MISO_PIN     20
 #define AO_MS5607_SPI_INDEX    AO_SPI_3_PA22_PA23_PA20