From 6ab397e7afe8be261198444afd3f073e1f468146 Mon Sep 17 00:00:00 2001 From: "Satoshi N. M" Date: Mon, 15 Jan 2018 13:23:16 -0800 Subject: [PATCH] Count milliseconds --- src/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index cb38a58..2f2b619 100644 --- a/src/main.c +++ b/src/main.c @@ -84,12 +84,14 @@ static const char *usb_strings[] = { }; static bool paused = true; + +volatile uint32_t millis = 0; void sys_tick_handler(void) { + ++millis; // TODO: measure frequency } - static void usb_set_config(usbd_device *dev, uint16_t wValue) { cdcacm_set_config(dev, wValue);