X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;ds=sidebyside;f=test_src%2Fmain-mugi-test.c;h=e868907444b5d0029e85bbbb8a7d1983995255ea;hb=2ed518e50cb7fd58dba373f791843af2beb82cc3;hp=2255d1a6cf6f9a0c81a5f5e064b36236392c65d3;hpb=2dc047a070be7f0d64f4d4e7f4296a9650af07dc;p=avr-crypto-lib.git diff --git a/test_src/main-mugi-test.c b/test_src/main-mugi-test.c index 2255d1a..e868907 100644 --- a/test_src/main-mugi-test.c +++ b/test_src/main-mugi-test.c @@ -22,8 +22,8 @@ */ #include "config.h" -#include "serial-tools.h" -#include "uart.h" + +#include "uart_i.h" #include "debug.h" #include "mugi.h" @@ -118,7 +118,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}, @@ -128,13 +128,13 @@ cmdlist_entry_t cmdlist[] PROGMEM = { int main (void){ DEBUG_INIT(); - uart_putstr("\r\n"); - cli_rx = uart_getc; - cli_tx = uart_putc; + + cli_rx = (cli_rx_fpt)uart0_getc; + cli_tx = (cli_tx_fpt)uart0_putc; for(;;){ - uart_putstr_P(PSTR("\r\n\r\nCrypto-VS (")); - uart_putstr(algo_name); - uart_putstr_P(PSTR(")\r\nloaded and running\r\n")); + 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); } }