mirror of
https://github.com/keirf/greaseweazle-firmware.git
synced 2025-10-31 11:06:44 -07:00
time: Proactive pull from FlashFloppy for 32-bit timebase update period
Make the period proportional to systick rate by updating the timebase every 2^23 systicks. This will always be safe, no matter how high the systick rate.
This commit is contained in:
@@ -14,6 +14,7 @@ typedef uint32_t time_t;
|
||||
#define TIME_MHZ STK_MHZ
|
||||
#define time_us(x) stk_us(x)
|
||||
#define time_ms(x) stk_ms(x)
|
||||
#define time_stk(x) (x)
|
||||
#define time_sysclk(x) stk_sysclk(x)
|
||||
#define sysclk_time(x) sysclk_stk(x)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user