aboutsummaryrefslogtreecommitdiff
path: root/src/sys/schedule.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/schedule.h')
-rw-r--r--src/sys/schedule.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sys/schedule.h b/src/sys/schedule.h
index 2fd6acd..c8e938d 100644
--- a/src/sys/schedule.h
+++ b/src/sys/schedule.h
@@ -1,6 +1,12 @@
#ifndef SYS_SCHEDULE_H
#define SYS_SCHEDULE_H
+#define STACK_SIZE 0x1000
+struct TaskMemory {
+ unsigned long reg[16];
+ unsigned char stack[STACK_SIZE];
+};
+
struct Task {
unsigned char priority;
void (*task)(void);
@@ -23,7 +29,6 @@ struct Scheduler {
#endif
void add_fxn(void (*task)(void), unsigned char priority);
-void add_task(struct Task*);
unsigned int get_task_length(void);
void execute_task(void);