Last change
on this file since 161 was
158,
checked in by alain, 13 years ago
|
Introducing the giet_vm and some example applications
|
File size:
801 bytes
|
Rev | Line | |
---|
[158] | 1 | #ifndef _CTX_HANDLER_H |
---|
| 2 | #define _CTX_HANDLER_H |
---|
| 3 | |
---|
| 4 | #include <giet_config.h> |
---|
| 5 | |
---|
| 6 | ///////////////////////////////////////////////////////////////////////////////// |
---|
| 7 | // Definition of the scheduler structure |
---|
| 8 | ///////////////////////////////////////////////////////////////////////////////// |
---|
| 9 | |
---|
| 10 | typedef struct static_scheduler_s |
---|
| 11 | { |
---|
| 12 | unsigned int context[GIET_NB_TASKS_MAX][64]; // task contexts |
---|
| 13 | unsigned int tasks; // actual number of tasks |
---|
| 14 | unsigned int current; // current task index |
---|
| 15 | } static_scheduler_t; |
---|
| 16 | |
---|
| 17 | ////////////////////////////////////////////////////////////////////////////////// |
---|
| 18 | // Prototype of the context switch function |
---|
| 19 | ////////////////////////////////////////////////////////////////////////////////// |
---|
| 20 | |
---|
| 21 | extern void _ctx_switch(); |
---|
| 22 | |
---|
| 23 | extern static_scheduler_t _scheduler[]; |
---|
| 24 | |
---|
| 25 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.