diff options
author | Maximilien Cuony <maximilien@theglu.org> | 2016-06-25 15:56:38 +0200 |
---|---|---|
committer | Maximilien Cuony <maximilien@theglu.org> | 2016-06-25 15:56:38 +0200 |
commit | 59875f3db29e9e52c0258e7543cf7c7c5ee36076 (patch) | |
tree | 63dd770bf97a4d7f39978309cb419fe0a4f70099 /src/glutt-o-logique/analog_input.h | |
parent | ddb3a6dafbe47335575e7dc2244c4c783f3b854f (diff) | |
parent | b5e4df11a5e177827879813c4bdf47b3cbe34928 (diff) | |
download | glutte-o-matic-59875f3db29e9e52c0258e7543cf7c7c5ee36076.tar.gz glutte-o-matic-59875f3db29e9e52c0258e7543cf7c7c5ee36076.tar.bz2 glutte-o-matic-59875f3db29e9e52c0258e7543cf7c7c5ee36076.zip |
Merge branch 'master' of github.com:Glutte/glutt-o-matique
Diffstat (limited to 'src/glutt-o-logique/analog_input.h')
-rw-r--r-- | src/glutt-o-logique/analog_input.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 + |