Skip to content

STM32H7 correct PWMOUT instances #12295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 5 additions & 29 deletions targets/TARGET_STM/TARGET_STM32H7/pwmout_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,42 +34,18 @@
#if DEVICE_PWMOUT

const pwm_apb_map_t pwm_apb_map_table[] = {
#if defined(TIM2_BASE)
{PWM_1, PWMOUT_ON_APB2},
{PWM_2, PWMOUT_ON_APB1},
#endif
#if defined(TIM3_BASE)
{PWM_3, PWMOUT_ON_APB1},
#endif
#if defined(TIM4_BASE)
{PWM_4, PWMOUT_ON_APB1},
#endif
#if defined(TIM5_BASE)
{PWM_5, PWMOUT_ON_APB1},
#endif
#if defined(TIM12_BASE)
{PWM_8, PWMOUT_ON_APB2},
{PWM_12, PWMOUT_ON_APB1},
#endif
#if defined(TIM13_BASE)
{PWM_13, PWMOUT_ON_APB1},
#endif
#if defined(TIM14_BASE)
{PWM_14, PWMOUT_ON_APB1},
#endif
#if defined(TIM1_BASE)
{PWM_1, PWMOUT_ON_APB2},
#endif
#if defined(TIM8_BASE)
{PWM_8, PWMOUT_ON_APB2},
#endif
#if defined(TIM9_BASE)
{PWM_9, PWMOUT_ON_APB2},
#endif
#if defined(TIM10_BASE)
{PWM_10, PWMOUT_ON_APB2},
#endif
#if defined(TIM11_BASE)
{PWM_11, PWMOUT_ON_APB2},
#endif
{PWM_15, PWMOUT_ON_APB2},
{PWM_16, PWMOUT_ON_APB2},
{PWM_17, PWMOUT_ON_APB2},
{(PWMName) 0, PWMOUT_UNKNOWN}
};

Expand Down