FreeRTOS Improvements #82

Closed
muellerr wants to merge 24 commits from KSat:mueller_FreeRTOS_improvements into master
Showing only changes of commit 0e6f8d3f82 - Show all commits

View File

@ -5,15 +5,17 @@
*
*/
#include <framework/osal/FreeRTOS/TaskManagement.h>
#include <FreeRTOS.h>
extern "C" {
#include "FreeRTOS.h"
#include "portmacro.h"
#include "task.h"
}
/**
* TODO: This stuff is hardware and architecture and mission dependant...
* Some FreeRTOS implementations might be able to determine their own task context for example.
* If not ISRs are used, or task preemption is enabled, some of this stuff might
* not be necessary anyway. Maybe there is a better solution?
* Maybe there is a better solution? The request ContextSwitch function
* could be declared external for example.
*/
void TaskManagement::requestContextSwitchFromTask() {
vTaskDelay(0);