[ion] repare blackbox

Change-Id: I1229ad45e29db6dac5c296b87acd5663c5564cea
This commit is contained in:
Émilie Feral
2017-04-14 14:46:21 +02:00
parent 255648e6f4
commit 38a1048bc1
3 changed files with 24 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
TOOLCHAIN ?= afl
USE_LIBA ?= 1
USE_LIBA ?= 0
EXE = bin

View File

@@ -10,9 +10,31 @@ void Ion::Display::pushRectUniform(KDRect r, KDColor c) {
void Ion::Display::pullRect(KDRect r, KDColor * pixels) {
}
bool Ion::Keyboard::keyDown(Ion::Keyboard::Key key) {
bool Ion::USB::isPlugged() {
return false;
}
void Ion::msleep(long ms) {
}
const char * Ion::serialNumber() {
return "123";
}
void Ion::LED::setColor(KDColor) {
}
bool Ion::Battery::isCharging() {
return false;
}
Ion::Battery::Charge Ion::Battery::level() {
return Charge::FULL;
}
float Ion::Battery::voltage() {
return 0.0f;
}
void Ion::Display::waitForVBlank() {
}

View File

@@ -8,7 +8,6 @@
Ion::Events::Event Ion::Events::getEvent(int * timeout) {
int c = getchar();
msleep(100);
if (c == EOF) {
exit(0);
} else {