Added timeout wait functions to core

This commit is contained in:
Ea-r-th
2025-09-17 20:07:17 -07:00
parent 75132eb040
commit 8ce717033a
4 changed files with 77 additions and 31 deletions

View File

@@ -22,6 +22,9 @@ void SHAL_init();
//Universal structs and defines ---------------------------
typedef bool (*condition_fn_t)(void);
//Currently configures systick to count down in microseconds
void systick_init();
@@ -30,6 +33,10 @@ void SHAL_delay_us(uint32_t us);
void SHAL_delay_ms(uint32_t ms);
bool SHAL_wait_for_condition_us(condition_fn_t condition, uint32_t timeout_us);
bool SHAL_wait_for_condition_ms(condition_fn_t condition, uint32_t timeout_ms);
//---------------------------------------------------------