*
*/
-#include "config.h"
-#include "serial-tools.h"
-#include "uart.h"
-#include "debug.h"
+#include "main-test-common.h"
-#include <A5_1.h>
+#include "A5_1.h"
#include "nessie_stream_test.h"
-#include <stdint.h>
-#include <string.h>
-#include "cli.h"
-
char* algo_name = "A5_1";
/*****************************************************************************
const char performance_str[] PROGMEM = "performance";
const char echo_str[] PROGMEM = "echo";
-cmdlist_entry_t cmdlist[] PROGMEM = {
- { nessie_str, NULL, testrun_nessie_a51 },
-/* { performance_str, NULL, testrun_performance_a51}, */
- { echo_str, (void*)1, (void_fpt)echo_ctrl},
- { NULL, NULL, NULL}
+const cmdlist_entry_t cmdlist[] PROGMEM = {
+ { nessie_str, NULL, testrun_nessie_a51, NULL},
+/* { performance_str, NULL, testrun_performance_a51, NULL}, */
+ { echo_str, (void*)1, (void_fpt)echo_ctrl, NULL},
+ { NULL, NULL, NULL, NULL}
};
int main (void){
- DEBUG_INIT();
- uart_putstr("\r\n");
-
- cli_rx = uart_getc;
- cli_tx = uart_putc;
+ main_setup();
for(;;){
- uart_putstr_P(PSTR("\r\n\r\nCrypto-VS ("));
- uart_putstr(algo_name);
- uart_putstr_P(PSTR(")\r\nloaded and running\r\n"));
- cmd_interface(cmdlist);
+ welcome_msg(algo_name);
+ cmd_interface(cmdlist);
}
}