19static constexpr size_t MaxStaticTasks = 32;
24 typedef uint32_t TaskBuffer_t;
26 typedef void (*taskfunc_t)(void);
27 typedef void* TaskHandle_t;
41 char const*
const name,
45 const int startSuspended);
void HAL_shutdown()
Shutdown the thread HAL.
int HAL_wait_notification(const int timeout_ms)
Put this thread in suspended mode, waiting for a notification. This function wil block execution unti...
void HAL_suspend_thread(TaskHandle_t handle)
Suspend the target thread.
void HAL_get_debug_thread_text(char *textBuff)
Given a buffer, return a buffer debug text.
void HAL_yield()
Yield this thread.
void HAL_resume_thread(TaskHandle_t handle)
Resume a suspended thread.
uint32_t HAL_create_thread(TaskHandle_t *handle, taskfunc_t task, char const *const name, const int priority, const int stackSize, TaskBuffer_t *buffer, const int startSuspended)
Create a thread from the given function and return the associated handle.
uint32_t HAL_get_task_high_water_mark_byte(TaskHandle_t handle)
Return a task stack high water mark in bytes.
void HAL_suspend()
Suspend this thread.
void HAL_notify_thread(TaskHandle_t handle, int wakeUpEvent)
Notify a thread with a value.
int HAL_is_suspended(TaskHandle_t handle)
Return 0 if thread is suspended.
Program scope.
Definition: control_fixed_modes.hpp:12