root / trunk / code / projects / scheduler / scheduler.h @ 1574
History | View | Annotate | Download (506 Bytes)
1 |
/**
|
---|---|
2 |
* @file scheduler.h
|
3 |
* @brief Contains scheduler declarations and functions
|
4 |
*
|
5 |
* Contains functions and definitions to implement a timer-based
|
6 |
* scheduler and register tasks with the scheduler.
|
7 |
*
|
8 |
* @author Colony Project, CMU Robotics Club
|
9 |
*
|
10 |
**/
|
11 |
|
12 |
#ifndef _SCHEDULER_H_
|
13 |
#define _SCHEDULER_H_
|
14 |
|
15 |
#define STACKSIZE 128 |
16 |
#define MAXTASKS 4 |
17 |
|
18 |
#include <stdint.h> |
19 |
|
20 |
void scheduler_init(void); |
21 |
void yield(void); |
22 |
|
23 |
int register_task(void (*exec)(void), uint16_t period); |
24 |
|
25 |
unsigned int time_now(void); |
26 |
|
27 |
#endif
|