2021-04-28 23:44:04 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								SDK_DIR = hw/mcu/nxp/mcux-sdk
							 | 
						
					
						
							
								
									
										
										
										
											2023-04-26 22:10:13 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								DEPS_SUBMODULES += $(SDK_DIR) lib/CMSIS_5
							 | 
						
					
						
							
								
									
										
										
										
											2021-03-04 22:50:45 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-19 17:58:20 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								MCU_DIR = $(SDK_DIR)/devices/$(MCU)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								include $(TOP)/$(BOARD_PATH)/board.mk
							 | 
						
					
						
							
								
									
										
										
										
											2023-06-24 18:38:41 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								CPU_CORE ?= cortex-m0plus
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-19 17:58:20 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-24 00:52:46 +07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								CFLAGS += \
							 | 
						
					
						
							
								
									
										
										
										
											2019-11-20 16:06:40 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								  -flto \
							 | 
						
					
						
							
								
									
										
										
										
											2019-09-03 13:25:36 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								  -DCFG_TUSB_MCU=OPT_MCU_LPC51UXX \
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-16 23:11:11 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								  -DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-24 00:52:46 +07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2019-09-27 00:15:43 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								# mcu driver cause following warnings
							 | 
						
					
						
							
								
									
										
										
										
											2020-03-23 22:52:59 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								CFLAGS += -Wno-error=unused-parameter
							 | 
						
					
						
							
								
									
										
										
										
											2019-09-03 13:25:36 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-24 00:52:46 +07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# All source paths should be relative to the top level.
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-19 17:58:20 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								LD_FILE = $(MCU_DIR)/gcc/$(MCU)_flash.ld
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-24 00:52:46 +07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								SRC_C += \
							 | 
						
					
						
							
								
									
										
										
										
											2021-03-17 16:52:07 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c \
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-19 17:58:20 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									$(MCU_DIR)/system_$(MCU).c \
							 | 
						
					
						
							
								
									
										
										
										
											2019-09-01 15:11:09 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									$(MCU_DIR)/drivers/fsl_clock.c \
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									$(MCU_DIR)/drivers/fsl_power.c \
							 | 
						
					
						
							
								
									
										
										
										
											2021-04-28 23:44:04 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									$(MCU_DIR)/drivers/fsl_reset.c \
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									$(SDK_DIR)/drivers/lpc_gpio/fsl_gpio.c \
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									$(SDK_DIR)/drivers/flexcomm/fsl_flexcomm.c \
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									$(SDK_DIR)/drivers/flexcomm/fsl_usart.c
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-24 00:52:46 +07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								INC += \
							 | 
						
					
						
							
								
									
										
										
										
											2023-04-26 22:10:13 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									$(TOP)/lib/CMSIS_5/CMSIS/Core/Include \
							 | 
						
					
						
							
								
									
										
										
										
											2019-09-01 15:11:09 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									$(TOP)/$(MCU_DIR) \
							 | 
						
					
						
							
								
									
										
										
										
											2021-04-28 23:44:04 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									$(TOP)/$(MCU_DIR)/drivers \
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									$(TOP)/$(SDK_DIR)/drivers/common \
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									$(TOP)/$(SDK_DIR)/drivers/flexcomm \
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									$(TOP)/$(SDK_DIR)/drivers/lpc_iocon \
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-16 23:11:11 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									$(TOP)/$(SDK_DIR)/drivers/lpc_gpio
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-24 00:52:46 +07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-19 17:58:20 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								SRC_S += $(MCU_DIR)/gcc/startup_$(MCU).S
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-24 00:52:46 +07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2019-09-01 15:11:09 +07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								LIBS += $(TOP)/$(MCU_DIR)/gcc/libpower.a
							 |