From b5e4df11a5e177827879813c4bdf47b3cbe34928 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 25 Jun 2016 00:00:31 +0200 Subject: Add code to read SWR analog voltages --- src/glutt-o-logique/analog_input.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/glutt-o-logique/analog_input.h') diff --git a/src/glutt-o-logique/analog_input.h b/src/glutt-o-logique/analog_input.h index 9c8ef8c..0385ec4 100644 --- a/src/glutt-o-logique/analog_input.h +++ b/src/glutt-o-logique/analog_input.h @@ -28,3 +28,13 @@ #include "stm32f4xx_gpio.h" #include "GPIO/analog.h" +#define PIN_SUPPLY GPIO_Pin_5 +#define PIN_SWR_FWD GPIO_Pin_6 +#define PIN_SWR_REFL GPIO_Pin_7 + +#define PINS_ANALOG (GPIO_Pin_5 | GPIO_Pin_6 | GPIO_Pin_7) + +#define ADC_CHANNEL_SUPPLY ADC_Channel_5 +#define ADC_CHANNEL_SWR_FWD ADC_Channel_6 +#define ADC_CHANNEL_SWR_REFL ADC_Channel_7 + -- cgit v1.2.3