diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-31 06:22:30 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-31 06:22:30 +0000 |
commit | a484164f768cdea9b346b2af2c71376e8e260d21 (patch) | |
tree | 9837887373002c08698f417ba48575bb4e210f0a /os/hal/ports | |
parent | 330e38629d60553f3d9ab8f544361cdb3deee691 (diff) | |
download | ChibiOS-a484164f768cdea9b346b2af2c71376e8e260d21.tar.gz ChibiOS-a484164f768cdea9b346b2af2c71376e8e260d21.tar.bz2 ChibiOS-a484164f768cdea9b346b2af2c71376e8e260d21.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7833 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports')
-rw-r--r-- | os/hal/ports/STM32/LLD/TIMv1/st_lld.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/TIMv1/st_lld.h b/os/hal/ports/STM32/LLD/TIMv1/st_lld.h index 7e64b893b..9c5442158 100644 --- a/os/hal/ports/STM32/LLD/TIMv1/st_lld.h +++ b/os/hal/ports/STM32/LLD/TIMv1/st_lld.h @@ -164,6 +164,7 @@ static inline void st_lld_stop_alarm(void) { static inline void st_lld_set_alarm(systime_t time) {
STM32_ST_TIM->CCR[0] = (uint32_t)time;
+ STM32_ST_TIM->SR = 0;
}
/**
|