1
0
forked from fsfw/fsfw

Merge branch 'mueller_framework' of https://egit.irs.uni-stuttgart.de/KSat/fsfw into mueller_framework

This commit is contained in:
2020-02-29 01:22:41 +01:00
6 changed files with 48 additions and 43 deletions

View File

@ -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) {
}
}