aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/hal_queues.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-07-17 10:42:54 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-07-17 10:42:54 +0000
commit25069afdb7ca113779cf4bcc9e3879d6db7afae8 (patch)
tree47104f423837371e6c6aac5711c0851c8371c826 /os/hal/include/hal_queues.h
parent6fd6d0670e8e639eb1909ccdb8e1d509db02d6f7 (diff)
downloadChibiOS-25069afdb7ca113779cf4bcc9e3879d6db7afae8.tar.gz
ChibiOS-25069afdb7ca113779cf4bcc9e3879d6db7afae8.tar.bz2
ChibiOS-25069afdb7ca113779cf4bcc9e3879d6db7afae8.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7040 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include/hal_queues.h')
-rw-r--r--os/hal/include/hal_queues.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/os/hal/include/hal_queues.h b/os/hal/include/hal_queues.h
index 4eb21d076..a12118397 100644
--- a/os/hal/include/hal_queues.h
+++ b/os/hal/include/hal_queues.h
@@ -47,7 +47,7 @@
/**
* @brief Type of a generic I/O queue structure.
*/
-typedef struct io_queue_t io_queue_t;
+typedef struct io_queue io_queue_t;
/** @brief Queue notification callback type.*/
typedef void (*qnotify_t)(io_queue_t *qp);
@@ -61,7 +61,7 @@ typedef void (*qnotify_t)(io_queue_t *qp);
* lock zone (see <b>I-Locked</b> and <b>S-Locked</b> states in
* @ref system_states) and is non-blocking.
*/
-struct io_queue_t {
+struct io_queue {
threads_queue_t q_waiting; /**< @brief Waiting thread. */
size_t q_counter; /**< @brief Resources counter. */
uint8_t *q_buffer; /**< @brief Pointer to the queue buffer.*/
@@ -365,6 +365,10 @@ extern "C" {
}
#endif
+/* Types provided for backward compatibility, deprecated use.*/
+typedef io_queue_t GenericQueue;
+typedef input_queue_t InputQueue;
+typedef output_queue_t OutputQueue;
#else /* defined(_CHIBIOS_RT_) && CH_USE_QUEUES */