AutosarOS
context.h
Go to the documentation of this file.
1 
15 #ifndef CONTEXT_H_
16 #define CONTEXT_H_
17 
18 #include "Task.h"
19 #include "OCB.h"
20 
21 #include <stdint.h>
22 
26 extern uint8_t* volatile* ptrCurrentStack;
27 
32 
36 extern void save_context(void);
37 
41 extern void restore_context(void);
42 
48 extern void init_context(void);
49 
50 #endif /* CONTEXT_H_ */
ptrCurrentFxnAddr
pTaskFxn ptrCurrentFxnAddr
Function pointer to current task function.
Definition: OS.c:66
restore_context
void restore_context(void)
Restore context of current task.
Task.h
Task management.
ptrCurrentStack
uint8_t *volatile * ptrCurrentStack
Stack-Pointer saved in current task control block.
Definition: OS.c:61
init_context
void init_context(void)
Initialize context of current task.
pTaskFxn
void(* pTaskFxn)()
Definition: TaskTypes.h:24
OCB.h
Operating System Control Block.
save_context
void save_context(void)
Save context of current task.