Skip to content

Commit

Permalink
Use ADC_RESOLUTION 12 for all STM32 (MarlinFirmware#20562)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhapsodyv authored and tharts committed Jan 6, 2021
1 parent 855e7fc commit 34790b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ extern "C" {
#define NUM_ANALOG_INPUTS 7
#define NUM_ANALOG_FIRST 80

#define ADC_RESOLUTION 12
//#define ADC_RESOLUTION 12

// PWM resolution
// #define PWM_RESOLUTION 12
//#define PWM_RESOLUTION 12
#define PWM_FREQUENCY 20000 // >= 20 Khz => inaudible noise for fans
#define PWM_MAX_DUTY_CYCLE 255

Expand Down
1 change: 1 addition & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@ build_flags = ${common.build_flags}
-std=gnu++14
-DUSBCON -DUSBD_USE_CDC
-DTIM_IRQ_PRIO=13
-DADC_RESOLUTION=12
build_unflags = -std=gnu++11
src_filter = ${common.default_src_filter} +<src/HAL/STM32> +<src/HAL/shared/backtrace>

Expand Down

0 comments on commit 34790b3

Please sign in to comment.