Skip to content

Commit bcd341d

Browse files
committed
DACC_RESOLUTION is fixed to 12 bits
It should not be redefined. Signed-off-by: Frederic Pillon <[email protected]>
1 parent d4792de commit bcd341d

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

cores/arduino/pins_arduino.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,9 @@ PinName analogInputToPinName(uint32_t pin);
309309
#ifndef ADC_RESOLUTION
310310
#define ADC_RESOLUTION 12
311311
#endif
312-
#ifndef DACC_RESOLUTION
312+
313313
#define DACC_RESOLUTION 12
314-
#endif
314+
315315
#ifndef PWM_RESOLUTION
316316
#define PWM_RESOLUTION 8
317317
#endif

variants/BLACK_F407XX/variant.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,10 @@ extern "C" {
123123
#define NUM_ANALOG_INPUTS 14
124124
#define NUM_ANALOG_FIRST 44
125125

126-
// Below ADC, DAC and PWM definitions already done in the core
126+
// Below ADC and PWM definitions already done in the core
127127
// Could be redefined here if needed
128128
// ADC resolution is 12bits
129129
//#define ADC_RESOLUTION 12
130-
//#define DACC_RESOLUTION 12
131130

132131
// PWM resolution
133132
//#define PWM_RESOLUTION 8

variants/BLUE_F407VE_Mini/variant.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,10 @@ extern "C" {
140140
#define NUM_ANALOG_INPUTS 14
141141
#define NUM_ANALOG_FIRST 80
142142

143-
// Below ADC, DAC and PWM definitions already done in the core
143+
// Below ADC and PWM definitions already done in the core
144144
// Could be redefined here if needed
145145
// ADC resolution is 12bits
146146
//#define ADC_RESOLUTION 12
147-
//#define DACC_RESOLUTION 12
148147

149148
// PWM resolution
150149
//#define PWM_RESOLUTION 8

variants/board_template/variant.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,10 @@ extern "C" {
6868
// First analog pin value (A0) must be greater than or equal to NUM_ANALOG_INPUTS
6969
#define NUM_ANALOG_FIRST 0
7070

71-
// Below ADC, DAC and PWM definitions already done in the core
71+
// Below ADC and PWM definitions already done in the core
7272
// Could be redefined here if needed
7373
// ADC resolution is 12bits
7474
//#define ADC_RESOLUTION 12
75-
//#define DACC_RESOLUTION 12
7675

7776
// PWM resolution
7877
//#define PWM_RESOLUTION 8

0 commit comments

Comments
 (0)