From 5e64a9fec2e17d008b9488faa027d2beaa130a88 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 5 Mar 2008 10:59:11 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@215 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/include/queues.h | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'src/include/queues.h') diff --git a/src/include/queues.h b/src/include/queues.h index a28539fd5..5c480e8cf 100644 --- a/src/include/queues.h +++ b/src/include/queues.h @@ -26,7 +26,7 @@ #define _QUEUES_H_ /** Queue notification callback type.*/ -typedef void (*t_qnotify)(void); +typedef void (*qnotify_t)(void); /** Returned by the queue functions if the operation is successful.*/ #define Q_OK RDY_OK @@ -56,7 +56,7 @@ typedef struct { /** Counter semaphore.*/ Semaphore q_sem; /** Data notification callback.*/ - t_qnotify q_notify; + qnotify_t q_notify; } Queue; /** Returns the queue's buffer size.*/ @@ -91,24 +91,24 @@ extern "C" { * Input Queues functions. An Input Queue is usually written into by an * interrupt handler and read from a thread. */ - void chIQInit(Queue *qp, uint8_t *buffer, t_size size, t_qnotify inotify); + void chIQInit(Queue *qp, uint8_t *buffer, size_t size, qnotify_t inotify); void chIQReset(Queue *qp); - t_msg chIQPutI(Queue *qp, uint8_t b); - t_msg chIQGet(Queue *qp); - t_size chIQRead(Queue *qp, uint8_t *buffer, t_size n); + msg_t chIQPutI(Queue *qp, uint8_t b); + msg_t chIQGet(Queue *qp); + size_t chIQRead(Queue *qp, uint8_t *buffer, size_t n); #ifdef CH_USE_QUEUES_TIMEOUT - t_msg chIQGetTimeout(Queue *qp, t_time time); + msg_t chIQGetTimeout(Queue *qp, systime_t time); #endif /* * Output Queues functions. An Output Queue is usually written into by a * thread and read from an interrupt handler. */ - void chOQInit(Queue *queue, uint8_t *buffer, t_size size, t_qnotify onotify); + void chOQInit(Queue *queue, uint8_t *buffer, size_t size, qnotify_t onotify); void chOQReset(Queue *queue); void chOQPut(Queue *queue, uint8_t b); - t_msg chOQGetI(Queue *queue); - t_size chOQWrite(Queue *queue, uint8_t *buffer, t_size n); + msg_t chOQGetI(Queue *queue); + size_t chOQWrite(Queue *queue, uint8_t *buffer, size_t n); #ifdef __cplusplus } #endif @@ -132,9 +132,9 @@ typedef struct { /** Output counter semaphore.*/ Semaphore hdq_osem; /** Input data notification callback.*/ - t_qnotify hdq_inotify; + qnotify_t hdq_inotify; /** Output data notification callback.*/ - t_qnotify hdq_onotify; + qnotify_t hdq_onotify; } HalfDuplexQueue; /** Returns the queue's buffer size.*/ @@ -164,14 +164,14 @@ typedef struct { #ifdef __cplusplus extern "C" { #endif - void chHDQInit(HalfDuplexQueue *qp, uint8_t *buffer, t_size size, - t_qnotify inotify, t_qnotify onotify); - t_msg chHDQGetReceive(HalfDuplexQueue *qp); + void chHDQInit(HalfDuplexQueue *qp, uint8_t *buffer, size_t size, + qnotify_t inotify, qnotify_t onotify); + msg_t chHDQGetReceive(HalfDuplexQueue *qp); void chHDQPutTransmit(HalfDuplexQueue *qp, uint8_t b); - t_msg chHDQGetTransmitI(HalfDuplexQueue *qp); - t_msg chHDQPutReceiveI(HalfDuplexQueue *qp, uint8_t b); + msg_t chHDQGetTransmitI(HalfDuplexQueue *qp); + msg_t chHDQPutReceiveI(HalfDuplexQueue *qp, uint8_t b); #ifdef CH_USE_QUEUES_TIMEOUT - t_msg chHDQGetReceiveTimeout(HalfDuplexQueue *qp, t_time time); + msg_t chHDQGetReceiveTimeout(HalfDuplexQueue *qp, systime_t time); #endif #ifdef __cplusplus } -- cgit v1.2.3