summaryrefslogtreecommitdiffstats
path: root/stm32/app/leds.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/leds.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/leds.c')
-rw-r--r--stm32/app/leds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stm32/app/leds.c b/stm32/app/leds.c
index bcac9b6..b02e584 100644
--- a/stm32/app/leds.c
+++ b/stm32/app/leds.c
@@ -38,7 +38,7 @@ static void metric_pll (void)
v %= 864;
- // printf("M: %5u %9u\r\n",(unsigned) v, (unsigned ) (e.ns/1000000));
+ //printf("M: %5u %9u\r\n",(unsigned) v, (unsigned ) (e.ns/1000000));
ttg = 864 - (unsigned)v;
}
@@ -60,7 +60,7 @@ static void customary_pll (void)
last = ticks;
v = e.ns / 1000000;
- v %= 864;
+ v %= 1000;
ttg = 1000 - (unsigned)v;