12-bit ADC resolution for STM32 (#20519)
This commit is contained in:
1 parent
ba1176108a
commit
36aff1e464
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
|
||||
|
||||
Reference in new issue
Block a user