fix STM32H7 usb host example

This commit is contained in:
Fabien Poussin 2021-02-13 20:32:06 +01:00
parent bf2ada3b98
commit c03f6d26de
No known key found for this signature in database
GPG Key ID: 6166CABA99FC385C
2 changed files with 12 additions and 8 deletions

View File

@ -250,7 +250,7 @@
/* debug */
#define USBH_DEBUG_ENABLE TRUE
#define USBH_DEBUG_MULTI_HOST FALSE
#define USBH_DEBUG_SINGLE_HOST_SELECTION USBHD2
#define USBH_DEBUG_SINGLE_HOST_SELECTION USBHD1
#define USBH_DEBUG_BUFFER 25000
#define USBH_DEBUG_OUTPUT_CALLBACK usbh_debug_output

View File

@ -93,16 +93,20 @@
#define STM32_OTG_HS_CHANNELS_NUMBER 12
#define STM32_USBH_USE_OTG1 TRUE
#define STM32_OTG1_USE_ULPI TRUE
#define STM32_OTG_FS_RXFIFO_SIZE 1024
#define STM32_OTG_FS_PTXFIFO_SIZE 128
#define STM32_OTG_FS_NPTXFIFO_SIZE 128
#define STM32_OTG1_USE_HS FALSE
#define STM32_OTG1_USE_ULPI FALSE
#define STM32_OTG1_USE_ULPI_VBUS FALSE
#define STM32_OTG1_RXFIFO_SIZE 1024
#define STM32_OTG1_PTXFIFO_SIZE 128
#define STM32_OTG1_NPTXFIFO_SIZE 128
#define STM32_USBH_USE_OTG2 FALSE
#define STM32_OTG2_USE_HS FALSE
#define STM32_OTG2_USE_ULPI FALSE
#define STM32_OTG_HS_RXFIFO_SIZE 2048
#define STM32_OTG_HS_PTXFIFO_SIZE 1024
#define STM32_OTG_HS_NPTXFIFO_SIZE 1024
#define STM32_OTG2_USE_ULPI_VBUS FALSE
#define STM32_OTG2_RXFIFO_SIZE 2048
#define STM32_OTG2_PTXFIFO_SIZE 1024
#define STM32_OTG2_NPTXFIFO_SIZE 1024
#define STM32_USBH_MIN_QSPACE 4
#define STM32_USBH_CHANNELS_NP 4