Skip to content

Commit 6ac7f19

Browse files
committed
fix compilation issues for XMC4500_RELAX
1 parent 954f0e9 commit 6ac7f19

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

hw/bsp/xmc4000/boards/xmc4500_relax/board.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ CFLAGS += \
33
-DXMC4500_F100x1024 \
44

55
# mcu driver cause following warnings
6-
CFLAGS += -Wno-error=stringop-overread
6+
CFLAGS += -Wno-stringop-overread
77

88
LD_FILE = $(MCU_DIR)/CMSIS/Infineon/COMPONENT_$(MCU_VARIANT)/Source/TOOLCHAIN_GCC_ARM/XMC4500x1024.ld
99

hw/bsp/xmc4000/family.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ void board_init(void)
8484
#endif
8585

8686
// USB Power Enable
87+
#if(UC_SERIES != XMC45)
8788
XMC_SCU_CLOCK_UngatePeripheralClock(XMC_SCU_PERIPHERAL_CLOCK_USB0);
89+
#endif
8890
XMC_SCU_RESET_DeassertPeripheralReset(XMC_SCU_PERIPHERAL_RESET_USB0);
8991
XMC_SCU_POWER_EnableUsb();
9092
}

0 commit comments

Comments
 (0)