stm32: adc: standardize special channel names

At least temp sensor, vrefint and vbat/vlcd should have consistent names and
consistent doxygen.
Dropped channel definitions that are the same as the raw number.
This commit is contained in:
Karl Palsson
2015-11-05 22:55:56 +00:00
parent 50c056f965
commit a22d6a8315
5 changed files with 36 additions and 33 deletions

View File

@@ -91,11 +91,14 @@ LGPL License Terms @ref lgpl_license
#define ADC_CSR MMIO32(ADC1 + 0x300)
#define ADC_CCR MMIO32(ADC1 + 0x304)
/* These are _not_ consistent unfortunately! */
#define ADC_CHANNEL_TEMP ADC_CHANNEL16
#define ADC_CHANNEL_VREFINT ADC_CHANNEL17
#define ADC_CHANNEL_VBAT ADC_CHANNEL18
/** @defgroup adc_channel ADC Channel Numbers
* @ingroup adc_defines
*
*@{*/
#define ADC_CHANNEL_TEMP ADC_CHANNEL16
#define ADC_CHANNEL_VREF ADC_CHANNEL17
#define ADC_CHANNEL_VBAT ADC_CHANNEL18
/**@}*/
/* --- ADC_SR values ------------------------------------------------------- */
#define ADC_SR_JCNR (1 << 9)