Merge branch 'mueller_framework' of https://egit.irs.uni-stuttgart.de/KSat/fsfw into mueller_framework
This commit is contained in:
@ -15,11 +15,11 @@
|
||||
* 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?
|
||||
*/
|
||||
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();
|
||||
@ -28,3 +28,5 @@ void requestContextSwitch(SystemContext callContext) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user