2011-08-02 00:10:15 +00:00
|
|
|
#include <sysinit.h>
|
|
|
|
|
|
|
|
#include "basic/basic.h"
|
|
|
|
|
|
|
|
#include "lcd/print.h"
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
2011-08-03 08:54:22 +00:00
|
|
|
#include "basic/ecc.h"
|
|
|
|
|
2011-08-02 00:10:15 +00:00
|
|
|
/**************************************************************************/
|
|
|
|
|
|
|
|
#include "final.gen"
|
|
|
|
|
2011-08-02 11:31:57 +00:00
|
|
|
void init_nick();
|
2011-08-02 00:10:15 +00:00
|
|
|
void fancyNickname();
|
|
|
|
|
2011-08-02 18:49:55 +00:00
|
|
|
#include "lcd/allfonts.h"
|
|
|
|
void forLoadables(int i){
|
|
|
|
if(i){
|
|
|
|
lcdSetPixel(0,0);
|
|
|
|
font=&Font_Invaders;
|
2011-08-03 08:54:22 +00:00
|
|
|
ECIES_encyptkeygen(0,0,0,0,0,0);
|
2011-08-03 08:38:43 +00:00
|
|
|
systickGetTicks();
|
2011-08-03 08:54:22 +00:00
|
|
|
ECIES_embedded_public_key_validation();
|
|
|
|
point_copy(0,0,0,0);
|
|
|
|
point_is_zero(0,0);
|
|
|
|
bitstr_parse_export(0,0);
|
2011-08-03 08:21:31 +00:00
|
|
|
nrf_rcv_pkt_time_encr();
|
2011-08-02 18:49:55 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2011-08-02 00:10:15 +00:00
|
|
|
void main_final(void) {
|
|
|
|
//checkFirstBoot();
|
2011-08-02 11:31:57 +00:00
|
|
|
init_final();
|
2011-08-02 18:49:55 +00:00
|
|
|
forLoadables(0);
|
|
|
|
menuflags|=MENU_TIMEOUT;
|
2011-08-02 00:10:15 +00:00
|
|
|
|
|
|
|
while(1){
|
|
|
|
#ifndef FINAL
|
|
|
|
if(getInputRaw()==BTN_LEFT)
|
|
|
|
ISPandReset();
|
|
|
|
#endif
|
|
|
|
if(getInput()){
|
|
|
|
handleMenu(&mainmenu);
|
|
|
|
getInputWaitRelease();
|
2011-08-02 11:31:57 +00:00
|
|
|
init_nick();
|
2011-08-02 00:10:15 +00:00
|
|
|
};
|
2011-08-02 19:01:27 +00:00
|
|
|
work_queue();
|
2011-08-02 00:10:15 +00:00
|
|
|
fancyNickname();
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
void tick_final(void);
|