mirror of
https://github.com/satoshinm/pill_6502.git
synced 2024-12-27 17:29:19 +00:00
Count milliseconds
This commit is contained in:
parent
09add1f057
commit
6ab397e7af
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user