1
0
forked from fsfw/fsfw

all context switches calls to TaskManagement.h now

This commit is contained in:
2020-02-28 22:55:25 +01:00
parent c93ee5c6cd
commit fa38a37604
6 changed files with 48 additions and 43 deletions

View File

@ -9,11 +9,11 @@
#include "portmacro.h"
#include "task.h"
void requestContextSwitchFromTask() {
void TaskManagement::requestContextSwitchFromTask() {
vTaskDelay(0);
}
void requestContextSwitch(SystemContext callContext) {
void TaskManagement::requestContextSwitch(SystemContext callContext = SystemContext::task_context) {
if(callContext == SystemContext::isr_context) {
// This function depends on the partmacro.h definition for the specific device
portYIELD_FROM_ISR();
@ -22,3 +22,5 @@ void requestContextSwitch(SystemContext callContext) {
}
}