diff options
Diffstat (limited to 'stm32/app/main.c')
-rw-r--r-- | stm32/app/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stm32/app/main.c b/stm32/app/main.c index 344a106..31f220d 100644 --- a/stm32/app/main.c +++ b/stm32/app/main.c @@ -18,7 +18,7 @@ int main (void) rcc_periph_clock_enable (RCC_PWR); rcc_periph_clock_enable (RCC_BKP); pwr_disable_backup_domain_write_protect(); - DWT_CTRL |= DWT_CTRL_CYCCNTENA; + dwt_enable_cycle_counter(); nvic_set_priority (NVIC_SYSTICK_IRQ, 0x80); |