actuino / stm32flash

Automatically exported from code.google.com/p/stm32flash
0 stars 0 forks source link

Compilation under QNX #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There is one small issue when compiling this project under QNX 6.3.
QNX does not have non-posix CRTSCTS flag for setting hardware flow control. It 
has 2 flags "IHFLOW" and "OHFLOW" (input & output hardware control acordingly) 
instead.
To fix the issue you need to replace line 134 in file serial_posix.c
from 

h->newtio.c_cflag &= ~(CSIZE | CRTSCTS);

to

#ifdef __QNXNTO__
    h->newtio.c_cflag &= ~(CSIZE | IHFLOW | OHFLOW);
#else
    h->newtio.c_cflag &= ~(CSIZE | CRTSCTS);
#endif

Hope this helps someone. 

Original issue reported on code.google.com by Alexey.B...@gmail.com on 26 Aug 2013 at 7:58

GoogleCodeExporter commented 9 years ago
Thanks for the patch, I have applied it to the "merging" git branch.

Original comment by lists.to...@gmail.com on 15 Sep 2013 at 9:53

GoogleCodeExporter commented 9 years ago
This has now been fixed in the official repository and is included in version 
0.3beta2.

Original comment by lists.to...@gmail.com on 9 Dec 2013 at 11:25