diff options
| author | Ha Thach <[email protected]> | 2022-06-01 12:23:32 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-06-01 12:23:32 +0700 |
| commit | 9352f7522033c31a91f328cdce35a57cf6c95fec (patch) | |
| tree | af4cbe4165990170d69acbbf515e37691f9386fc /src | |
| parent | fdeac8508be5cdd95966422d1e776604efbc9b3f (diff) | |
| parent | 15c01f20ecdb3b9ff184f2311e65e95e4cd8e5cd (diff) | |
Merge pull request #1438 from Nikitarc/master
Update dwc2_stm32.h
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/synopsys/dwc2/dwc2_stm32.h | 6 | ||||
| -rw-r--r-- | src/tusb_option.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/portable/synopsys/dwc2/dwc2_stm32.h b/src/portable/synopsys/dwc2/dwc2_stm32.h index 469045ac4..d54bf1fd7 100644 --- a/src/portable/synopsys/dwc2/dwc2_stm32.h +++ b/src/portable/synopsys/dwc2/dwc2_stm32.h @@ -56,6 +56,12 @@ #define EP_FIFO_SIZE_FS 4096 #define EP_MAX_HS 9 #define EP_FIFO_SIZE_HS 4096 + #if (! defined USB2_OTG_FS) + // H7 with only 1 USB port: H72x / H73x / H7Ax / H7Bx + // USB_OTG_FS_PERIPH_BASE and OTG_FS_IRQn not defined + #define USB_OTG_FS_PERIPH_BASE USB1_OTG_HS_PERIPH_BASE + #define OTG_FS_IRQn OTG_HS_IRQn + #endif #elif CFG_TUSB_MCU == OPT_MCU_STM32F7 #include "stm32f7xx.h" diff --git a/src/tusb_option.h b/src/tusb_option.h index 7f60fbd84..3b054fc78 100644 --- a/src/tusb_option.h +++ b/src/tusb_option.h @@ -27,6 +27,9 @@ #ifndef _TUSB_OPTION_H_ #define _TUSB_OPTION_H_ +// To avoid GCC compiler warnings when -pedantic option is used (strict ISO C) +typedef int make_iso_compilers_happy ; + #include "common/tusb_compiler.h" #define TUSB_VERSION_MAJOR 0 |
