diff options
| author | hathach <[email protected]> | 2013-07-19 01:52:56 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-07-19 01:52:56 +0700 |
| commit | ce865721a56bade9a99661e425b9dd85d7510296 (patch) | |
| tree | a1f96d292e37d5ef14d7209b308934405a5b264e /tinyusb/host | |
| parent | 3b12917fb0033e736a6e82f57004a5ad51451f3b (diff) | |
add test & code to send rndis msg query for permanent address (MAC address)
Diffstat (limited to 'tinyusb/host')
| -rw-r--r-- | tinyusb/host/usbh.c | 5 | ||||
| -rw-r--r-- | tinyusb/host/usbh_hcd.h | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tinyusb/host/usbh.c b/tinyusb/host/usbh.c index 2f8278f1f..a4cbabb9d 100644 --- a/tinyusb/host/usbh.c +++ b/tinyusb/host/usbh.c @@ -185,7 +185,7 @@ tusb_error_t usbh_init(void) //------------- USBH control transfer -------------// // function called within a task, requesting os blocking services, subtask input parameter must be static/global variables or constant tusb_error_t usbh_control_xfer_subtask(uint8_t dev_addr, uint8_t bmRequestType, uint8_t bRequest, - uint16_t wValue, uint16_t wIndex, uint16_t wLength, uint8_t* data ) + uint16_t wValue, uint16_t wIndex, uint16_t wLength, uint8_t* data) { tusb_error_t error; @@ -253,7 +253,8 @@ void usbh_xfer_isr(pipe_handle_t pipe_hdl, uint8_t class_code, tusb_event_t even uint8_t class_index = std_class_code_to_index(class_code); if (TUSB_XFER_CONTROL == pipe_hdl.xfer_type) { - usbh_devices[ pipe_hdl.dev_addr ].control.pipe_status = event; + usbh_devices[ pipe_hdl.dev_addr ].control.pipe_status = event; +// usbh_devices[ pipe_hdl.dev_addr ].control.xferred_bytes = xferred_bytes; not yet neccessary osal_semaphore_post( usbh_devices[ pipe_hdl.dev_addr ].control.sem_hdl ); }else if (usbh_class_drivers[class_index].isr) { diff --git a/tinyusb/host/usbh_hcd.h b/tinyusb/host/usbh_hcd.h index 2e251396c..7d5b03a72 100644 --- a/tinyusb/host/usbh_hcd.h +++ b/tinyusb/host/usbh_hcd.h @@ -98,6 +98,7 @@ typedef struct { // TODO internal structure, re-order members //------------- control pipe -------------// struct { volatile uint8_t pipe_status; +// uint8_t xferred_bytes; TODO not yet necessary tusb_control_request_t request; OSAL_SEM_DEF(semaphore); // TODO move to semaphore pool ? |
