52 lines
975 B
C
52 lines
975 B
C
#include <sysinit.h>
|
|
|
|
#include "basic/basic.h"
|
|
|
|
#include "lcd/print.h"
|
|
|
|
#include <string.h>
|
|
|
|
/**************************************************************************/
|
|
|
|
#include "final.gen"
|
|
|
|
void init_nick();
|
|
void fancyNickname();
|
|
|
|
#include "lcd/allfonts.h"
|
|
void forLoadables(int i){
|
|
if(i){
|
|
lcdSetPixel(0,0);
|
|
font=&Font_Invaders;
|
|
filetransfer_send();
|
|
ECIES_encyptkeygen();
|
|
filetransfer_receive();
|
|
ECIES_decryptkeygen();
|
|
bitstr_parse_export();
|
|
nrf_rcv_pkt_time_encr();
|
|
};
|
|
};
|
|
|
|
void main_final(void) {
|
|
//checkFirstBoot();
|
|
init_final();
|
|
forLoadables(0);
|
|
menuflags|=MENU_TIMEOUT;
|
|
|
|
while(1){
|
|
#ifndef FINAL
|
|
if(getInputRaw()==BTN_LEFT)
|
|
ISPandReset();
|
|
#endif
|
|
if(getInput()){
|
|
handleMenu(&mainmenu);
|
|
getInputWaitRelease();
|
|
init_nick();
|
|
};
|
|
work_queue();
|
|
fancyNickname();
|
|
};
|
|
};
|
|
|
|
void tick_final(void);
|