|
PebbleOS
|
#include <stdbool.h>#include <stdint.h>#include <kernel/pebble_tasks.h>Typedefs | |
| typedef void(* | SystemTaskEventCallback) (void *data) |
| System task callback. | |
Functions | |
| void | system_task_init (void) |
| Create the KernelBG task. | |
| void | system_task_timer_init (void) |
| Set up the timers used by the system task, once timers are available. | |
| void | system_task_watchdog_feed (void) |
| Feed the KernelBG watchdog. | |
| bool | system_task_add_callback_from_isr (SystemTaskEventCallback cb, void *data) |
| Queue a callback from an ISR. | |
| bool | system_task_add_callback_droppable (SystemTaskEventCallback cb, void *data) |
| Queue a callback without waiting, dropping it if the queue is full. | |
| bool | system_task_add_callback_from_isr_droppable (SystemTaskEventCallback cb, void *data) |
| ISR flavour of system_task_add_callback_droppable(). | |
| bool | system_task_add_callback_from_isr_droppable_raised (SystemTaskEventCallback cb, void *data) |
| Queue a droppable callback that raises KernelBG priority until it has run. | |
| bool | system_task_add_callback (SystemTaskEventCallback cb, void *data) |
| Queue a callback from task context. | |
| void | system_task_block_callbacks (bool block) |
| Block or unblock new callbacks. | |
| uint32_t | system_task_get_available_space (void) |
| Get the free space of the queue used by the calling task. | |
| void * | system_task_get_current_callback (void) |
| Get the callback being run, for debugging. | |
| void | system_task_enable_raised_priority (bool is_raised) |
| Acquire or release a reference raising KernelBG priority. | |
| bool | system_task_is_ready_to_run (void) |
| Check whether KernelBG is ready to run. | |