On Wed, Nov 11, 2009 at 6:05 AM, J.H.Kim <[email protected]> wrote:
> Hi, everyone
>
> I'm tyring to implement blocking UART.
> I just do "open("/dev/ttyS1", O_RDWR);
> But the read function does not blocked when there is no input data.
> It acts like asynchronous UART.
>
> How can I implement blocking UART with AT91SAM9260?
>
>
so is my ttyS1, because the hardware does not exists:
First, using dmesg, see what has been initialized:
420 [ 2.279365] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
421 [ 2.280126] 00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
422 [ 2.283205] brd: module loaded
so cat /dev/ttyS0 worked - it will block.
but:
>cat /dev/ttyS1
cat: /dev/ttyS1: Input/output error
not sure if this helped?
> Thanks in advance
>
> Best Regards,
> J.Hwan.Kim
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to [email protected]
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>
--
Regards,
Peter Teoh