diff options
| author | Ihavedone <[email protected]> | 2020-01-15 21:05:12 +0800 |
|---|---|---|
| committer | Ihavedone <[email protected]> | 2020-01-15 21:05:12 +0800 |
| commit | 04831062bdac00ee8857a6c0fc351c55fac5a396 (patch) | |
| tree | 9f58459d1708db9c629d1dba1ef320e6557f0fd6 | |
| parent | b08d699e38a10dec0a9e0fa6367fd3da1b3d5793 (diff) | |
添加了 PWM9_CONFIG 默认配置 和 TIM3_CONFIG 默认配置
| -rw-r--r-- | bsp/stm32/libraries/HAL_Drivers/config/f4/pwm_config.h | 11 | ||||
| -rw-r--r-- | bsp/stm32/libraries/HAL_Drivers/config/f4/tim_config.h | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f4/pwm_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f4/pwm_config.h index 14d4aa2aff..3803303493 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f4/pwm_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f4/pwm_config.h @@ -61,6 +61,17 @@ extern "C" { #endif /* PWM5_CONFIG */ #endif /* BSP_USING_PWM5 */ +#ifdef BSP_USING_PWM9 +#ifndef PWM9_CONFIG +#define PWM9_CONFIG \ + { \ + .tim_handle.Instance = TIM9, \ + .name = "pwm9", \ + .channel = 0 \ + } +#endif /* PWM9_CONFIG */ +#endif /* BSP_USING_PWM9 */ + #ifdef BSP_USING_PWM12 #ifndef PWM12_CONFIG #define PWM12_CONFIG \ diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f4/tim_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f4/tim_config.h index cd116d9e19..bc08f219b9 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f4/tim_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f4/tim_config.h @@ -27,6 +27,17 @@ extern "C" { } #endif /* TIM_DEV_INFO_CONFIG */ +#ifdef BSP_USING_TIM3 +#ifndef TIM3_CONFIG +#define TIM3_CONFIG \ + { \ + .tim_handle.Instance = TIM3, \ + .tim_irqn = TIM3_IRQn, \ + .name = "timer3", \ + } +#endif /* TIM3_CONFIG */ +#endif /* BSP_USING_TIM3 */ + #ifdef BSP_USING_TIM11 #ifndef TIM11_CONFIG #define TIM11_CONFIG \ |
