6#define SCHED_NOTIFY_TIMER (1 << 0)
20 typedef void* TaskHandle_t;
21 typedef uint32_t TaskBuffer_t;
29 extern const uint32_t button_taskName;
56 const uint32_t taskName,
59 TaskBuffer_t* buffer);
70 const uint32_t taskName,
73 TaskBuffer_t* buffer);
98 extern void notify_thread(
const uint32_t taskName,
int wakeUpEvent);
108 extern void display_thread_debug();
void notify_thread(const uint32_t taskName, int wakeUpEvent)
notify a thread to resume
Definition: threads.cpp:161
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:130
int wait_notification(const int timeout_ms)
block this thread until a timeout or notification is received
Definition: threads.cpp:172
void shutdown()
Shutdown the task driver cleanly.
Definition: threads.cpp:189
void start_thread(taskfunc_t taskFunction, const uint32_t taskName, const int priority, const int stackSize, TaskBuffer_t *buffer)
Start a separate thread, running until the system shuts off.
Definition: threads.cpp:116
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:44
void resume_thread(const uint32_t taskName)
resume a target thread
Definition: threads.cpp:132
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:145
void start_suspended_thread(taskfunc_t taskFunction, const uint32_t taskName, const int priority, const int stackSize, TaskBuffer_t *buffer)
Start a separate thread, running until the system shuts off. Start in suspended state.
Definition: threads.cpp:122
void yield_this_thread()
make this thread pass the control to other threads
Definition: threads.cpp:128
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