diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-06-12 16:29:44 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-06-12 16:29:44 +0200 |
commit | 6f95a22ce25839825c79d4529317984bd3e1b870 (patch) | |
tree | 181f6d072a4d9d3c184becd104c447eca189230d /src/glutt-o-logique/analog_input.c | |
parent | 2823a0d3833ba5faa03590dfbc5c45976439cd59 (diff) | |
download | glutte-o-matic-6f95a22ce25839825c79d4529317984bd3e1b870.tar.gz glutte-o-matic-6f95a22ce25839825c79d4529317984bd3e1b870.tar.bz2 glutte-o-matic-6f95a22ce25839825c79d4529317984bd3e1b870.zip |
Improve supply voltage measurement, WIP
Diffstat (limited to 'src/glutt-o-logique/analog_input.c')
-rw-r--r-- | src/glutt-o-logique/analog_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glutt-o-logique/analog_input.c b/src/glutt-o-logique/analog_input.c index abf37dc..8b65cf8 100644 --- a/src/glutt-o-logique/analog_input.c +++ b/src/glutt-o-logique/analog_input.c @@ -53,7 +53,7 @@ void analog_init(void) ADC_InitTypeDef ADC_InitStruct; ADC_InitStruct.ADC_Resolution = ADC_Resolution_12b; ADC_InitStruct.ADC_ScanConvMode = DISABLE; - ADC_InitStruct.ADC_ContinuousConvMode = DISABLE; + ADC_InitStruct.ADC_ContinuousConvMode = ENABLE; ADC_InitStruct.ADC_ExternalTrigConvEdge = ADC_ExternalTrigConvEdge_None; ADC_InitStruct.ADC_ExternalTrigConv = ADC_ExternalTrigConv_T1_CC1; ADC_InitStruct.ADC_DataAlign = ADC_DataAlign_Right; |