diff options
| author | hwk2077 <[email protected]> | 2023-04-02 23:01:47 +0800 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2023-04-03 02:45:57 -0400 |
| commit | d6c1b75e42ac91c292ebb53de617e60bf904949f (patch) | |
| tree | 653e8cbf5c7425b9e57292c9c1f4ef151893ba9b | |
| parent | 429f46c6327c55b6f527f359dc27304f529a909a (diff) | |
add `TIM1` and `TIM8`
| -rw-r--r-- | bsp/stm32/libraries/HAL_Drivers/drv_tim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_tim.c b/bsp/stm32/libraries/HAL_Drivers/drv_tim.c index 3e72eec47c..a733d859cb 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_tim.c +++ b/bsp/stm32/libraries/HAL_Drivers/drv_tim.c @@ -449,7 +449,7 @@ static rt_err_t timer_ctrl(rt_hwtimer_t *timer, rt_uint32_t cmd, void *arg) stm32_tim_pclkx_doubler_get(&pclk1_doubler, &pclk2_doubler); #if defined(SOC_SERIES_STM32F2) || defined(SOC_SERIES_STM32F4) || defined(SOC_SERIES_STM32F7) - if (tim->Instance == TIM9 || tim->Instance == TIM10 || tim->Instance == TIM11) + if (tim->Instance == TIM1 || tim->Instance == TIM8 || tim->Instance == TIM9 || tim->Instance == TIM10 || tim->Instance == TIM11) #elif defined(SOC_SERIES_STM32L4) if (tim->Instance == TIM15 || tim->Instance == TIM16 || tim->Instance == TIM17) #elif defined(SOC_SERIES_STM32WB) |
