all context switches calls to TaskManagement.h now
This commit is contained in:
@ -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) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user