diff options
| author | sakumisu <[email protected]> | 2024-10-31 20:42:31 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-10-31 21:45:19 +0800 |
| commit | 6e6fdda62afdc268882ecf0aec9ee9c23e1825a9 (patch) | |
| tree | 0bb671e454ac494cdc2f09ed491bdb3523641c77 | |
| parent | f02ff21cfbadf05fd461379db9a135da41e254b7 (diff) | |
update(port/ehci/usb_glue_aic): remove lsusb shell, add check for ehci configflag
| -rw-r--r-- | port/ehci/usb_glue_aic.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/port/ehci/usb_glue_aic.c b/port/ehci/usb_glue_aic.c index 9fc87c39..b745b741 100644 --- a/port/ehci/usb_glue_aic.c +++ b/port/ehci/usb_glue_aic.c @@ -10,6 +10,10 @@ #include "usbh_core.h" #include "usb_hc_ehci.h" +#if !defined(CONFIG_USB_EHCI_CONFIGFLAG) +#error "aic ehci must define CONFIG_USB_EHCI_CONFIGFLAG" +#endif + extern void USBH_IRQHandler(uint8_t busid); static void aic_ehci_isr(int vector, void *arg) @@ -149,7 +153,7 @@ void usb_ehci_dcache_clean_invalidate(uintptr_t addr, uint32_t len) aicos_dcache_clean_invalid_range((size_t *)addr, len); } -int usbh_init(void) +int __usbh_init(void) { #if defined(AIC_USING_USB0_HOST) || defined(AIC_USING_USB1_HOST) int bus_id = 0; @@ -171,11 +175,5 @@ int usbh_init(void) #include <rtthread.h> #include <rtdevice.h> -INIT_ENV_EXPORT(usbh_init); - -#if defined (RT_USING_FINSH) -#include <finsh.h> - -MSH_CMD_EXPORT_ALIAS(lsusb, lsusb, list usb device); -#endif +INIT_ENV_EXPORT(__usbh_init); #endif
\ No newline at end of file |
