diff options
| author | hathach <[email protected]> | 2018-07-04 00:22:15 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-07-04 00:22:15 +0700 |
| commit | 3e66d2d31e21d1ce91bcc4728c929b9bdf3421e8 (patch) | |
| tree | 007d3224950035da395b8e7b81cfecce86d69878 /src/osal | |
| parent | ec3227b2202b007da1b76c20394b6f4d774f68b6 (diff) | |
rename fifo * to tu_fifo to avoid conflict with other module
Diffstat (limited to 'src/osal')
| -rw-r--r-- | src/osal/osal_none.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/osal/osal_none.h b/src/osal/osal_none.h index 9bdb047b4..1328d1753 100644 --- a/src/osal/osal_none.h +++ b/src/osal/osal_none.h @@ -130,20 +130,20 @@ static inline osal_task_t osal_task_create(osal_task_def_t* taskdef) //--------------------------------------------------------------------+
// QUEUE API
//--------------------------------------------------------------------+
-#define OSAL_QUEUE_DEF(_name, _depth, _type) FIFO_DEF(_name, _depth, _type, false)
+#define OSAL_QUEUE_DEF(_name, _depth, _type) TU_FIFO_DEF(_name, _depth, _type, false)
-typedef fifo_t osal_queue_def_t;
-typedef fifo_t* osal_queue_t;
+typedef tu_fifo_t osal_queue_def_t;
+typedef tu_fifo_t* osal_queue_t;
static inline osal_queue_t osal_queue_create(osal_queue_def_t* qdef)
{
- fifo_clear(qdef);
+ tu_fifo_clear(qdef);
return (osal_queue_t) qdef;
}
static inline bool osal_queue_send_isr(osal_queue_t const queue_hdl, void const * data)
{
- return fifo_write( (fifo_t*) queue_hdl, data);
+ return tu_fifo_write( (tu_fifo_t*) queue_hdl, data);
}
#define osal_queue_send osal_queue_send_isr
@@ -164,7 +164,7 @@ static inline void osal_queue_flush(osal_queue_t const queue_hdl) return TUSB_ERROR_OSAL_WAITING; \
} else{ \
/*tusb_hal_int_disable_all();*/ \
- fifo_read(queue_hdl, p_data); \
+ tu_fifo_read(queue_hdl, p_data); \
/*tusb_hal_int_enable_all();*/ \
*(p_error) = TUSB_ERROR_NONE; \
} \
|
