1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-16 01:53:51 +01:00

boards: fixed timer conf for stm32f1 based boards

This commit is contained in:
Hauke Petersen 2016-03-16 12:19:33 +01:00
parent 61f8d45e03
commit 083204c899
4 changed files with 32 additions and 32 deletions

View File

@ -56,16 +56,16 @@ extern "C" {
*/ */
static const timer_conf_t timer_config[] = { static const timer_conf_t timer_config[] = {
{ {
.dev = TIM2, .dev = TIM2,
.rcc_bit = RCC_APB1ENR_TIM2EN, .rcc_mask = RCC_APB1ENR_TIM2EN,
.bus = APB1, .bus = APB1,
.irqn = TIM2_IRQn .irqn = TIM2_IRQn
}, },
{ {
.dev = TIM3, .dev = TIM3,
.rcc_bit = RCC_APB1ENR_TIM3EN, .rcc_mask = RCC_APB1ENR_TIM3EN,
.bus = APB1, .bus = APB1,
.irqn = TIM3_IRQn .irqn = TIM3_IRQn
} }
}; };

View File

@ -62,16 +62,16 @@ extern "C" {
*/ */
static const timer_conf_t timer_config[] = { static const timer_conf_t timer_config[] = {
{ {
.dev = TIM2, .dev = TIM2,
.rcc_bit = RCC_APB1ENR_TIM2EN, .rcc_mask = RCC_APB1ENR_TIM2EN,
.bus = APB1, .bus = APB1,
.irqn = TIM2_IRQn .irqn = TIM2_IRQn
}, },
{ {
.dev = TIM3, .dev = TIM3,
.rcc_bit = RCC_APB1ENR_TIM3EN, .rcc_mask = RCC_APB1ENR_TIM3EN,
.bus = APB1, .bus = APB1,
.irqn = TIM3_IRQn .irqn = TIM3_IRQn
} }
}; };

View File

@ -58,16 +58,16 @@ extern "C" {
*/ */
static const timer_conf_t timer_config[] = { static const timer_conf_t timer_config[] = {
{ {
.dev = TIM2, .dev = TIM2,
.rcc_bit = RCC_APB1ENR_TIM2EN, .rcc_mask = RCC_APB1ENR_TIM2EN,
.bus = APB1, .bus = APB1,
.irqn = TIM2_IRQn .irqn = TIM2_IRQn
}, },
{ {
.dev = TIM3, .dev = TIM3,
.rcc_bit = RCC_APB1ENR_TIM3EN, .rcc_mask = RCC_APB1ENR_TIM3EN,
.bus = APB1, .bus = APB1,
.irqn = TIM3_IRQn .irqn = TIM3_IRQn
} }
}; };

View File

@ -56,16 +56,16 @@
*/ */
static const timer_conf_t timer_config[] = { static const timer_conf_t timer_config[] = {
{ {
.dev = TIM2, .dev = TIM2,
.rcc_bit = RCC_APB1ENR_TIM2EN, .rcc_mask = RCC_APB1ENR_TIM2EN,
.bus = APB1, .bus = APB1,
.irqn = TIM2_IRQn .irqn = TIM2_IRQn
}, },
{ {
.dev = TIM3, .dev = TIM3,
.rcc_bit = RCC_APB1ENR_TIM3EN, .rcc_mask = RCC_APB1ENR_TIM3EN,
.bus = APB1, .bus = APB1,
.irqn = TIM3_IRQn .irqn = TIM3_IRQn
} }
}; };