diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-03-08 17:48:23 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-03-08 17:48:23 +0000 |
commit | aa5e4b5e81f2f961b52e1b87a17c9c0eb71ab01b (patch) | |
tree | 9ccda1293ce0bf4b346d52e91af5c6dcb9d54760 /os/hal/ports | |
parent | 004c5bac0656683f315cf4baf57c2bb90e9453fb (diff) | |
download | ChibiOS-aa5e4b5e81f2f961b52e1b87a17c9c0eb71ab01b.tar.gz ChibiOS-aa5e4b5e81f2f961b52e1b87a17c9c0eb71ab01b.tar.bz2 ChibiOS-aa5e4b5e81f2f961b52e1b87a17c9c0eb71ab01b.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6761 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports')
-rw-r--r-- | os/hal/ports/STM32/LLD/TIMv1/gpt_lld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/STM32/LLD/TIMv1/gpt_lld.c b/os/hal/ports/STM32/LLD/TIMv1/gpt_lld.c index 75c19f6b2..29173a8b5 100644 --- a/os/hal/ports/STM32/LLD/TIMv1/gpt_lld.c +++ b/os/hal/ports/STM32/LLD/TIMv1/gpt_lld.c @@ -752,10 +752,10 @@ void gpt_lld_polled_delay(GPTDriver *gptp, gptcnt_t interval) { gptp->tim->ARR = (uint32_t)(interval - 1); /* Time constant. */
gptp->tim->EGR = STM32_TIM_EGR_UG; /* Update event. */
- gptp->tim->SR = 0; /* Clear pending IRQs. */
gptp->tim->CR1 = STM32_TIM_CR1_OPM | STM32_TIM_CR1_URS | STM32_TIM_CR1_CEN;
while (!(gptp->tim->SR & STM32_TIM_SR_UIF))
;
+ gptp->tim->SR = 0; /* Clear pending IRQs. */
}
#endif /* HAL_USE_GPT */
|