diff options
| author | jferreir <[email protected]> | 2023-07-20 16:51:42 +0200 |
|---|---|---|
| committer | jferreir <[email protected]> | 2023-07-20 17:01:00 +0200 |
| commit | 6ac7f19640d59f6d28054555430de2a083c78eeb (patch) | |
| tree | 60563ff7d745d8c2e57ece3092e35e545e284230 | |
| parent | 954f0e948d0df2ed64d31ba23369e6c2a22ec63f (diff) | |
fix compilation issues for XMC4500_RELAX
| -rw-r--r-- | hw/bsp/xmc4000/boards/xmc4500_relax/board.mk | 2 | ||||
| -rw-r--r-- | hw/bsp/xmc4000/family.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/hw/bsp/xmc4000/boards/xmc4500_relax/board.mk b/hw/bsp/xmc4000/boards/xmc4500_relax/board.mk index 371adff91..2b8f7bc57 100644 --- a/hw/bsp/xmc4000/boards/xmc4500_relax/board.mk +++ b/hw/bsp/xmc4000/boards/xmc4500_relax/board.mk @@ -3,7 +3,7 @@ CFLAGS += \ -DXMC4500_F100x1024 \ # mcu driver cause following warnings -CFLAGS += -Wno-error=stringop-overread +CFLAGS += -Wno-stringop-overread LD_FILE = $(MCU_DIR)/CMSIS/Infineon/COMPONENT_$(MCU_VARIANT)/Source/TOOLCHAIN_GCC_ARM/XMC4500x1024.ld diff --git a/hw/bsp/xmc4000/family.c b/hw/bsp/xmc4000/family.c index 35bed0ba4..78c968468 100644 --- a/hw/bsp/xmc4000/family.c +++ b/hw/bsp/xmc4000/family.c @@ -84,7 +84,9 @@ void board_init(void) #endif // USB Power Enable +#if(UC_SERIES != XMC45) XMC_SCU_CLOCK_UngatePeripheralClock(XMC_SCU_PERIPHERAL_CLOCK_USB0); +#endif XMC_SCU_RESET_DeassertPeripheralReset(XMC_SCU_PERIPHERAL_RESET_USB0); XMC_SCU_POWER_EnableUsb(); } |
