Skip to content

Commit

Permalink
fix STM32H7 usb host example
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoussin committed Feb 13, 2021
1 parent bf2ada3 commit c03f6d2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion testhal/STM32/STM32H7xx/USB_HOST/halconf_community.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
18 changes: 11 additions & 7 deletions testhal/STM32/STM32H7xx/USB_HOST/mcuconf_community.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c03f6d2

Please sign in to comment.