From 6bde8e29eb28b746109531553d38fec91a89dc73 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Fri, 13 Aug 2010 12:09:28 -0700 Subject: Added timeout functionality for UART gets() calls. use fngets_timeout(). timeout defined in hal_uart.h. --- firmware/microblaze/lib/hal_io.h | 1 + 1 file changed, 1 insertion(+) (limited to 'firmware/microblaze/lib/hal_io.h') diff --git a/firmware/microblaze/lib/hal_io.h b/firmware/microblaze/lib/hal_io.h index 45e23755f..950f8d591 100644 --- a/firmware/microblaze/lib/hal_io.h +++ b/firmware/microblaze/lib/hal_io.h @@ -28,6 +28,7 @@ char *gets(char * const s); int fputstr(hal_uart_name_t u, const char *s); int fnputstr(hal_uart_name_t u, const char *s, int len); int fngets(hal_uart_name_t u, char * const s, int len); +int fngets_timeout(hal_uart_name_t u, char * const s, int len); /* * ------------------------------------------------------------------------ -- cgit v1.2.3