stm32: adc-v2: pull up voltage regulator control.

L4 and F3 actually have the same bits to write in the same order, but F3 hides
the name of the deep power down bit.  Keep the like that for now, but there's a
standard API for enabling and disabling the regulator.
This commit is contained in:
Karl Palsson
2016-03-04 00:28:09 +00:00
parent f40e34680b
commit 1755098617
5 changed files with 70 additions and 3 deletions

View File

@@ -54,6 +54,15 @@
#define ADC_CHANNEL_VBAT 18
/**@}*/
/* ADC_CR Values ------------------------------------------------------------*/
/* DEEPPWD: Deep power down */
#define ADC_CR_DEEPPWD (1 << 29)
/* ADVREGEN: Voltage regulator enable bit */
#define ADC_CR_ADVREGEN (1 << 28)
/****************************************************************************/
/* ADC_SMPRx ADC Sample Time Selection for Channels */
/** @defgroup adc_sample ADC Sample Time Selection values