-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlibTTduino.h
More file actions
30 lines (23 loc) · 780 Bytes
/
libTTduino.h
File metadata and controls
30 lines (23 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Only modify this file to include
// - function definitions (prototypes)
// - include files
// - extern variable definitions
// In the appropriate section
#ifndef _libTTduino_H_
#define _libTTduino_H_
#include "Arduino.h"
/*
* Define how often the ticks occur, and the number of tasks in the schedule
*/
#define NUM_TASKS (10) /* Total number of tasks */
/*
* Function pointer for task array
* This links the Task list with the functions from the includes
* */
typedef volatile void (*task_function_t)(void);
// Prototypes
void TTduino_runScheduledTasks(void);
void TTduino_start(uint16_t ticklength);
void TTduino_addTask(task_function_t init, task_function_t task, uint32_t period, uint32_t offset);
//Do not add code below this line
#endif /* _libTTduino_H_ */