Project

General

Profile

Statistics
| Revision:

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

History | View | Annotate | Download (502 Bytes)

1 1479 jsexton
/**
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 16 bcoltin
12 1479 jsexton
#ifndef _SCHEDULER_H_
13
#define _SCHEDULER_H_
14 1419 jsexton
15 1544 justin
#define STACKSIZE 64
16
#define MAXTASKS 16
17 967 alevkoy
18 1544 justin
#define PRIORITY_LOWEST 8
19 967 alevkoy
20 1544 justin
#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 1479 jsexton
#endif