Skip to content

Commit ef0087c

Browse files
committed
Fix build issue when TIM module is disabled or only requested
Fix #839 Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 16f3644 commit ef0087c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/arduino/stm32/analog.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ extern "C" {
5252
void dac_write_value(PinName pin, uint32_t value, uint8_t do_init);
5353
void dac_stop(PinName pin);
5454
uint16_t adc_read_value(PinName pin, uint32_t resolution);
55+
#if defined(HAL_TIM_MODULE_ENABLED) && !defined(HAL_TIM_MODULE_ONLY)
5556
void pwm_start(PinName pin, uint32_t clock_freq, uint32_t value, TimerCompareFormat_t resolution);
5657
void pwm_stop(PinName pin);
58+
#endif
5759
uint32_t get_pwm_channel(PinName pin);
5860

5961
#ifdef __cplusplus

0 commit comments

Comments
 (0)