git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4999 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2012-12-30 17:41:53 +00:00
parent 567fd6ac12
commit c4dcbb3e98
2 changed files with 6 additions and 2 deletions

View File

@ -114,7 +114,7 @@ void hal_lld_init(void) {
SysTick_CTRL_ENABLE_Msk |
SysTick_CTRL_TICKINT_Msk;
/* PWR and BD clocks enabled.*/
/* PWR clock enabled.*/
rccEnablePWRInterface(FALSE);
/* Initializes the backup domain.*/

View File

@ -114,7 +114,11 @@ void hal_lld_init(void) {
SysTick_CTRL_ENABLE_Msk |
SysTick_CTRL_TICKINT_Msk;
/* PWR and BD clocks enabled.*/
/* DWT cycle counter enable.*/
SCS_DEMCR |= SCS_DEMCR_TRCENA;
DWT_CTRL |= DWT_CTRL_CYCCNTENA;
/* PWR clock enabled.*/
rccEnablePWRInterface(FALSE);
/* Initializes the backup domain.*/