stm32: adc: fix f4/f7 temperature sensor channel defines.

Lots of common stuff, but the F7 fixed the temperature sensor randomness
that the f4 had.  Separate the definitions properly.
This commit is contained in:
Karl Palsson
2019-05-10 22:18:08 +00:00
parent cc364d1ac2
commit 45e14a7bd3
3 changed files with 18 additions and 9 deletions
+8
View File
@@ -41,6 +41,14 @@ LGPL License Terms @ref lgpl_license
#include <libopencm3/stm32/common/adc_common_v1_multi.h>
/** @defgroup adc_channel ADC Channel Numbers
* @ingroup adc_defines
*@{*/
#define ADC_CHANNEL_TEMP 18
#define ADC_CHANNEL_VREF 17
#define ADC_CHANNEL_VBAT 18
/**@}*/
/* --- Convenience macros -------------------------------------------------- */
/* EXTSEL[3:0]: External event selection for regular group. */
/****************************************************************************/