Revision 1544 trunk/code/projects/scheduler/scheduler.h

View differences:

scheduler.h
12 12
#ifndef _SCHEDULER_H_
13 13
#define _SCHEDULER_H_
14 14

  
15
#define STACKSIZE 64
16
#define MAXTASKS 16
15 17

  
18
#define PRIORITY_LOWEST 8
16 19

  
20
#include <stdint.h>
21

  
22
void scheduler_init(void);
23
void yield(void);
24
int register_task(void (*exec)(void), uint16_t period);
25

  
17 26
#endif

Also available in: Unified diff