]> git.cryptolib.org Git - avr-crypto-lib.git/blob - test_src/main-test-common.c
forgotten file(s)
[avr-crypto-lib.git] / test_src / main-test-common.c
1 /* main-test-common.c */
2 /*
3     This file is part of the ARM-Crypto-Lib.
4     Copyright (C) 2006-2011 Daniel Otte (daniel.otte@rub.de)
5
6     This program is free software: you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation, either version 3 of the License, or
9     (at your option) any later version.
10
11     This program is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15
16     You should have received a copy of the GNU General Public License
17     along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #include "main-test-common.h"
21
22 void main_setup(void){
23         DEBUG_INIT();
24         cli_rx = (cli_rx_fpt)uart0_getc;
25         cli_tx = (cli_tx_fpt)uart0_putc;
26 }
27
28 void welcome_msg(const char* algoname){
29         cli_putstr_P(PSTR("\r\n\r\nARM-Crypto-Lib VS ("));
30         cli_putstr(algoname);
31         cli_putstr_P(PSTR("; "));
32         cli_putstr(__DATE__);
33         cli_putc(' ');
34         cli_putstr(__TIME__);
35         cli_putstr_P(PSTR(")\r\nloaded and running\r\n"));
36 }