12-bit ADC resolution for STM32 (#20519)

This commit is contained in:
LinFor
2020-12-22 03:30:03 +03:00
committed by Scott Lahteine
parent 231e5a5eed
commit 076f12e82d
3 changed files with 7 additions and 3 deletions

View File

@ -114,6 +114,8 @@ extern "C" {
#define NUM_ANALOG_INPUTS 7
#define NUM_ANALOG_FIRST 80
#define ADC_RESOLUTION 12
// PWM resolution
// #define PWM_RESOLUTION 12
#define PWM_FREQUENCY 20000 // >= 20 Khz => inaudible noise for fans