diff options
| author | Zhihong Chen <[email protected]> | 2024-01-14 15:12:54 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-01-14 17:00:40 +0800 |
| commit | c4a65146e83a670c0fdaa239f4f7894db9ee19bd (patch) | |
| tree | ea5413a362062865a14bf16a13382ec5de86f639 | |
| parent | 6bc6b060766b4e6b6c22363eb187656d66730b4c (diff) | |
port: hpmicro: fix usb_dc_deinit()
- fix usb_dc_deinit()
Signed-off-by: Zhihong Chen <[email protected]>
| -rw-r--r-- | port/hpm/usb_dc_hpm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/port/hpm/usb_dc_hpm.c b/port/hpm/usb_dc_hpm.c index 380797db..3919fa0e 100644 --- a/port/hpm/usb_dc_hpm.c +++ b/port/hpm/usb_dc_hpm.c @@ -81,6 +81,10 @@ int usb_dc_init(void) int usb_dc_deinit(void) { + intc_m_disable_irq(CONFIG_HPM_USBD_IRQn); + + usb_device_deinit(g_hpm_udc.handle); + return 0; } |
