Project

General

Profile

Statistics
| Revision:

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

History | View | Annotate | Download (506 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 1573 justin
#define STACKSIZE 128
16 1574 justin
#define MAXTASKS 4
17 967 alevkoy
18 1544 justin
#include <stdint.h>
19
20
void scheduler_init(void);
21
void yield(void);
22 1573 justin
23 1544 justin
int register_task(void (*exec)(void), uint16_t period);
24
25 1573 justin
unsigned int time_now(void);
26
27 1479 jsexton
#endif