repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
separated devices
[mTask.git]
/
client
/
task.h
diff --git
a/client/task.h
b/client/task.h
index
0ea1b99
..
6542b1c
100644
(file)
--- a/
client/task.h
+++ b/
client/task.h
@@
-1,9
+1,12
@@
#ifndef TASK_H
#define TASK_H
#ifndef TASK_H
#define TASK_H
-#define MAXTASKS 5
#define MAXTASKSIZE 1024
#define MAXTASKSIZE 1024
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdint.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdbool.h>
@@
-15,9
+18,15
@@
struct task {
bool used;
};
bool used;
};
+bool is_interrupt_task(struct task* t);
+bool had_interrupt(struct task* t);
+
void task_init(void);
void task_register(void);
void task_delete(void);
struct task *task_get(int num);
void task_init(void);
void task_register(void);
void task_delete(void);
struct task *task_get(int num);
+#ifdef __cplusplus
+}
+#endif
#endif
#endif