The uart API changed and these tests were not adapted: the first
parameter is now the UART port number.
Signed-off-by: Gregor Riepl <onitake@gmail.com>
// 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++]);
}
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");
#ifdef HOST_VERSION
scanf("%c",&c);
#else
- c=uart0_recv();
+ c=uart_recv(0);
#endif
m=menu_default_update(m, c);
}