Signed-off-by: Keith Packard <keithp@keithp.com>
[fw/altos] / src / stm-demo / ao_pins.h
index d02c071c4d2f2312039eeca1227d044f6c0b6d63..17a76bd0893594bcc2f8ff8002c22dbb4ef9a9df 100644 (file)
@@ -70,7 +70,7 @@
 #define LOW_LEVEL_DEBUG                1
 
 #define LED_PORT_ENABLE                STM_RCC_AHBENR_GPIOBEN
-#define LED_PORT               stm_gpiob
+#define LED_PORT               (&stm_gpiob)
 #define LED_PIN_GREEN          7
 #define LED_PIN_BLUE           6
 #define AO_LED_GREEN           (1 << LED_PIN_GREEN)
@@ -147,7 +147,7 @@ struct ao_adc {
 };
 
 #define AO_ADC_IDD             4
-#define AO_ADC_PIN0_PORT       stm_gpioa
+#define AO_ADC_PIN0_PORT       (&stm_gpioa)
 #define AO_ADC_PIN0_PIN                4
 
 #define AO_ADC_RCC_AHBENR      ((1 << STM_RCC_AHBENR_GPIOAEN))
@@ -170,4 +170,8 @@ struct ao_adc {
 #define HAS_I2C_2              0
 #define I2C_2_PB10_PB11                0
 
+#define AO_QUADRATURE_PORT     &stm_gpioc
+#define AO_QUADRATURE_A                0
+#define AO_QUADRATURE_B                1
+
 #endif /* _AO_PINS_H_ */