1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #6404 from haukepetersen/fix_stm32f4discovery_pwmdefs

boards/stm32f4discovery: fix PWM configuration
This commit is contained in:
Peter Kietzmann 2017-01-18 10:29:25 +01:00 committed by GitHub
commit 922e3bee25

View File

@ -166,14 +166,16 @@ static const pwm_conf_t pwm_config[] = {
.af = GPIO_AF1,
.bus = APB2
},
// {
// .dev = TIM3,
// .rcc_mask = RCC_APB1ENR_TIM3EN,
// .chan = { GPIO_PIN(PORT_B, 4), GPIO_PIN(PORT_B, 5),
// GPIO_PIN(PORT_B, 0), GPIO_PIN(PORT_B, 1) },
// .af = GPIO_AF2,
// .bus = APB1
// }
{
.dev = TIM3,
.rcc_mask = RCC_APB1ENR_TIM3EN,
.chan = { { .pin = GPIO_PIN(PORT_B, 4), .cc_chan = 0 },
{ .pin = GPIO_PIN(PORT_B, 5), .cc_chan = 1 },
{ .pin = GPIO_PIN(PORT_B, 0), .cc_chan = 2 },
{ .pin = GPIO_PIN(PORT_B, 1), .cc_chan = 3 } },
.af = GPIO_AF2,
.bus = APB1
}
};
#define PWM_NUMOF (sizeof(pwm_config) / sizeof(pwm_config[0]))