You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
123456789101112131415161718192021222324252627 |
- #include "ch.h"
-
- #include "timer.h"
-
- void timer_init(void) {}
-
- void timer_clear(void) {}
-
- uint16_t timer_read(void)
- {
- return (uint16_t)ST2MS(chVTGetSystemTime());
- }
-
- uint32_t timer_read32(void)
- {
- return ST2MS(chVTGetSystemTime());
- }
-
- uint16_t timer_elapsed(uint16_t last)
- {
- return (uint16_t)(ST2MS(chVTTimeElapsedSinceX(MS2ST(last))));
- }
-
- uint32_t timer_elapsed32(uint32_t last)
- {
- return ST2MS(chVTTimeElapsedSinceX(MS2ST(last)));
- }
|