diff options
| author | hathach <[email protected]> | 2013-01-29 11:06:30 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-01-29 11:06:30 +0700 |
| commit | 6db8af20236cfecba5aef54da148309982b28396 (patch) | |
| tree | 7ab84b2947702c8860d799b1e4234d6af37e8609 /tinyusb/osal | |
| parent | 06f923c7bb95e146ee545194eba1c9357c4baf45 (diff) | |
update usbh_init and test
Diffstat (limited to 'tinyusb/osal')
| -rw-r--r-- | tinyusb/osal/osal.h | 4 | ||||
| -rw-r--r-- | tinyusb/osal/osal_none.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tinyusb/osal/osal.h b/tinyusb/osal/osal.h index 8284ae6f8..844c3c083 100644 --- a/tinyusb/osal/osal.h +++ b/tinyusb/osal/osal.h @@ -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); diff --git a/tinyusb/osal/osal_none.h b/tinyusb/osal/osal_none.h index c7b9acae0..c3be90fad 100644 --- a/tinyusb/osal/osal_none.h +++ b/tinyusb/osal/osal_none.h @@ -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] |
