X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=test_src%2Fmain-echo-test.c;h=ff2d7a3a7b990157c87fa9b929b88181ce815454;hp=552c0632dcc7cad54dfe13b020bed071392b04c8;hb=cd6cc49401a7868a8ce64125e7246a29f2632952;hpb=a45c328791dc391e6432051ee0c7972ef7fd8d9a diff --git a/test_src/main-echo-test.c b/test_src/main-echo-test.c index 552c063..ff2d7a3 100644 --- a/test_src/main-echo-test.c +++ b/test_src/main-echo-test.c @@ -166,20 +166,12 @@ const cmdlist_entry_t cmdlist[] PROGMEM = { }; int main (void){ - DEBUG_INIT(); + main_setup(); - cli_rx = (cli_rx_fpt)uart0_getc; - cli_tx = (cli_tx_fpt)uart0_putc; - shavs_algolist=(hfdesc_t**)algolist; + shavs_algolist=(hfdesc_t**)algolist; shavs_algo=(hfdesc_t*)&echo256_desc; for(;;){ - cli_putstr_P(PSTR("\r\n\r\nCrypto-VS (")); - cli_putstr(algo_name); - cli_putstr_P(PSTR("; ")); - cli_putstr(__DATE__); - cli_putstr_P(PSTR(" ")); - cli_putstr(__TIME__); - cli_putstr_P(PSTR(")\r\nloaded and running\r\n")); + welcome_msg(algo_name); cmd_interface(cmdlist); }