X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=tmk_core%2Fcommon%2Fchibios%2Ftimer.c;h=0208a593b33d94cd79df1cc6337e1082e33ef47b;hb=8345571e1df07cdbe612541baa9e4f3441ad3f9e;hp=3de4cc368bad9f82fa76544ec2b61c8970e580bb;hpb=b47a88f4a5c3e054539f4113cdf13cf8d2c65545;p=max%2Ftmk_keyboard.git diff --git a/tmk_core/common/chibios/timer.c b/tmk_core/common/chibios/timer.c index 3de4cc36..0208a593 100644 --- a/tmk_core/common/chibios/timer.c +++ b/tmk_core/common/chibios/timer.c @@ -8,20 +8,20 @@ void timer_clear(void) {} uint16_t timer_read(void) { - return (uint16_t)ST2MS(chVTGetSystemTime()); + return (uint16_t)TIME_I2MS(chVTGetSystemTime()); } uint32_t timer_read32(void) { - return ST2MS(chVTGetSystemTime()); + return TIME_I2MS(chVTGetSystemTime()); } uint16_t timer_elapsed(uint16_t last) { - return (uint16_t)(ST2MS(chVTTimeElapsedSinceX(MS2ST(last)))); + return (uint16_t)(TIME_I2MS(chVTTimeElapsedSinceX(TIME_MS2I(last)))); } uint32_t timer_elapsed32(uint32_t last) { - return ST2MS(chVTTimeElapsedSinceX(MS2ST(last))); + return TIME_I2MS(chVTTimeElapsedSinceX(TIME_MS2I(last))); }