From c5fc9f338e5f332f5027747f7248d508c67782fc Mon Sep 17 00:00:00 2001 From: sakimisu <1203593632@qq.com> Date: Fri, 25 Aug 2023 21:37:14 +0800 Subject: [PATCH] fix macro spelling --- cherryusb_config_template.h | 2 +- port/ehci/usb_hc_ehci.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cherryusb_config_template.h b/cherryusb_config_template.h index e7a320ce..2228e2a0 100644 --- a/cherryusb_config_template.h +++ b/cherryusb_config_template.h @@ -153,7 +153,7 @@ #define CONFIG_USB_EHCI_HCOR_BASE (0x20072000 + 0x10) #define CONFIG_USB_EHCI_FRAME_LIST_SIZE 1024 // #define CONFIG_USB_EHCI_INFO_ENABLE -// #define CONFIG_USB_ECHI_HCOR_RESERVED_DISABLE +// #define CONFIG_USB_EHCI_HCOR_RESERVED_DISABLE // #define CONFIG_USB_EHCI_CONFIGFLAG // #define CONFIG_USB_EHCI_PORT_POWER diff --git a/port/ehci/usb_hc_ehci.h b/port/ehci/usb_hc_ehci.h index d240765f..15cada31 100644 --- a/port/ehci/usb_hc_ehci.h +++ b/port/ehci/usb_hc_ehci.h @@ -302,7 +302,7 @@ struct ehci_hcor { uint32_t ctrldssegment; /* 0x10: 4G Segment Selector */ uint32_t periodiclistbase; /* 0x14: Frame List Base Address */ uint32_t asynclistaddr; /* 0x18: Next Asynchronous List Address */ -#ifndef CONFIG_USB_ECHI_HCOR_RESERVED_DISABLE +#ifndef CONFIG_USB_EHCI_HCOR_RESERVED_DISABLE uint32_t reserved[9]; #endif uint32_t configflag; /* 0x40: Configured Flag Register */