Parcourir la source

Use ADC_RESOLUTION 12 for all STM32 (#20562)

Victor Oliveira il y a 3 ans
Parent
révision
28a3d95cda
Aucun compte lié à l'adresse e-mail de l'auteur

+ 2
- 2
buildroot/share/PlatformIO/variants/MARLIN_FYSETC_S6/variant.h Voir le fichier

@@ -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 Voir le fichier

@@ -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
 

Chargement…
Annuler
Enregistrer