repositories
/
mTask.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
stm support
[mTask.git]
/
int
/
nucleo-f767-blinky
/
src
/
task.h
1
#ifndef TASK_H
2
#define TASK_H
3
4
#define MAXTASKS 5
5
#define MAXTASKSIZE 1024
6
7
#include <stdint.h>
8
#include <stdbool.h>
9
10
struct
task
{
11
uint8_t
bc
[
MAXTASKSIZE
];
12
uint16_t
tlen
;
13
uint16_t
interval
;
14
long
lastrun
;
15
bool
used
;
16
};
17
18
void
task_init
();
19
int
task_register
();
20
void
task_delete
();
21
struct
task
*
task_get
(
int
num
);
22
23
#endif