diff options
| author | hathach <[email protected]> | 2018-12-12 11:32:46 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-12-12 11:34:09 +0700 |
| commit | e3514b80543ac2514a80d886255bd8e33b325750 (patch) | |
| tree | 255981542b7eabdc7b9c78a430ad57982a46d7ae /src/host/usbh.c | |
| parent | c88e16bd116a826ebd2d9fb348fd3704f6b1f14d (diff) | |
rename hcd_device_remove to hcd_device_close
Diffstat (limited to 'src/host/usbh.c')
| -rw-r--r-- | src/host/usbh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c index 31024f1f7..962dc04dc 100644 --- a/src/host/usbh.c +++ b/src/host/usbh.c @@ -334,7 +334,7 @@ static void usbh_device_unplugged(uint8_t rhport, uint8_t hub_addr, uint8_t hub_ memset(dev->itf2drv, 0xff, sizeof(dev->itf2drv)); // invalid mapping
memset(dev->ep2drv , 0xff, sizeof(dev->ep2drv )); // invalid mapping
- hcd_device_remove(rhport, dev_addr);
+ hcd_device_close(rhport, dev_addr);
dev->state = TUSB_DEVICE_STATE_UNPLUG;
}
@@ -495,7 +495,7 @@ bool enum_task(hcd_event_t* event) new_dev->speed = dev0->speed;
new_dev->state = TUSB_DEVICE_STATE_ADDRESSED;
- hcd_device_remove(dev0->rhport, 0); // close device 0
+ hcd_device_close(dev0->rhport, 0); // close device 0
dev0->state = TUSB_DEVICE_STATE_UNPLUG;
// open control pipe for new address
|
