xmc4500 ported, cdc msc example run fine
This commit is contained in:
@@ -30,6 +30,15 @@
|
||||
#include "bsp/board.h"
|
||||
#include "board.h"
|
||||
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// Forward USB interrupt events to TinyUSB IRQ Handler
|
||||
//--------------------------------------------------------------------+
|
||||
void USB0_0_IRQHandler(void)
|
||||
{
|
||||
tud_int_handler(0);
|
||||
}
|
||||
|
||||
void board_init(void)
|
||||
{
|
||||
board_clock_init();
|
||||
@@ -58,6 +67,10 @@ void board_init(void)
|
||||
// If freeRTOS is used, IRQ priority is limit by max syscall ( smaller is higher )
|
||||
NVIC_SetPriority(USB0_0_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY );
|
||||
#endif
|
||||
|
||||
// USB Power Enable
|
||||
XMC_SCU_RESET_DeassertPeripheralReset(XMC_SCU_PERIPHERAL_RESET_USB0);
|
||||
XMC_SCU_POWER_EnableUsb();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
||||
@@ -18,6 +18,8 @@ CFLAGS += \
|
||||
# mcu driver cause following warnings
|
||||
#CFLAGS += -Wno-error=shadow -Wno-error=cast-align
|
||||
|
||||
SKIP_NANOLIB = 1
|
||||
|
||||
SRC_C += \
|
||||
src/portable/synopsys/dwc2/dcd_dwc2.c \
|
||||
$(MCU_DIR)/Newlib/syscalls.c \
|
||||
@@ -25,6 +27,7 @@ SRC_C += \
|
||||
$(MCU_DIR)/XMCLib/src/xmc4_gpio.c \
|
||||
$(MCU_DIR)/XMCLib/src/xmc4_scu.c
|
||||
|
||||
|
||||
SRC_S += $(MCU_DIR)/CMSIS/Infineon/COMPONENT_$(MCU_VARIANT)/Source/TOOLCHAIN_GCC_ARM/startup_$(MCU_VARIANT).S
|
||||
|
||||
INC += \
|
||||
|
||||
Reference in New Issue
Block a user