AutosarOS
context.h File Reference

Context switching. More...

#include "Task.h"
#include "OCB.h"
#include <stdint.h>
Include dependency graph for context.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void save_context (void)
 Save context of current task. More...
 
void restore_context (void)
 Restore context of current task. More...
 
void init_context (void)
 Initialize context of current task. More...
 

Variables

uint8_t *volatile * ptrCurrentStack
 Stack-Pointer saved in current task control block. More...
 
pTaskFxn ptrCurrentFxnAddr
 Function pointer to current task function. More...
 

Detailed Description

Context switching.

Date
2019-09-02
Author
Pascal Romahn

Definition in file context.h.

Function Documentation

◆ init_context()

void init_context ( void  )

Initialize context of current task.

This function is used to initialize the context of the current task.

Here is the caller graph for this function:

◆ restore_context()

void restore_context ( void  )

Restore context of current task.

Here is the caller graph for this function:

◆ save_context()

void save_context ( void  )

Save context of current task.

Here is the caller graph for this function:

Variable Documentation

◆ ptrCurrentFxnAddr

pTaskFxn ptrCurrentFxnAddr
extern

Function pointer to current task function.

Definition at line 66 of file OS.c.

◆ ptrCurrentStack

uint8_t* volatile* ptrCurrentStack
extern

Stack-Pointer saved in current task control block.

Definition at line 61 of file OS.c.