repositories
/
mTask.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
nodeMCU client is working
[mTask.git]
/
client
/
task.h
1
#ifndef TASK_H
2
#define TASK_H
3
4
#define MAXTASKSIZE 1024
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
10
#include <stdint.h>
11
#include <stdbool.h>
12
13
struct
task
{
14
uint8_t
bc
[
MAXTASKSIZE
];
15
uint16_t
tlen
;
16
uint16_t
interval
;
17
long
lastrun
;
18
bool
used
;
19
};
20
21
bool
is_interrupt_task
(
struct
task
*
t
);
22
bool
had_interrupt
(
struct
task
*
t
);
23
24
void
task_init
(
void
);
25
void
task_register
(
void
);
26
void
task_delete
(
void
);
27
struct
task
*
task_get
(
int
num
);
28
29
#ifdef __cplusplus
30
}
31
#endif
32
#endif