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