From: Gregor Riepl Date: Mon, 15 Dec 2014 02:28:49 +0000 (+0100) Subject: tests: fix test programs using old uart API X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=cea4f18c66251f374ade2130563f0fbef96929be;p=aversive.git tests: fix test programs using old uart API The uart API changed and these tests were not adapted: the first parameter is now the UART port number. Signed-off-by: Gregor Riepl --- diff --git a/modules/debug/diagnostic/test/test_int_show.c b/modules/debug/diagnostic/test/test_int_show.c index d5ef558..2d22079 100644 --- a/modules/debug/diagnostic/test/test_int_show.c +++ b/modules/debug/diagnostic/test/test_int_show.c @@ -53,9 +53,9 @@ void interrupt(void) // prints the string if (buf[buf_index] == 0) - uart0_send(' '); + uart_send(0, ' '); else - uart0_send(buf[buf_index++]); + uart_send(0, buf[buf_index++]); } @@ -77,7 +77,7 @@ int test_int_show(void) wait_ms(500); // should be replaced by the scheduler - uart0_register_tx_event((void *) interrupt); + uart_register_tx_event(0, (void *) interrupt); // start characters printf("\n"); diff --git a/modules/ihm/menu/test/main.c b/modules/ihm/menu/test/main.c index 548e7d1..fe0974f 100644 --- a/modules/ihm/menu/test/main.c +++ b/modules/ihm/menu/test/main.c @@ -102,7 +102,7 @@ int main(void) #ifdef HOST_VERSION scanf("%c",&c); #else - c=uart0_recv(); + c=uart_recv(0); #endif m=menu_default_update(m, c); }