[ion] Clean some dummy files

This commit is contained in:
Romain Goyet
2020-09-03 19:19:24 -04:00
committed by Léa Saviot
parent d02ce2dd16
commit 90b25ecf51
7 changed files with 55 additions and 25 deletions

View File

@@ -1,13 +1,24 @@
#include <ion/backlight.h>
uint8_t Ion::Backlight::brightness() {
namespace Ion {
namespace Backlight {
uint8_t brightness() {
return 0;
}
void Ion::Backlight::setBrightness(uint8_t b) {}
void setBrightness(uint8_t b) {
}
void Ion::Backlight::init() {}
void init() {
}
bool Ion::Backlight::isInitialized() { return true; }
bool isInitialized() {
return true;
}
void Ion::Backlight::shutdown() {}
void shutdown() {
}
}
}

View File

@@ -1,16 +1,22 @@
#include <ion/display.h>
void Ion::Display::POSTPushMulticolor(int rootNumberTiles, int tileSize) {
namespace Ion {
namespace Display {
void POSTPushMulticolor(int rootNumberTiles, int tileSize) {
}
int Ion::Display::displayUniformTilingSize10(KDColor c) {
int displayUniformTilingSize10(KDColor c) {
return 0;
}
int Ion::Display::displayColoredTilingSize10() {
int displayColoredTilingSize10() {
return 0;
}
bool Ion::Display::waitForVBlank() {
bool waitForVBlank() {
return true;
}
}
}

View File

@@ -1,5 +1,4 @@
#include <ion.h>
#include <assert.h>
const char * Ion::fccId() {
return "NA";

View File

@@ -7,9 +7,11 @@ KDColor getColor() {
return KDColorBlack;
}
void setColor(KDColor c) {}
void setColor(KDColor c) {
}
void setBlinking(uint16_t period, float dutyCycle) {}
void setBlinking(uint16_t period, float dutyCycle) {
}
KDColor updateColorWithPlugAndCharge() {
return KDColorBlack;

View File

@@ -0,0 +1,13 @@
#include <ion/power.h>
namespace Ion {
namespace Power {
void suspend(bool checkIfOnOffKeyReleased) {
}
void standby() {
}
}
}

View File

@@ -1,21 +1,27 @@
#include <ion/usb.h>
bool Ion::USB::isPlugged() {
namespace Ion {
namespace USB {
bool isPlugged() {
return false;
}
bool Ion::USB::isEnumerated() {
bool isEnumerated() {
return false;
}
void Ion::USB::clearEnumerationInterrupt() {
void clearEnumerationInterrupt() {
}
void Ion::USB::DFU(bool) {
void DFU(bool) {
}
void Ion::USB::enable() {
void enable() {
}
void Ion::USB::disable() {
void disable() {
}
}
}

View File

@@ -1,7 +0,0 @@
#include <ion.h>
void Ion::Power::suspend(bool checkIfOnOffKeyReleased) {
}
void Ion::Power::standby() {
}