summaryrefslogtreecommitdiff
path: root/tinyusb/osal
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-09-18 23:34:03 +0700
committerhathach <[email protected]>2013-09-18 23:34:03 +0700
commit61c591b9ac49022fd287827951cd1f34d4fdbb1a (patch)
treef6f96b3be8c69e43cdc67483f8620cb46f707936 /tinyusb/osal
parent9d87a1c62b71b9ee2500b235d41297802db3dfe7 (diff)
clean up warnings
Diffstat (limited to 'tinyusb/osal')
-rw-r--r--tinyusb/osal/osal_none.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/tinyusb/osal/osal_none.h b/tinyusb/osal/osal_none.h
index 7a5b2ff78..853f33e67 100644
--- a/tinyusb/osal/osal_none.h
+++ b/tinyusb/osal/osal_none.h
@@ -248,12 +248,12 @@ static inline void osal_mutex_reset(osal_mutex_handle_t mutex_hdl)
// QUEUE API
//--------------------------------------------------------------------+
typedef struct{
- void * const buffer ; ///< buffer pointer
- uint8_t const depth ; ///< max items
- uint8_t const item_size ; ///< size of each item
- volatile uint8_t count ; ///< number of items in queue
- volatile uint8_t wr_idx ; ///< write pointer
- volatile uint8_t rd_idx ; ///< read pointer
+ uint8_t* const buffer ; ///< buffer pointer
+ uint8_t const depth ; ///< max items
+ uint8_t const item_size ; ///< size of each item
+ volatile uint8_t count ; ///< number of items in queue
+ volatile uint8_t wr_idx ; ///< write pointer
+ volatile uint8_t rd_idx ; ///< read pointer
} osal_queue_t;
typedef osal_queue_t * osal_queue_handle_t;
@@ -262,7 +262,7 @@ typedef osal_queue_t * osal_queue_handle_t;
#define OSAL_QUEUE_DEF(name, queue_depth, type)\
type name##_buffer[queue_depth];\
osal_queue_t name = {\
- .buffer = name##_buffer,\
+ .buffer = (uint8_t*) name##_buffer,\
.depth = queue_depth,\
.item_size = sizeof(type)\
}