summaryrefslogtreecommitdiff
path: root/code/fe310/eos/cell.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2019-12-07 17:18:37 +0100
committerUros Majstorovic <majstor@majstor.org>2019-12-07 17:18:37 +0100
commit256db0fba03232ab4ad9a151487677f8d538e69a (patch)
tree790e2e2c104b3fa6c56a15952923bdd4fa1dfb24 /code/fe310/eos/cell.h
parent2e6facf66ee3d6aa37f2fb41096b1763261506a7 (diff)
addded uart driver and cell stub driver
Diffstat (limited to 'code/fe310/eos/cell.h')
-rw-r--r--code/fe310/eos/cell.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/code/fe310/eos/cell.h b/code/fe310/eos/cell.h
new file mode 100644
index 0000000..badce3d
--- /dev/null
+++ b/code/fe310/eos/cell.h
@@ -0,0 +1,16 @@
+#include <stdint.h>
+#include "event.h"
+
+#define EOS_CELL_MTYPE_DATA 0
+#define EOS_CELL_MTYPE_AUDIO 1
+
+#define EOS_CELL_MTYPE_DATA_START 2
+#define EOS_CELL_MTYPE_DATA_STOP 3
+
+#define EOS_CELL_MTYPE_AUDIO_START 2
+#define EOS_CELL_MTYPE_AUDIO_STOP 3
+
+#define EOS_CELL_MAX_MTYPE 2
+
+void eos_cell_init(void);
+void eos_cell_set_handler(int mtype, eos_evt_fptr_t handler, uint8_t flags); \ No newline at end of file