Rutger Hofman wrote: >> Well, the point to use directly open/write is to not have buffered >> functions and to be sure the gpio is set as soon as possible. Using >> fopen/fwrite I have at least to call always fflush() after setting the >> gpios. Should not be better to use open/write to drive the hardware ? > > Wouldn't setvbuf(file, _IONBF) do what you want?
Yep, thanks, Stefano -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: [email protected] ===================================================================== ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ UrJTAG-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/urjtag-development
