Did you try "fflush()" after the "write()" syscall?
fflush() is supposed to be used in combination with fwrite(), so.. i didn't
Ok, fine, did you try opening the deivce with O_SYNC to not return until the
data hits the port or with O_DIRECT to eliminate buffering?
Currently device is opened with following flags:
ttyfd = open( device, O_RDWR | O_NOCTTY | O_NDELAY | O_SYNC )
O_SYNC is one of them..
I've also tried with O_DIRECT, but the result was the same. In
linux-2.6.x/include/asm-arm/fcntl.h has the string:
#define O_DIRECT 0200000 /* direct disk access hint - currently ignored
*/
What was the first 2.6.x kernel which supported O_DIRECT flag for
transmitting via serial port? I guess my kernel is kind of old..
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev