/*------------------------------------------------------------------------------ * MDK Middleware - Component ::USB:Host * Copyright (c) 2004-2019 Arm Limited (or its affiliates). All rights reserved. *------------------------------------------------------------------------------ * Name: USBH_Config_%Instance%.c * Purpose: USB Host Configuration * Rev.: V5.2.1 *----------------------------------------------------------------------------*/ //-------- <<< Use Configuration Wizard in Context Menu >>> -------------------- // USB Host %Instance% // Connect to hardware via Driver_USBH# <0-255> // Select driver control block for hardware interface. #define USBH%Instance%_HC_NUM %Instance% // Controller Interface Settings // Controller Interface // Selects the USB Host Controller Interface // <0=> Custom <1=> OHCI <2=> EHCI // Custom Controller Interface is used for any non-standard USB Host // Controller. #define USBH%Instance%_HC_IF 0 // Custom Host Controller Interface // Maximum Port Power Consumption<2-500:2> // Specifies the maximum power consumption per port (in mA) #define USBH%Instance%_HC_POWER 500 // Maximum Pipes in system // Maximum number of Pipes that will be used by Custom Controller // in system simultaneously. #define USBH%Instance%_HC_PIPE_NUM 3 // Memory Pool Size <512-1048576:4> // Specify size of memory pool (in bytes) that the USB Host Controller // will use for USB communication data. #define USBH%Instance%_HC_MEM_POOL_SIZE 512 // Relocate Memory Pool // Locate the Memory Pool at a specific address. #define USBH%Instance%_HC_MEM_POOL_RELOC 0 // Memory Pool Address <0-0xFFFFFE00:0x200> // Start address of the Memory Pool. #define USBH%Instance%_HC_MEM_POOL_ADDR 0x00000000 // // // Open Host Controller Interface (OHCI) // Memory-mapped OHCI Host Controller registers base address // This setting applies for OHCI Controller Interface. #define USBH%Instance%_HC_OHCI_BASE_ADDRESS 0x5000C000 // Maximum Port Power Consumption<2-500:2> // Specifies the maximum power consumption per port (in mA) #define USBH%Instance%_HC_OHCI_POWER 500 // Maximum Pipes in system // Maximum number of Pipes that will be used by OHCI Controller // in system simultaneously. // This setting affects memory allocated by OHCI controller. #define USBH%Instance%_HC_OHCI_PIPE_NUM 3 // Memory Pool Size <512-1048576:4> // Specify size of memory pool (in bytes) that the USB Host Controller // will use for USB communication data. #define USBH%Instance%_HC_OHCI_MEM_POOL_SIZE 512 // Relocate Memory Pool // Locate the Memory Pool at a specific address. #define USBH%Instance%_HC_OHCI_MEM_POOL_RELOC 0 // Memory Pool Address <0-0xFFFFFE00:0x200> // Start address of the Memory Pool. #define USBH%Instance%_HC_OHCI_MEM_POOL_ADDR 0x00000000 // // // Enhanced Host Controller Interface (EHCI) // Memory-mapped EHCI Host Controller registers base address // These settings apply for EHCI Controller Interface. #define USBH%Instance%_HC_EHCI_BASE_ADDRESS 0x40006100 // Maximum Port Power Consumption<2-500:2> // Specifies the maximum power consumption per port (in mA) #define USBH%Instance%_HC_EHCI_POWER 500 // Maximum Pipes in system // Maximum number of Pipes that will be used by EHCI Controller // in system simultaneously. // This setting affects memory allocated by EHCI controller. #define USBH%Instance%_HC_EHCI_PIPE_NUM 3 // Memory Pool Size <512-1048576:4> // Specify size of memory pool (in bytes) that the USB Host Controller // will use for USB communication data. #define USBH%Instance%_HC_EHCI_MEM_POOL_SIZE 4096 // Relocate Memory Pool // Locate the Memory Pool at a specific address. #define USBH%Instance%_HC_EHCI_MEM_POOL_RELOC 0 // Memory Pool Address <0-0xFFFFFE00:0x200> // Start address of the Memory Pool. #define USBH%Instance%_HC_EHCI_MEM_POOL_ADDR 0x00000000 // // // // OS Resources Settings // These settings are used to optimize usage of OS resources. // Core Thread Stack Size <64-65536> #define USBH%Instance%_CORE_THREAD_STACK_SIZE 1024 // Core Thread Priority #define USBH%Instance%_CORE_THREAD_PRIORITY osPriorityAboveNormal // // #include "RTE_Components.h" #ifdef RTE_USB_Host_MSC #include "USBH_Config_MSC.h" #endif #ifdef RTE_USB_Host_HID #include "USBH_Config_HID.h" #endif #ifdef RTE_USB_Host_CDC #include "USBH_Config_CDC.h" #endif #ifdef RTE_USB_Host_CustomClass #include "USBH_Config_CustomClass.h" #endif #include "usbh_config.h"