diff options
| author | hathach <[email protected]> | 2014-03-14 14:33:50 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-03-14 14:33:50 +0700 |
| commit | 5f309413dc8634274ffa68d0e5c7d21e49b246b1 (patch) | |
| tree | 793e0117817e14392912b00de9dd52e1cad37f7c /tinyusb/common | |
| parent | 5e2ed2534ebc7576f028e09023bae923965c645e (diff) | |
clean more warnings
Diffstat (limited to 'tinyusb/common')
| -rw-r--r-- | tinyusb/common/fifo.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/tinyusb/common/fifo.c b/tinyusb/common/fifo.c index aa5970622..b0f822182 100644 --- a/tinyusb/common/fifo.c +++ b/tinyusb/common/fifo.c @@ -38,8 +38,11 @@ #include <string.h>
#include "fifo.h"
-static inline void mutex_lock (fifo_t* f) ATTR_ALWAYS_INLINE;
-static inline void mutex_unlock (fifo_t* f) ATTR_ALWAYS_INLINE;
+//static inline void mutex_lock (fifo_t* f) ATTR_ALWAYS_INLINE;
+//static inline void mutex_unlock (fifo_t* f) ATTR_ALWAYS_INLINE;
+#define mutex_lock(f)
+#define mutex_unlock(f)
+
static inline bool is_fifo_initalized(fifo_t* f) ATTR_ALWAYS_INLINE;
@@ -154,15 +157,15 @@ void fifo_clear(fifo_t *f) Pointer to the FIFO that should be protected
*/
/**************************************************************************/
-static inline void mutex_lock (fifo_t* f)
-{
+//static inline void mutex_lock (fifo_t* f)
+//{
// if (f->irq > 0)
// {
// #if !defined (_TEST_)
// NVIC_DisableIRQ(f->irq);
// #endif
// }
-}
+//}
/**************************************************************************/
/*!
@@ -172,15 +175,15 @@ static inline void mutex_lock (fifo_t* f) Pointer to the FIFO that should be protected
*/
/**************************************************************************/
-static inline void mutex_unlock (fifo_t* f)
-{
+//static inline void mutex_unlock (fifo_t* f)
+//{
// if (f->irq > 0)
// {
// #if !defined (_TEST_)
// NVIC_EnableIRQ(f->irq);
// #endif
// }
-}
+//}
static inline bool is_fifo_initalized(fifo_t* f)
{
|
