X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fmain-mugi-test.c;h=2f1a213f8a4f01ef521459396215ae5753985c35;hb=2e0998249aeec3ce8509af80cc56fb6a49f3268d;hp=7dd5691fd4cac51983c22469a9800c3332b1f91e;hpb=302f07c97444e2f5f5560dc2fd9af58d4b591d45;p=avr-crypto-lib.git diff --git a/test_src/main-mugi-test.c b/test_src/main-mugi-test.c index 7dd5691..2f1a213 100644 --- a/test_src/main-mugi-test.c +++ b/test_src/main-mugi-test.c @@ -21,21 +21,13 @@ * */ -#include "config.h" - -#include "uart_i.h" -#include "debug.h" +#include "main-test-common.h" #include "mugi.h" #include "nessie_stream_test.h" -#include "cli.h" #include "performance_test.h" -#include -#include -#include - -char* algo_name = "MUGI"; +char *algo_name = "MUGI"; /***************************************************************************** * additional validation-functions * @@ -118,7 +110,7 @@ const char test_str[] PROGMEM = "test"; const char performance_str[] PROGMEM = "performance"; const char echo_str[] PROGMEM = "echo"; -cmdlist_entry_t cmdlist[] PROGMEM = { +const cmdlist_entry_t cmdlist[] PROGMEM = { // { nessie_str, NULL, testrun_nessie_arcfour }, { test_str, NULL, testrun_mugi}, { performance_str, NULL, testrun_performance_mugi}, @@ -127,15 +119,11 @@ cmdlist_entry_t cmdlist[] PROGMEM = { }; int main (void){ - DEBUG_INIT(); - - cli_rx = (cli_rx_fpt)uart0_getc; - cli_tx = (cli_tx_fpt)uart0_putc; - for(;;){ - cli_putstr_P(PSTR("\r\n\r\nCrypto-VS (")); - cli_putstr(algo_name); - cli_putstr_P(PSTR(")\r\nloaded and running\r\n")); - cmd_interface(cmdlist); + main_setup(); + + for(;;){ + welcome_msg(algo_name); + cmd_interface(cmdlist); } }