Mismatch in hal_serial.h Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
Post Reply
anotheruserofchibios
Posts: 7
Joined: Wed Aug 24, 2022 3:52 pm
Been thanked: 6 times

Mismatch in hal_serial.h

Post by anotheruserofchibios »

Hello,

On the master branch (actually from the original commit) it seems there is an extra argument in the call to iqReadI() from the macro sdReadI(), i.e. there should not be a timeout, so rather:

Code: Select all

#define sdReadI(sdp, b, n) iqReadI(&(sdp)->iqueue, b, n)


Also I am wondering if the documentation of sdReadI() & sdWriteI() is correct about being blocking read/write since their iqReadI() & oqWriteI() counterparts claim they are non-blocking read/write.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Mismatch in hal_serial.h

Post by Giovanni »

Hi,

Probably the oldest bug ever found :-)

I will look into the documentation mismatch, "i" functions cannot be blocking obviously,

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Mismatch in hal_serial.h

Post by Giovanni »

Hi,

Fixed as bug #1236.

Giovanni
Post Reply