[ion] blackbox

This commit is contained in:
Romain Goyet
2015-09-29 22:01:48 +02:00
parent b6aded4d8f
commit 5da8500e77
3 changed files with 30 additions and 0 deletions

View File

@@ -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

11
ion/src/blackbox/boot.c Normal file
View File

@@ -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;
}

12
ion/src/blackbox/ion.c Normal file
View File

@@ -0,0 +1,12 @@
#include <stdint.h>
#include <ion.h>
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() {
}