[En-Nut-Discussion] Debug Idea
Harald Kipp
harald.kipp at egnite.de
Thu Sep 19 11:32:34 CEST 2002
>
>I am using the function NutDeviceRead(...) to read something from uart.
>However , I need a time out to control something. Is there a way to do
>so ? I have looked for other functions everywhere in NutOS function list.
u_long wto = 1000; /* ms */
u_long rto = 1000;
NutDeviceIOCtl(uart, UART_SETWRITETIMEOUT, &wto);
NutDeviceIOCtl(uart, UART_SETREADTIMEOUT, &rto);
will set read and write timeout to 1 second.
Harald
More information about the En-Nut-Discussion
mailing list