summaryrefslogtreecommitdiffstats
path: root/stm32/app/main.c
diff options
context:
space:
mode:
authorroot <root@ka-ata-killa.panaceas.james.local>2021-11-22 11:23:35 +0000
committerroot <root@ka-ata-killa.panaceas.james.local>2021-11-22 11:23:35 +0000
commitf75d0b7eabe275a4330eb72dc4a4c5d2af1fb13d (patch)
tree0587532f19c2833d7ccbab1e63d74f6f7e39544e /stm32/app/main.c
parent3028595801878f962bd362421ed3ec5af635ff45 (diff)
downloadmetric_clock-f75d0b7eabe275a4330eb72dc4a4c5d2af1fb13d.tar.gz
metric_clock-f75d0b7eabe275a4330eb72dc4a4c5d2af1fb13d.tar.bz2
metric_clock-f75d0b7eabe275a4330eb72dc4a4c5d2af1fb13d.zip
turn on cycle counter correctly, and add a for-real motor
Diffstat (limited to 'stm32/app/main.c')
-rw-r--r--stm32/app/main.c2
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);