diff options
author | eneadev <carmine@eneatech.com> | 2014-04-19 13:08:29 +0200 |
---|---|---|
committer | eneadev <carmine@eneatech.com> | 2014-04-19 13:08:29 +0200 |
commit | e2989bc091c1a4e287534947095a1777d689ddfa (patch) | |
tree | dcd6e85cbd97c574a387b9a15da36ca986fb55d5 /src/drivers/stm32/drv_hrt.c | |
parent | 12eae1777d11138a0730d6fa54e0f63f98144d11 (diff) | |
download | px4-firmware-e2989bc091c1a4e287534947095a1777d689ddfa.tar.gz px4-firmware-e2989bc091c1a4e287534947095a1777d689ddfa.tar.bz2 px4-firmware-e2989bc091c1a4e287534947095a1777d689ddfa.zip |
Update drv_hrt.c
TIM3 was not working properly with a custom application and I got it work changing TIM3 HRT_TIMER_POWER_BIT from RCC_APB2ENR_TIM3EN to RCC_APB1ENR_TIM3EN because on datasheet TIM3 is on APB1, I think that you should check also the others
Diffstat (limited to 'src/drivers/stm32/drv_hrt.c')
-rw-r--r-- | src/drivers/stm32/drv_hrt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/stm32/drv_hrt.c b/src/drivers/stm32/drv_hrt.c index b7c9b89a4..f324b341e 100644 --- a/src/drivers/stm32/drv_hrt.c +++ b/src/drivers/stm32/drv_hrt.c @@ -94,7 +94,7 @@ #elif HRT_TIMER == 3 # define HRT_TIMER_BASE STM32_TIM3_BASE # define HRT_TIMER_POWER_REG STM32_RCC_APB1ENR -# define HRT_TIMER_POWER_BIT RCC_APB2ENR_TIM3EN +# define HRT_TIMER_POWER_BIT RCC_APB1ENR_TIM3EN # define HRT_TIMER_VECTOR STM32_IRQ_TIM3 # define HRT_TIMER_CLOCK STM32_APB1_TIM3_CLKIN # if CONFIG_STM32_TIM3 |