aboutsummaryrefslogtreecommitdiff
path: root/src/modules/systemlib
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2013-06-28 23:39:35 -0700
committerpx4dev <px4@purgatory.org>2013-06-28 23:39:35 -0700
commitd1562f926f487d1ed05751d45a2516be8c192564 (patch)
treea85bbb958f00be2c8f10b25c3cec145bd6cce0ef /src/modules/systemlib
parent90c458cb618754905ab6d373f22d76e3309adf4c (diff)
downloadpx4-firmware-d1562f926f487d1ed05751d45a2516be8c192564.tar.gz
px4-firmware-d1562f926f487d1ed05751d45a2516be8c192564.tar.bz2
px4-firmware-d1562f926f487d1ed05751d45a2516be8c192564.zip
More implementation for the serial side on IO; fix a couple of bugs on the FMU side.
Still needs serial init and some more testing/config on the FMU side, but closer to being ready to test.
Diffstat (limited to 'src/modules/systemlib')
-rw-r--r--src/modules/systemlib/hx_stream.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/modules/systemlib/hx_stream.c b/src/modules/systemlib/hx_stream.c
index fdc3edac7..8e9c2bfcf 100644
--- a/src/modules/systemlib/hx_stream.c
+++ b/src/modules/systemlib/hx_stream.c
@@ -96,20 +96,6 @@ hx_tx_raw(hx_stream_t stream, uint8_t c)
stream->tx_error = true;
}
-static void
-hx_tx_byte(hx_stream_t stream, uint8_t c)
-{
- switch (c) {
- case FBO:
- case CEO:
- hx_tx_raw(stream, CEO);
- c ^= 0x20;
- break;
- }
-
- hx_tx_raw(stream, c);
-}
-
static int
hx_rx_frame(hx_stream_t stream)
{
@@ -281,12 +267,12 @@ hx_stream_send(hx_stream_t stream,
{
int result;
- result = hx_start(stream, data, count);
+ result = hx_stream_start(stream, data, count);
if (result != OK)
return result;
int c;
- while ((c = hx_send_next(stream)) >= 0)
+ while ((c = hx_stream_send_next(stream)) >= 0)
hx_tx_raw(stream, c);
/* check for transmit error */