builds, loads, runs, not very useful yet
[fw/altos] / src / telemini-v3.0 / ao_pins.h
index b4f2a6304d1574bba8b8919e9fe8a9f6b9bd6c4c..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
 
 #define HAS_ADC                        1
 
-#define AO_ADC_PIN0_PORT       (&stm_gpioa)
+#define AO_ADC_PIN0_PORT       (&stm_gpioa)    /* sense_m */
 #define AO_ADC_PIN0_PIN                0
 #define AO_ADC_PIN0_CH         0
-#define AO_ADC_PIN1_PORT       (&stm_gpioa)
+#define AO_ADC_PIN1_PORT       (&stm_gpioa)    /* sense_a */
 #define AO_ADC_PIN1_PIN                1
 #define AO_ADC_PIN1_CH         1
-#define AO_ADC_PIN2_PORT       (&stm_gpioa)
+#define AO_ADC_PIN2_PORT       (&stm_gpioa)    /* v_batt */
 #define AO_ADC_PIN2_PIN                2
 #define AO_ADC_PIN2_CH         2
 
 #define AO_NUM_ADC             3
 
 struct ao_adc {
-       int16_t         sense_a;
        int16_t         sense_m;
+       int16_t         sense_a;
        int16_t         v_batt;
 };