X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fmain-twister-test.c;h=2ac3180795f340c23fde9164d1c425247f1e9a6b;hb=b97b5aeaa3569443d9b95a77a388c6615b33f9e3;hp=505bbaf6569c0d93c21877d8bca156fed105ef45;hpb=bce0505abf49276430f7439960829683b4daf53b;p=avr-crypto-lib.git diff --git a/test_src/main-twister-test.c b/test_src/main-twister-test.c index 505bbaf..2ac3180 100644 --- a/test_src/main-twister-test.c +++ b/test_src/main-twister-test.c @@ -22,8 +22,8 @@ */ #include "config.h" -#include "serial-tools.h" -#include "uart.h" + +#include "uart_i.h" #include "debug.h" #include "twister-small.h" @@ -47,7 +47,7 @@ char* algo_name = "TWISTER"; -const hfdesc_t* algolist[] PROGMEM = { +const hfdesc_t* const algolist[] PROGMEM = { (hfdesc_t*)&twister224_desc, (hfdesc_t*)&twister256_desc, (hfdesc_t*)&twister384_desc, @@ -127,7 +127,7 @@ const char shavs_list_str[] PROGMEM = "shavs_list"; const char shavs_set_str[] PROGMEM = "shavs_set"; const char shavs_test1_str[] PROGMEM = "shavs_test1"; -cmdlist_entry_t cmdlist[] PROGMEM = { +const cmdlist_entry_t cmdlist[] PROGMEM = { { nessie_str, NULL, testrun_nessie_twister}, { test_str, NULL, testrun_twister}, { performance_str, NULL, testrun_performance_twister}, @@ -141,8 +141,8 @@ cmdlist_entry_t cmdlist[] PROGMEM = { int main (void){ DEBUG_INIT(); - cli_rx = uart_getc; - cli_tx = uart_putc; + cli_rx = (cli_rx_fpt)uart0_getc; + cli_tx = (cli_tx_fpt)uart0_putc; shavs_algolist=(hfdesc_t**)algolist; shavs_algo=(hfdesc_t*)&twister256_desc; for(;;){