diff options
| author | hathach <[email protected]> | 2018-03-23 12:32:40 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-23 12:32:40 +0700 |
| commit | 5f26c57b286ecdc555856c1e3e486923a43f4d04 (patch) | |
| tree | 0cb8d52def0cab79f76d6a0911ac4e0f874edc18 /hw | |
| parent | 2c18805aa9b3b46777e0fcfb8d97efba209f9115 (diff) | |
shorten descriptor type
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/mcu/nordic/nrf52/tusb_port/dcd_nrf52.c | 2 | ||||
| -rw-r--r-- | hw/mcu/nxp/lpc43xx/tusb_port/dcd_lpc43xx.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/hw/mcu/nordic/nrf52/tusb_port/dcd_nrf52.c b/hw/mcu/nordic/nrf52/tusb_port/dcd_nrf52.c index 435da4660..78e2df87c 100644 --- a/hw/mcu/nordic/nrf52/tusb_port/dcd_nrf52.c +++ b/hw/mcu/nordic/nrf52/tusb_port/dcd_nrf52.c @@ -389,7 +389,7 @@ static void normal_xact_start(uint8_t epnum, uint8_t dir) } } -bool tusb_dcd_edpt_open (uint8_t rhport, tusb_descriptor_endpoint_t const * desc_edpt) +bool tusb_dcd_edpt_open (uint8_t rhport, tusb_desc_endpoint_t const * desc_edpt) { (void) rhport; diff --git a/hw/mcu/nxp/lpc43xx/tusb_port/dcd_lpc43xx.c b/hw/mcu/nxp/lpc43xx/tusb_port/dcd_lpc43xx.c index 0cb94f464..a1e44763d 100644 --- a/hw/mcu/nxp/lpc43xx/tusb_port/dcd_lpc43xx.c +++ b/hw/mcu/nxp/lpc43xx/tusb_port/dcd_lpc43xx.c @@ -293,7 +293,7 @@ void tusb_dcd_edpt_clear_stall(uint8_t rhport, uint8_t ep_addr) (*reg_control) &= ~(ENDPTCTRL_MASK_STALL << ((ep_addr & TUSB_DIR_IN_MASK) ? 16 : 0));
}
-bool tusb_dcd_edpt_open(uint8_t rhport, tusb_descriptor_endpoint_t const * p_endpoint_desc)
+bool tusb_dcd_edpt_open(uint8_t rhport, tusb_desc_endpoint_t const * p_endpoint_desc)
{
// TODO USB1 only has 4 non-control enpoint (USB0 has 5)
// TODO not support ISO yet
|
