Skip to content

Commit 9352f75

Browse files
authored
Merge pull request hathach#1438 from Nikitarc/master
Update dwc2_stm32.h
2 parents fdeac85 + 15c01f2 commit 9352f75

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/portable/synopsys/dwc2/dwc2_stm32.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@
5656
#define EP_FIFO_SIZE_FS 4096
5757
#define EP_MAX_HS 9
5858
#define EP_FIFO_SIZE_HS 4096
59+
#if (! defined USB2_OTG_FS)
60+
// H7 with only 1 USB port: H72x / H73x / H7Ax / H7Bx
61+
// USB_OTG_FS_PERIPH_BASE and OTG_FS_IRQn not defined
62+
#define USB_OTG_FS_PERIPH_BASE USB1_OTG_HS_PERIPH_BASE
63+
#define OTG_FS_IRQn OTG_HS_IRQn
64+
#endif
5965

6066
#elif CFG_TUSB_MCU == OPT_MCU_STM32F7
6167
#include "stm32f7xx.h"

src/tusb_option.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
#ifndef _TUSB_OPTION_H_
2828
#define _TUSB_OPTION_H_
2929

30+
// To avoid GCC compiler warnings when -pedantic option is used (strict ISO C)
31+
typedef int make_iso_compilers_happy ;
32+
3033
#include "common/tusb_compiler.h"
3134

3235
#define TUSB_VERSION_MAJOR 0

0 commit comments

Comments
 (0)