|
SatCat5
|
Instantiate a FreeRTOS statically-allocated Task that services the SatCat5 core loop.
The task implementation is in a separate static member function StaticTask::task(). To use, instantiate this class in global scope of your main file and call vTaskStartScheduler() as is typical for FreeRTOS.
#include <task.h>
Public Member Functions | |
| SatCatTask (ControllerFreeRTOS *irq_controller, TickTimer *tick_timer) | |
| void | suspend (void) |
| Suspends running task. | |
| void | resume (void) |
| Resumes suspended task. | |
| void | resume_from_isr (void) |
| Resumes suspended task (should be called from ISR) | |
| TaskHandle_t | get_task_handle (void) |
| Returns task handle of created task. | |
| void | notify (void) |
| Notify Task. | |
| void | notify_from_isr (void) |
| Notify Task (should be called from ISR) | |
Static Public Member Functions | |
| static void | task (void *pvParams) |
| Core task entry function, performs setup then calls poll::service_all() on a loop. More... | |
Public Attributes | |
| ControllerFreeRTOS * | m_irq_controller |
| Interrupt Controller. | |
| TickTimer * | m_tick_timer |
| Reference Timer. | |
Protected Attributes | |
| TaskHandle_t | m_task_handle |
| Task Handle. | |
| StackType_t | m_stack [TASK_SIZE] |
| Task Stack. | |
| StaticTask_t | m_static_task |
| Task internals. | |
|
inlinestatic |
Core task entry function, performs setup then calls poll::service_all() on a loop.
| pvParams | A pointer to a freertos::Parameters struct. |