From af63b0cedc5e537241f7ba1c1ef9c7ffd03d743b Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 15 Nov 2016 10:57:59 +0000 Subject: [PATCH] Fixed bug #791. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_16.1.x@9913 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/TIMv1/gpt_lld.c | 2 +- readme.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/os/hal/ports/STM32/LLD/TIMv1/gpt_lld.c b/os/hal/ports/STM32/LLD/TIMv1/gpt_lld.c index 127e9119f..f25f0b869 100644 --- a/os/hal/ports/STM32/LLD/TIMv1/gpt_lld.c +++ b/os/hal/ports/STM32/LLD/TIMv1/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 806890418..fad9a1890 100644 --- a/readme.txt +++ b/readme.txt @@ -73,6 +73,8 @@ ***************************************************************************** *** 16.1.6 *** +- HAL: Fixed missing ARPE bit in CR1 initialization on STM32 GPT driver + (bug #791). - HAL: Fixed wrong DMA definition for STM32F303x8 ADC (bug #790). - VAR: Fixed GCC garbage collector discards code in syscalls.c (bug #789). - HAL: Fixed Makefile dependencies not generated for .S files (bug #787).