12-bit ADC resolution for STM32 (#20519)

This commit is contained in:
LinFor authored and Scott Lahteine committed 2021-04-29 08:45:09 -05:00
1 parent 231e5a5eed
commit 076f12e82d
3 files changed
+7 -3

No files matched your search

@@ -27,6 +27,8 @@
#define THERMISTOR_TABLE_SCALE (HAL_ADC_RANGE / _BV(THERMISTOR_TABLE_ADC_RESOLUTION))
#if ENABLED(HAL_ADC_FILTERED)
#define OVERSAMPLENR 1
#elif HAL_ADC_RESOLUTION > 10
#define OVERSAMPLENR (20 - HAL_ADC_RESOLUTION)
#else
#define OVERSAMPLENR 16
#endif