6#define SCHED_NOTIFY_TIMER (1 << 0)
20 typedef void* TaskHandle_t;
28 extern const uint32_t button_taskName;
53 extern void start_thread(
taskfunc_t taskFunction,
const uint32_t taskName,
const int priority,
const int stackSize);
63 const uint32_t taskName,
90 extern void notify_thread(
const uint32_t taskName,
int wakeUpEvent);
100 extern void display_thread_debug();
void notify_thread(const uint32_t taskName, int wakeUpEvent)
notify a thread to resume
Definition: threads.cpp:149
const uint32_t ble_cli_taskName
BLE cli queue.
Definition: threads.cpp:26
void suspend_this_thread()
threads can only suspend itself
Definition: threads.cpp:118
int wait_notification(const int timeout_ms)
block this thread until a timeout or notification is received
Definition: threads.cpp:160
void shutdown()
Shutdown the task driver cleanly.
Definition: threads.cpp:177
const uint32_t print_taskName
UART print task.
Definition: threads.cpp:27
const uint32_t sunset_taskName
name of the task schedule sunset
Definition: threads.cpp:25
const uint32_t taskScheduler_taskName
name of the task scheduling task
Definition: threads.cpp:24
const uint32_t user_taskName
name of the optional user task
Definition: threads.cpp:23
void(* taskfunc_t)(void)
model of a task function
Definition: threads.h:43
void resume_thread(const uint32_t taskName)
resume a target thread
Definition: threads.cpp:120
void start_thread(taskfunc_t taskFunction, const uint32_t taskName, const int priority, const int stackSize)
Start a separate thread, running until the system shuts off.
Definition: threads.cpp:106
const uint32_t pdInterruptHandle_taskName
name of the USB power delivery interrupt handle task
Definition: threads.cpp:20
uint16_t get_usage_percent(const uint32_t taskName)
Get the stack usage of this task, in percent.
Definition: threads.cpp:133
void start_suspended_thread(taskfunc_t taskFunction, const uint32_t taskName, const int priority, const int stackSize)
Start a separate thread, running until the system shuts off. Start in suspended state.
Definition: threads.cpp:111
void yield_this_thread()
make this thread pass the control to other threads
Definition: threads.cpp:116
const uint32_t pd_taskName
name of the USB power delivery task
Definition: threads.cpp:19
const uint32_t power_taskName
name of the main power task
Definition: threads.cpp:22
Program scope.
Definition: control_fixed_modes.hpp:12