peabody124
1142b1fb1e
PiOS/USB_HID: No longer clear buffer after getting a NAK. This was required
...
before because if transmission got NAK then sending would stop. Now the next
time data is added to the buffer a new send will be attempted.
fifoBuf: in clearData just set the read pointer to the write pointer. This is
safer for multiple people accessing it assuming the reader will be clearing it.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2279 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-24 17:16:04 +00:00
pip
912ba59cf9
You now supply a buffer address and buffer size when initializing the fifo buffer.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2171 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-28 10:59:24 +00:00
pip
9b22bb07e6
Fixed a bad bug in the fifo_getData functions.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2044 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-10-31 04:58:34 +00:00
pip
7bdaaa3930
Renamed fifoBuf_size to fifoBuf_getSize and got it to return the actual usable size of the buffer (one less than the buffer size).
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2031 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-10-28 21:10:43 +00:00
pip
91e6fb1485
Added fifoBuf_size function
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2030 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-10-28 15:14:44 +00:00
peabody124
b9f74a86c3
OP-198 Flight/Libraries: Swap to using circular buffer code from Pip because it
...
supports thread safe write/read simultaneously
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2027 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-10-28 14:30:03 +00:00