Browse Source

Use ADC_RESOLUTION 12 for all STM32 (#20562)

Victor Oliveira 3 years ago
parent
commit
28a3d95cda
No account linked to committer's email address
2 changed files with 3 additions and 2 deletions
  1. 2
    2
      buildroot/share/PlatformIO/variants/MARLIN_FYSETC_S6/variant.h
  2. 1
    0
      platformio.ini

+ 2
- 2
buildroot/share/PlatformIO/variants/MARLIN_FYSETC_S6/variant.h View File

@@ -114,10 +114,10 @@ extern "C" {
114 114
 #define NUM_ANALOG_INPUTS       7
115 115
 #define NUM_ANALOG_FIRST        80
116 116
 
117
-#define ADC_RESOLUTION          12
117
+//#define ADC_RESOLUTION          12
118 118
 
119 119
 // PWM resolution
120
-// #define PWM_RESOLUTION          12
120
+//#define PWM_RESOLUTION          12
121 121
 #define PWM_FREQUENCY           20000 // >= 20 Khz => inaudible noise for fans
122 122
 #define PWM_MAX_DUTY_CYCLE      255
123 123
 

+ 1
- 0
platformio.ini View File

@@ -725,6 +725,7 @@ build_flags   = ${common.build_flags}
725 725
   -std=gnu++14
726 726
   -DUSBCON -DUSBD_USE_CDC
727 727
   -DTIM_IRQ_PRIO=13
728
+  -DADC_RESOLUTION=12
728 729
 build_unflags = -std=gnu++11
729 730
 src_filter    = ${common.default_src_filter} +<src/HAL/STM32> +<src/HAL/shared/backtrace>
730 731
 

Loading…
Cancel
Save