Skip to content

Commit e653b0d

Browse files
fpistmcparata
authored andcommitted
fix(analog): guard some declarations
Signed-off-by: Frederic Pillon <[email protected]>
1 parent c7426a9 commit e653b0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/arduino/stm32/analog.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ extern "C" {
5252
#if defined(HAL_ADC_MODULE_ENABLED) && !defined(HAL_ADC_MODULE_ONLY)
5353
uint32_t get_adc_channel(PinName pin, uint32_t *bank);
5454
uint32_t get_adc_internal_channel(PinName pin);
55+
uint16_t adc_read_value(PinName pin, uint32_t resolution);
5556
#endif
5657
#if defined(HAL_DAC_MODULE_ENABLED) && !defined(HAL_DAC_MODULE_ONLY)
5758
uint32_t get_dac_channel(PinName pin);
58-
#endif
5959
void dac_write_value(PinName pin, uint32_t value, uint8_t do_init);
6060
void dac_stop(PinName pin);
61-
uint16_t adc_read_value(PinName pin, uint32_t resolution);
61+
#endif
6262
#if defined(HAL_TIM_MODULE_ENABLED) && !defined(HAL_TIM_MODULE_ONLY)
6363
void pwm_start(PinName pin, uint32_t clock_freq, uint32_t value, TimerCompareFormat_t resolution);
6464
void pwm_stop(PinName pin);

0 commit comments

Comments
 (0)