File tree 8 files changed +24
-4
lines changed
8 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 42
42
#include "bsp/board_api.h"
43
43
#include "board.h"
44
44
45
+ extern void USB_IRQHandler (void );
46
+ extern void SysTick_Handler (void );
47
+ void SystemInit (void );
48
+
45
49
//--------------------------------------------------------------------+
46
50
// Forward USB interrupt events to TinyUSB IRQ Handler
47
51
//--------------------------------------------------------------------+
Original file line number Diff line number Diff line change @@ -49,7 +49,10 @@ function(add_board_target BOARD_TARGET)
49
49
update_board(${BOARD_TARGET} )
50
50
51
51
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" )
52
- target_compile_options (${BOARD_TARGET} PUBLIC -nostdlib)
52
+ target_compile_options (${BOARD_TARGET} PUBLIC
53
+ -nostdlib
54
+ -Wno-error=incompatible-pointer-types
55
+ )
53
56
target_link_options (${BOARD_TARGET} PUBLIC
54
57
"LINKER:--script=${LD_FILE_GNU} "
55
58
--specs=nosys.specs --specs=nano.specs
Original file line number Diff line number Diff line change 32
32
#include "bsp/board_api.h"
33
33
#include "board.h"
34
34
35
+ extern void USB0_IRQHandler (void );
36
+ extern void USB1_IRQHandler (void );
37
+ extern void SysTick_Handler (void );
38
+ void SystemInit (void );
39
+
35
40
//--------------------------------------------------------------------+
36
41
// USB Interrupt Handler
37
42
//--------------------------------------------------------------------+
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ CFLAGS += \
12
12
-DCFG_TUSB_MCU=OPT_MCU_LPC18XX
13
13
14
14
# mcu driver cause following warnings
15
- CFLAGS += -Wno-error=unused-parameter -Wno-error=strict-prototypes -Wno-error= cast-qual
15
+ CFLAGS += -Wno-error=unused-parameter -Wno-error=cast-qual
16
16
17
17
LDFLAGS_GCC += --specs=nosys.specs --specs=nano.specs
18
18
Original file line number Diff line number Diff line change 47
47
const uint32_t OscRateIn = 12000000 ;
48
48
const uint32_t ExtRateIn = 0 ;
49
49
50
+ extern void USB0_IRQHandler (void );
51
+ extern void USB1_IRQHandler (void );
52
+ extern void SysTick_Handler (void );
53
+ void SystemInit (void );
54
+
50
55
/*------------------------------------------------------------------*/
51
56
/* BOARD API
52
57
*------------------------------------------------------------------*/
Original file line number Diff line number Diff line change @@ -51,7 +51,10 @@ function(add_board_target BOARD_TARGET)
51
51
update_board(${BOARD_TARGET} )
52
52
53
53
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" )
54
- target_compile_options (${BOARD_TARGET} PUBLIC -nostdlib)
54
+ target_compile_options (${BOARD_TARGET} PUBLIC
55
+ -nostdlib
56
+ -Wno-error=incompatible-pointer-types
57
+ )
55
58
target_link_options (${BOARD_TARGET} PUBLIC
56
59
"LINKER:--script=${LD_FILE_GNU} "
57
60
--specs=nosys.specs --specs=nano.specs
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ CFLAGS += \
14
14
# mcu driver cause following warnings
15
15
CFLAGS += \
16
16
-Wno-error=unused-parameter \
17
- -Wno-error=strict-prototypes \
18
17
-Wno-error=cast-qual \
19
18
-Wno-error=incompatible-pointer-types \
20
19
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ SRC_C += \
45
45
46
46
INC += \
47
47
$(TOP ) /$(BOARD_PATH ) \
48
+ $(TOP ) /$(FAMILY_PATH ) /nrfx_config \
48
49
$(TOP ) /lib/CMSIS_5/CMSIS/Core/Include \
49
50
$(TOP ) /${NRFX_PATH} \
50
51
$(TOP ) /${NRFX_PATH}/mdk \
You can’t perform that action at this time.
0 commit comments