-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathasf4.mk
119 lines (100 loc) · 2.55 KB
/
asf4.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# This is mostly ported from asf4/gcc/Makefile with the relevant modifications.
ASF4_USB_DIRS = \
hpl/usb \
usb/ \
usb/device \
usb/class/cdc/device \
usb
ASF4_DIRS = $(ASF4_USB_DIRS) \
hpl/tc \
hpl/systick \
samd21a/gcc/gcc \
hpl/dmac \
hpl/adc \
hal/src \
samd21a/gcc \
hpl/pm \
hpl/sysctrl \
hal/utils/src \
hpl/sercom \
hpl/eic \
hpl/gclk \
hpl/wdt \
hpl/rtc \
hpl/nvmctrl \
hpl/core \
ASF4_USB_INCLUDES = \
-I$(ASF4_PREFIX)/usb \
-I$(ASF4_PREFIX)/usb/class/cdc \
-I$(ASF4_PREFIX)/usb/class/cdc/device \
-I$(ASF4_PREFIX)/usb/device \
ASF4_INCLUDES = $(ASF4_USB_INCLUDES) \
-I$(ASF4_PREFIX)/ \
-I$(ASF4_PREFIX)/config \
-I$(ASF4_PREFIX)/hal/include \
-I$(ASF4_PREFIX)/hal/utils/include \
-I$(ASF4_PREFIX)/hpl/core \
-I$(ASF4_PREFIX)/hpl/dmac \
-I$(ASF4_PREFIX)/hpl/gclk \
-I$(ASF4_PREFIX)/hpl/nvmctrl \
-I$(ASF4_PREFIX)/hpl/pm \
-I$(ASF4_PREFIX)/hpl/port \
-I$(ASF4_PREFIX)/hpl/rtc \
-I$(ASF4_PREFIX)/hpl/adc \
-I$(ASF4_PREFIX)/hpl/sercom \
-I$(ASF4_PREFIX)/hpl/sysctrl \
-I$(ASF4_PREFIX)/hpl/systick \
-I$(ASF4_PREFIX)/hpl/tc \
-I$(ASF4_PREFIX)/hpl/wdt \
-I$(ASF4_PREFIX)/hri \
-I$(ASF4_PREFIX)/CMSIS/Core/Include \
-I$(ASF4_PREFIX)/samd21a/include
ASF4_MKDIRS = $(foreach dir, $(ASF4_DIRS), $(addprefix $(BUILD_DIR)/$(ASF4_PREFIX)/, $(dir)))
ASF4_USB_MKDIRS = $(foreach dir, $(ASF4_USB_DIRS), $(addprefix $(BUILD_DIR)/$(ASF4_PREFIX)/, $(dir)))
ASF4_USB_OBJS = \
usb/class/cdc/device/cdcdf_acm.o \
hpl/usb/hpl_usb.o \
usb/device/usbdc.o \
usb/usb_protocol.o \
hal/src/hal_init.o \
hal/src/hal_usb_device.o
ASF4_OBJS = $(ASF4_USB_OBJS) \
hal/src/hal_io.o \
hpl/systick/hpl_systick.o \
hal/src/hal_calendar.o \
hpl/wdt/hpl_wdt.o \
samd21a/gcc/gcc/startup_samd21.o \
hal/utils/src/utils_syscalls.o \
samd21a/gcc/system_samd21.o \
hpl/nvmctrl/hpl_nvmctrl.o \
hal/src/hal_spi_m_sync.o \
hal/src/hal_timer.o \
hal/src/hal_i2c_m_async.o \
hal/src/hal_i2c_m_sync.o \
hal/src/hal_i2c_s_async.o \
hal/src/hal_flash.o \
hal/src/hal_adc_sync.o \
hal/src/hal_adc_dma.o \
hpl/adc/hpl_adc.o \
hal/src/hal_delay.o \
hpl/eic/hpl_eic.o \
hal/src/hal_ext_irq.o \
hpl/sysctrl/hpl_sysctrl.o \
hpl/core/hpl_init.o \
hal/src/hal_wdt.o \
hpl/core/hpl_core_m0plus_base.o \
hal/utils/src/utils_assert.o \
hpl/dmac/hpl_dmac.o \
hpl/pm/hpl_pm.o \
hal/src/hal_usart_async.o \
hpl/gclk/hpl_gclk.o \
hal/utils/src/utils_list.o \
hpl/rtc/hpl_rtc.o \
hpl/tc/hpl_tc.o \
hpl/sercom/hpl_sercom.o \
hal/utils/src/utils_ringbuffer.o \
hal/src/hal_gpio.o \
hal/utils/src/utils_event.o \
hal/src/hal_sleep.o \
hal/src/hal_atomic.o \
ASF4_OBJS := $(foreach obj, $(ASF4_OBJS), $(addprefix $(BUILD_DIR)/$(ASF4_PREFIX)/, $(obj)))