Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / scheduler / scheduler.h @ 1544

History | View | Annotate | Download (502 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 64
16
#define MAXTASKS 16
17

    
18
#define PRIORITY_LOWEST 8
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

    
26
#endif