From 6db4fbba4cf1ed134b9fc82a00ced07b9f547327 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Sat, 4 May 2024 14:21:13 +0800 Subject: add check for hpm --- port/ehci/usb_glue_hpm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/port/ehci/usb_glue_hpm.c b/port/ehci/usb_glue_hpm.c index fc87c431..2a6bcb72 100644 --- a/port/ehci/usb_glue_hpm.c +++ b/port/ehci/usb_glue_hpm.c @@ -13,12 +13,12 @@ #error "hpm ehci must set CONFIG_USB_EHCI_HPMICRO=1" #endif -#if !defined(CONFIG_USB_EHCI_HCOR_OFFSET) || CONFIG_USB_EHCI_HCOR_OFFSET != 0x140 -#error "hpm ehci must config CONFIG_USB_EHCI_HCOR_OFFSET to 0x140" +#if !defined(CONFIG_USB_EHCI_HCCR_OFFSET) || CONFIG_USB_EHCI_HCCR_OFFSET != 0x100 +#error "hpm ehci must config CONFIG_USB_EHCI_HCCR_OFFSET to 0x100" #endif -#if !defined(CONFIG_USB_EHCI_PORT_POWER) -#error "hpm ehci must enable CONFIG_USB_EHCI_PORT_POWER" +#if !defined(CONFIG_USB_EHCI_CONFIGFLAG) +#error "hpm ehci must set CONFIG_USB_EHCI_CONFIGFLAG" #endif static uint32_t _hcd_irqnum[CONFIG_USBHOST_MAX_BUS]; -- cgit v1.3.1