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
- 2
buildroot/share/PlatformIO/variants/MARLIN_FYSETC_S6/variant.h View File

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

+ 1
- 0
platformio.ini View File

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

Loading…
Cancel
Save