Files
2019-11-15 10:21:40 +01:00

39 lines
844 B
C

#include "Chameleon-Mini.h"
int main(void) {
SystemInit();
SettingsLoad();
LEDInit();
MemoryInit();
CodecInitCommon();
ConfigurationInit();
TerminalInit();
RandomInit();
ButtonInit();
AntennaLevelInit();
LogInit();
SystemInterruptInit();
while (1) {
if (SystemTick100ms()) {
LEDTick(); // this has to be the first function called here, since it is time-critical - the functions below may have non-negligible runtimes!
RandomTick();
TerminalTick();
ButtonTick();
LogTick();
ApplicationTick();
CommandLineTick();
AntennaLevelTick();
LEDHook(LED_POWERED, LED_ON);
}
TerminalTask();
LogTask();
ApplicationTask();
CodecTask();
}
}