Ви не можете вибрати більше 25 тем
Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
1234567891011121314151617 |
- #ifndef TIMER_H
- #define TIMER_H 1
-
- #include <stdint.h>
-
- #define TIMER_DIFF(a, b) ((a) >= (b) ? (a) - (b) : UINT16_MAX - (b) + (a))
-
-
- extern uint16_t timer_count;
-
-
- void timer_init(void);
- void timer_clear(void);
- uint16_t timer_read(void);
- uint16_t timer_elapsed(uint16_t last);
-
- #endif
|