Count milliseconds

This commit is contained in:
Satoshi N. M 2018-01-15 13:23:16 -08:00
parent 09add1f057
commit 6ab397e7af

View File

@ -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);