mirror of
https://github.com/RfidResearchGroup/ChameleonMini.git
synced 2026-05-12 11:20:37 -07:00
47 lines
1014 B
C
47 lines
1014 B
C
#include "Chameleon-Mini.h"
|
|
#include "Uart.h"
|
|
#include "uartcmd.h"
|
|
|
|
int main(void) {
|
|
SystemInit();
|
|
SettingsLoad();
|
|
LEDInit();
|
|
MemoryInit();
|
|
DetectionInit();
|
|
CodecInitCommon();
|
|
ConfigurationInit();
|
|
TerminalInit();
|
|
RandomInit();
|
|
ButtonInit();
|
|
AntennaLevelInit();
|
|
LogInit();
|
|
SystemInterruptInit();
|
|
uart_init();
|
|
uartcmd_init();
|
|
|
|
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();
|
|
uartcmd_tick();
|
|
|
|
LEDHook(LED_POWERED, LED_ON);
|
|
}
|
|
|
|
uart_task();
|
|
uartcmd_task();
|
|
TerminalTask();
|
|
LogTask();
|
|
ApplicationTask();
|
|
CodecTask();
|
|
}
|
|
}
|
|
|