This commit is contained in:
hathach
2025-01-25 16:29:56 +07:00
parent 6b3a5957c2
commit 8c7998b0e9
11 changed files with 51 additions and 109 deletions

View File

@@ -42,6 +42,10 @@
#include "bsp/board_api.h"
#include "board.h"
extern void USB_IRQHandler(void);
extern void SysTick_Handler(void);
void SystemInit(void);
//--------------------------------------------------------------------+
// Forward USB interrupt events to TinyUSB IRQ Handler
//--------------------------------------------------------------------+

View File

@@ -49,7 +49,10 @@ function(add_board_target BOARD_TARGET)
update_board(${BOARD_TARGET})
if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(${BOARD_TARGET} PUBLIC -nostdlib)
target_compile_options(${BOARD_TARGET} PUBLIC
-nostdlib
-Wno-error=incompatible-pointer-types
)
target_link_options(${BOARD_TARGET} PUBLIC
"LINKER:--script=${LD_FILE_GNU}"
--specs=nosys.specs --specs=nano.specs