aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/heap.h11
-rw-r--r--include/task.h10
2 files changed, 21 insertions, 0 deletions
diff --git a/include/heap.h b/include/heap.h
new file mode 100644
index 0000000..e04b15e
--- /dev/null
+++ b/include/heap.h
@@ -0,0 +1,11 @@
+#ifndef HEAP_H_
+#define HEAP_H_
+
+#include <stdint.h>
+
+uint32_t heap_available(void);
+
+void *hmalloc(uint32_t size);
+void *hcalloc(uint32_t count, uint32_t size);
+
+#endif // HEAP_H_
diff --git a/include/task.h b/include/task.h
new file mode 100644
index 0000000..c57b2c0
--- /dev/null
+++ b/include/task.h
@@ -0,0 +1,10 @@
+#ifndef TASK_H_
+#define TASK_H_
+
+#include <stdint.h>
+
+void task_init(void (*init)(void));
+
+void task_start(void (*task)(void), uint16_t stackSize);
+
+#endif // TASK_H_