diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-02-11 08:57:22 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-02-11 08:57:22 +0000 |
commit | 267cd61c1914bc1d71f47f020d391c2d3ac1c224 (patch) | |
tree | 070a8a95f0b45ef4154afc21314f6d14b8a5ae73 /os/hal/platforms/STM32F4xx | |
parent | 0921f80daa58844fc056ac6720720682da9ceb45 (diff) | |
download | ChibiOS-267cd61c1914bc1d71f47f020d391c2d3ac1c224.tar.gz ChibiOS-267cd61c1914bc1d71f47f020d391c2d3ac1c224.tar.bz2 ChibiOS-267cd61c1914bc1d71f47f020d391c2d3ac1c224.zip |
Fixed bug 3485500.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3950 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F4xx')
-rw-r--r-- | os/hal/platforms/STM32F4xx/hal_lld.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32F4xx/hal_lld.c b/os/hal/platforms/STM32F4xx/hal_lld.c index e7c09cc06..44de90602 100644 --- a/os/hal/platforms/STM32F4xx/hal_lld.c +++ b/os/hal/platforms/STM32F4xx/hal_lld.c @@ -107,7 +107,8 @@ void hal_lld_init(void) { SysTick_CTRL_TICKINT_Msk;
/* DWT cycle counter enable.*/
- DWT_CTRL |= DWT_CTRL_CYCCNTENA;
+ SCS_DEMCR |= SCS_DEMCR_TRCENA;
+ DWT_CTRL |= DWT_CTRL_CYCCNTENA;
/* PWR clock enabled.*/
rccEnablePWRInterface(FALSE);
|