timer_utils.c 194 B

123456789101112
  1. #include "timer_utils.h"
  2. bool timer_expired(uint16_t last)
  3. {
  4. return timer_read() - last < 0x8000;
  5. }
  6. bool timer_expired32(uint32_t last)
  7. {
  8. return timer_read32() - last < 0x80000000;
  9. }