Add systick function that checks for passed ticks with correct wrap around
This commit is contained in:
		| @@ -26,6 +26,7 @@ | ||||
| #define __SYSTICK_H__ | ||||
|  | ||||
| #include <stdint.h> | ||||
| #include <stdbool.h> | ||||
|  | ||||
| /** | ||||
|  * @brief Reload value for the systick timer. | ||||
| @@ -65,4 +66,6 @@ void systick_wait_ms(uint32_t ms); | ||||
|  | ||||
| uint64_t systick_get_global_tick(); | ||||
|  | ||||
| bool systick_ticks_have_passed(uint64_t start_timestamp, uint64_t ticks); | ||||
|  | ||||
| #endif /* __SYSTICK_H__ */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user