| 
									
										
										
										
											2021-02-03 13:33:40 -07:00
										 |  |  | include $(TOP)/$(BOARD_PATH)/board.mk | 
					
						
							| 
									
										
										
										
											2023-06-24 18:38:41 +07:00
										 |  |  | CPU_CORE ?= cortex-m0plus | 
					
						
							| 
									
										
										
										
											2021-02-03 13:33:40 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-08-20 21:49:35 -06:00
										 |  |  | CFLAGS += \
 | 
					
						
							|  |  |  |   -mthumb \
 | 
					
						
							|  |  |  |   -nostdlib -nostartfiles \
 | 
					
						
							|  |  |  |   -DCONF_DFLL_OVERWRITE_CALIBRATION=0 \
 | 
					
						
							|  |  |  |   -DOSC32K_OVERWRITE_CALIBRATION=0 \
 | 
					
						
							| 
									
										
										
										
											2023-03-19 12:47:05 +07:00
										 |  |  |   -DCFG_EXAMPLE_MSC_READONLY \
 | 
					
						
							|  |  |  |   -DCFG_EXAMPLE_VIDEO_READONLY \
 | 
					
						
							| 
									
										
										
										
											2020-10-07 19:15:53 +07:00
										 |  |  |   -DCFG_TUSB_MCU=OPT_MCU_SAMD11 | 
					
						
							| 
									
										
										
										
											2020-08-20 21:49:35 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-17 16:26:27 +07:00
										 |  |  | # suppress warning caused by vendor mcu driver
 | 
					
						
							| 
									
										
										
										
											2023-03-19 12:47:05 +07:00
										 |  |  | CFLAGS += -Wno-error=redundant-decls | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # SAM driver is flooded with -Wcast-qual which slow down complication significantly
 | 
					
						
							|  |  |  | CFLAGS_SKIP += -Wcast-qual | 
					
						
							| 
									
										
										
										
											2021-10-17 16:26:27 +07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-23 12:43:13 +07:00
										 |  |  | LDFLAGS_GCC += -specs=nosys.specs -specs=nano.specs | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-08-20 21:49:35 -06:00
										 |  |  | SRC_C += \
 | 
					
						
							| 
									
										
										
										
											2021-03-17 16:52:07 +07:00
										 |  |  | 	src/portable/microchip/samd/dcd_samd.c \
 | 
					
						
							| 
									
										
										
										
											2020-08-20 21:49:35 -06:00
										 |  |  | 	hw/mcu/microchip/samd11/gcc/system_samd11.c \
 | 
					
						
							| 
									
										
										
										
											2024-05-03 12:45:41 +07:00
										 |  |  | 	hw/mcu/microchip/samd11/gcc/gcc/startup_samd11.c \
 | 
					
						
							|  |  |  | 	hw/mcu/microchip/samd11/hal/src/hal_atomic.c \
 | 
					
						
							| 
									
										
										
										
											2020-08-20 21:49:35 -06:00
										 |  |  | 	hw/mcu/microchip/samd11/hpl/gclk/hpl_gclk.c \
 | 
					
						
							|  |  |  | 	hw/mcu/microchip/samd11/hpl/pm/hpl_pm.c \
 | 
					
						
							|  |  |  | 	hw/mcu/microchip/samd11/hpl/sysctrl/hpl_sysctrl.c \
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | INC += \
 | 
					
						
							| 
									
										
										
										
											2021-02-03 13:33:40 -07:00
										 |  |  | 	$(TOP)/$(BOARD_PATH) \
 | 
					
						
							| 
									
										
										
										
											2020-08-20 21:49:35 -06:00
										 |  |  | 	$(TOP)/hw/mcu/microchip/samd11/ \
 | 
					
						
							|  |  |  | 	$(TOP)/hw/mcu/microchip/samd11/config \
 | 
					
						
							|  |  |  | 	$(TOP)/hw/mcu/microchip/samd11/include \
 | 
					
						
							|  |  |  | 	$(TOP)/hw/mcu/microchip/samd11/hal/include \
 | 
					
						
							|  |  |  | 	$(TOP)/hw/mcu/microchip/samd11/hal/utils/include \
 | 
					
						
							|  |  |  | 	$(TOP)/hw/mcu/microchip/samd11/hpl/pm/ \
 | 
					
						
							|  |  |  | 	$(TOP)/hw/mcu/microchip/samd11/hpl/port \
 | 
					
						
							|  |  |  | 	$(TOP)/hw/mcu/microchip/samd11/hri \
 | 
					
						
							|  |  |  | 	$(TOP)/hw/mcu/microchip/samd11/CMSIS/Include \
 | 
					
						
							|  |  |  | 	$(TOP)/hw/mcu/microchip/samd11/CMSIS/Core/Include |