aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-11-15 10:58:06 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-11-15 10:58:06 +0000
commit814f45bc703fc6dba726c7783114515331024351 (patch)
tree51f0e7f88f08acf868e24e6daf60c3708898b6d0
parent30b7651875f7eee983f89b153a547ad3c8c4ae0a (diff)
downloadChibiOS-814f45bc703fc6dba726c7783114515331024351.tar.gz
ChibiOS-814f45bc703fc6dba726c7783114515331024351.tar.bz2
ChibiOS-814f45bc703fc6dba726c7783114515331024351.zip
Fixed bug #791.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9914 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/hal/ports/STM32/LLD/TIMv1/hal_gpt_lld.c2
-rw-r--r--readme.txt2
2 files changed, 3 insertions, 1 deletions
diff --git a/os/hal/ports/STM32/LLD/TIMv1/hal_gpt_lld.c b/os/hal/ports/STM32/LLD/TIMv1/hal_gpt_lld.c
index 3e917e27a..a2846f4e2 100644
--- a/os/hal/ports/STM32/LLD/TIMv1/hal_gpt_lld.c
+++ b/os/hal/ports/STM32/LLD/TIMv1/hal_gpt_lld.c
@@ -829,7 +829,7 @@ void gpt_lld_start_timer(GPTDriver *gptp, gptcnt_t interval) {
gptp->tim->SR = 0; /* Clear pending IRQs. */
if (NULL != gptp->config->callback)
gptp->tim->DIER |= STM32_TIM_DIER_UIE; /* Update Event IRQ enabled.*/
- gptp->tim->CR1 = STM32_TIM_CR1_URS | STM32_TIM_CR1_CEN;
+ gptp->tim->CR1 = STM32_TIM_CR1_ARPE | STM32_TIM_CR1_URS | STM32_TIM_CR1_CEN;
}
/**
diff --git a/readme.txt b/readme.txt
index 10ab46a02..371c8d843 100644
--- a/readme.txt
+++ b/readme.txt
@@ -147,6 +147,8 @@
- RT: Merged RT4.
- NIL: Merged NIL2.
- NIL: Added STM32F7 demo.
+- HAL: Fixed missing ARPE bit in CR1 initialization on STM32 GPT driver
+ (bug #791)(backported to 16.1.6, 3.0.6).
- HAL: Fixed wrong DMA definition for STM32F303x8 ADC (bug #790)(backported
to 16.1.6).
- VAR: Fixed GCC garbage collector discards code in syscalls.c (bug #789)