<p dir="ltr">I think I see the problem now. The constant should be converted to use Bnn values. When calling the baudrate apis. I will send a patch for you to test once I am close to computer </p>
<div class="gmail_quote">On Apr 12, 2016 6:20 PM, "Khem Raj" <<a href="mailto:raj.khem@gmail.com">raj.khem@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Since you have it reproduced. Can you check which of the api call is failing?</p><div class="elided-text">
<div class="gmail_quote">On Apr 12, 2016 5:05 PM, "Bruce Ashfield" <<a href="mailto:bruce.ashfield@windriver.com" target="_blank">bruce.ashfield@windriver.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2016-04-12 1:53 PM, Khem Raj wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
FYI<br>
</blockquote>
<br>
Thanks. I can also confirm that when I dropped the patch, I'm<br>
back up and running assertion free.<br>
<br>
Bruce<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
---------- Forwarded message ----------<br>
From: Gerhard Rieger <<a href="mailto:gerhard@dest-unreach.org" target="_blank">gerhard@dest-unreach.org</a>><br>
Date: Wed, Mar 16, 2016 at 4:43 AM<br>
Subject: Re: [PATCH] Access c_ispeed and c_ospeed via APIs<br>
To: Khem Raj <<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>><br>
<br>
<br>
Thank you, I will check this patch!<br>
- Gerhard<br>
<br>
<br>
Am 15.03.2016 um 22:39 schrieb Khem Raj:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Use cfsetispeed(), cfsetospeed(), cfgetispeed, and cfgetospeed()<br>
instead of operating on c_ispeed and c_ospeed termios structure<br>
members directly because they are not guaranteed to exist on all<br>
libc implementations<br>
<br>
Signed-off-by: Khem Raj <<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>><br>
---<br>
xioinitialize.c | 8 ++++----<br>
1 file changed, 4 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/xioinitialize.c b/xioinitialize.c<br>
index 9f50155..632ca4c 100644<br>
--- a/xioinitialize.c<br>
+++ b/xioinitialize.c<br>
@@ -65,10 +65,10 @@ int xioinitialize(void) {<br>
#if HAVE_TERMIOS_ISPEED && (ISPEED_OFFSET != -1) && (OSPEED_OFFSET != -1)<br>
#if defined(ISPEED_OFFSET) && (ISPEED_OFFSET != -1)<br>
#if defined(OSPEED_OFFSET) && (OSPEED_OFFSET != -1)<br>
- tdata.termarg.c_ispeed = 0x56789abc;<br>
- tdata.termarg.c_ospeed = 0x6789abcd;<br>
- assert(tdata.termarg.c_ispeed == tdata.speeds[ISPEED_OFFSET]);<br>
- assert(tdata.termarg.c_ospeed == tdata.speeds[OSPEED_OFFSET]);<br>
+ cfsetispeed(&tdata.termarg, 0x56789abc);<br>
+ cfsetospeed(&tdata.termarg, 0x6789abcd);<br>
+ assert(cfgetispeed(&tdata.termarg) == tdata.speeds[ISPEED_OFFSET]);<br>
+ assert(cfgetospeed(&tdata.termarg) == tdata.speeds[OSPEED_OFFSET]);<br>
#endif<br>
#endif<br>
#endif<br>
<br>
</blockquote></blockquote>
<br>
</blockquote></div>
</div></blockquote></div>