aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/hal_sio.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-09-28 09:30:06 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-09-28 09:30:06 +0000
commite442d39b3efa6acbaecbc396b39a3db3171e6a72 (patch)
tree81cc3d197aeff57afc93d49d16286aba769ec817 /os/hal/include/hal_sio.h
parent3f4d993626c7e8e3bd293b666d9a0cdc739ef678 (diff)
downloadChibiOS-e442d39b3efa6acbaecbc396b39a3db3171e6a72.tar.gz
ChibiOS-e442d39b3efa6acbaecbc396b39a3db3171e6a72.tar.bz2
ChibiOS-e442d39b3efa6acbaecbc396b39a3db3171e6a72.zip
Added notes, removed unused types.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12303 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/include/hal_sio.h')
-rw-r--r--os/hal/include/hal_sio.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/os/hal/include/hal_sio.h b/os/hal/include/hal_sio.h
index 6999574eb..d72d57256 100644
--- a/os/hal/include/hal_sio.h
+++ b/os/hal/include/hal_sio.h
@@ -81,16 +81,6 @@ typedef enum {
SIO_READY = 2 /**< Ready. */
} siostate_t;
-/**
- * @brief Type of a function writing a frame received by SIO.
- */
-typedef msg_t (*sioput_t)(void *p, uint8_t b);
-
-/**
- * @brief Type of a function reading a frame to be transmitted by SIO.
- */
-typedef msg_t (*sioget_t)(void *p);
-
#include "hal_sio_lld.h"
/*===========================================================================*/
@@ -98,6 +88,11 @@ typedef msg_t (*sioget_t)(void *p);
/*===========================================================================*/
/**
+ * @brief Returns the current set of flags and clears it.
+ */
+#define sioGetFlagsX(siop) sio_lld_get_flags(siop)
+
+/**
* @brief Determines the state of the RX FIFO.
*
* @param[in] siop pointer to the @p SIODriver object