From 5da8500e779816fe30861c6fd031bd82ae1ba988 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Tue, 29 Sep 2015 22:01:48 +0200 Subject: [PATCH] [ion] blackbox --- ion/src/blackbox/Makefile | 7 +++++++ ion/src/blackbox/boot.c | 11 +++++++++++ ion/src/blackbox/ion.c | 12 ++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 ion/src/blackbox/Makefile create mode 100644 ion/src/blackbox/boot.c create mode 100644 ion/src/blackbox/ion.c diff --git a/ion/src/blackbox/Makefile b/ion/src/blackbox/Makefile new file mode 100644 index 000000000..dc1cff182 --- /dev/null +++ b/ion/src/blackbox/Makefile @@ -0,0 +1,7 @@ +objs += $(addprefix ion/src/blackbox/, boot.o ion.o) +#objs += $(addprefix ion/src/simulator/boot/, main.o) +#objs += $(addprefix ion/src/simulator/display/, fltklcd.o) +#objs += $(addprefix ion/src/simulator/keyboard/, fltkkbd.o) + +#SFLAGS += -I/usr/local/Cellar/fltk/1.3.3/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT +#LDFLAGS += -L/usr/local/Cellar/fltk/1.3.3/lib -lfltk -lpthread -framework Cocoa diff --git a/ion/src/blackbox/boot.c b/ion/src/blackbox/boot.c new file mode 100644 index 000000000..990b55a61 --- /dev/null +++ b/ion/src/blackbox/boot.c @@ -0,0 +1,11 @@ +#define HEAP_SIZE 65536 +char heap[HEAP_SIZE]; +char * _liba_heap_start = &heap[0]; +char * _liba_heap_end = &heap[HEAP_SIZE]; + +int main(int argc, char * argv[]) { + ion_app(); +/* while (1) { + }*/ + return 0; +} diff --git a/ion/src/blackbox/ion.c b/ion/src/blackbox/ion.c new file mode 100644 index 000000000..3de2ee775 --- /dev/null +++ b/ion/src/blackbox/ion.c @@ -0,0 +1,12 @@ +#include +#include + +void ion_set_pixel(uint8_t x, uint8_t y, uint8_t color) { +} + +bool ion_key_down(ion_key_t key) { + return 0; +} + +void ion_sleep() { +}