avoid 64 bit divide (!) exploding binary size (#293)

fixing unit tests

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
This commit is contained in:
rusefillc 2023-11-20 04:48:23 -05:00 committed by GitHub
parent fa042fb6f5
commit f784d5d5b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,8 @@ Timer::Timer() {
#ifdef MOCK_TIMER
#define CH_CFG_ST_FREQUENCY 1000000
// in mock land, ticks == microseconds
#define TIME_US2I(us) (us)
#define TIME_I2US(ticks) (ticks)