update usbh_init and test
This commit is contained in:
@@ -80,8 +80,8 @@ enum
|
||||
// QUEUE API
|
||||
//--------------------------------------------------------------------+
|
||||
typedef uint32_t osal_queue_id_t;
|
||||
|
||||
tusb_error_t osal_queue_create(osal_queue_id_t qid, uint8_t *buffer);
|
||||
//osal_queue_id_t osal_queue_create(osal_queue_t *queue, uint8_t *buffer);
|
||||
osal_queue_id_t osal_queue_create(osal_queue_id_t *queue, uint8_t *buffer);
|
||||
tusb_error_t osal_queue_put(osal_queue_id_t qid, uint32_t data, osal_timeout_t msec);
|
||||
tusb_error_t osal_queue_get(osal_queue_id_t qid, uint32_t *data, osal_timeout_t msec);
|
||||
|
||||
|
||||
@@ -68,6 +68,8 @@ typedef struct{
|
||||
volatile uint16_t rd_ptr ; ///< read pointer
|
||||
} osal_queue_t;
|
||||
|
||||
//typedef osal_queue_t osal_queue_id_t*;
|
||||
|
||||
#define OSAL_DEF_QUEUE(name, size)\
|
||||
osal_queue_t name;\
|
||||
uint8_t buffer_##name[size]
|
||||
|
||||
Reference in New Issue
Block a user