peripheral.mak
5.91 KB
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# Define source file lists to SRC_LIST
SRC_LIST = hal\peripheral\src\dcl_pfc.c \
hal\peripheral\src\dcl_rtc.c \
hal\peripheral\src\dcl_i2c.c \
hal\peripheral\src\dcl_aux.c \
hal\peripheral\src\auxmain.c \
hal\peripheral\src\i2c.c \
hal\peripheral\src\pfc.c \
hal\peripheral\src\rtc.c \
hal\peripheral\src\drv_comm.c \
hal\peripheral\src\drv_hisr.c \
hal\peripheral\src\lpwr.c \
hal\peripheral\src\dcl_gpio.c \
hal\peripheral\src\dcl_wdt.c \
hal\peripheral\src\dcl_gpt.c \
hal\peripheral\src\dcl_gpt_hw.c \
hal\peripheral\src\dcl_pwm.c \
hal\peripheral\src\dcl_adc.c \
hal\peripheral\src\adc.c \
hal\peripheral\src\gpio.c \
hal\peripheral\src\wdt.c \
hal\peripheral\src\pwm.c \
hal\peripheral\src\rwg.c \
hal\peripheral\src\alerter.c \
hal\peripheral\src\dcl_pmu.c \
hal\peripheral\src\dcl_pmu_common.c \
hal\peripheral\src\dcl_pw.c \
hal\peripheral\src\kbdmain.c\
hal\peripheral\src\kbd_jogball.c\
hal\peripheral\src\DclS_kbd.c\
hal\peripheral\src\DclH_kbd.c\
hal\peripheral\src\dbgprint.c\
hal\peripheral\src\Dcl_SeriPortDrv.c\
hal\peripheral\src\uart.c\
hal\peripheral\src\uart_vfifo.c\
hal\peripheral\src\uart_handler.c\
hal\peripheral\src\dcl_pxs.c \
hal\peripheral\src\i2c_dual.c \
hal\peripheral\src\dcl_irda.c \
hal\peripheral\src\motion_sensor.c \
hal\peripheral\src\spi.c \
hal\peripheral\src\spi_hal.c \
hal\peripheral\src\hif_v1.c \
hal\peripheral\src\hif_v2.c \
hal\peripheral\src\hif_legacy.c \
hal\peripheral\src\touch_panel_main.c \
hal\peripheral\src\ts_drv.c \
hal\peripheral\src\touch_panel.c \
hal\peripheral\src\dcl_hts.c \
hal\peripheral\src\dcl_sts.c \
hal\peripheral\src\f32k_clk.c \
hal\peripheral\src\dcl_f32k_clk.c \
hal\peripheral\src\nli_arb.c \
hal\peripheral\src\gpt_udvt_test.c \
hal\peripheral\src\i2c_udvt_test.c \
hal\peripheral\src\sw_keypad.c \
hal\peripheral\src\dcl_common.c \
hal\peripheral\src\dcl_eint.c
OLD_BMT_ARCHITECTURE_PLATFORM = MT6252 MT6253 MT6276 MT6255 MT6256 MT6251 MT6235 MT6235B MT6236 MT6921 MT6922 MT6326 MT6268 MT6573 MT6575
#OLD_BMT_ARCHITECTURE_PLATFORM = MT6252 MT6253 MT6276 MT6251 MT6235 MT6235B MT6236 MT6921 MT6922 MT6326 MT6268 MT6573 MT6575
ifneq ($(filter $(strip $(PLATFORM)) ,$(OLD_BMT_ARCHITECTURE_PLATFORM)),)
SRC_LIST += hal\peripheral\src\adcmeasure_old.c \
hal\peripheral\src\adcsche_old.c \
hal\peripheral\src\dcl_chr_det_old.c
else
SRC_LIST += hal\peripheral\src\adcmeasure.c \
hal\peripheral\src\adcsche.c \
hal\peripheral\src\adc_msg_handle.c \
hal\peripheral\src\dcl_chr_det.c
endif
# accdet
ifneq ($(filter __ACCDET_SUPPORT__, $(strip $(MODULE_DEFS))),)
ifeq ($(filter __L1_STANDALONE__, $(strip $(MODULE_DEFS))),)
SRC_LIST += hal\peripheral\src\accdet.c
endif
endif
ifneq ($(filter __ACCDET_HYBRID_SOLUTION_SUPPORT__, $(strip $(MODULE_DEFS))),)
ifeq ($(filter __L1_STANDALONE__, $(strip $(MODULE_DEFS))),)
SRC_LIST += hal\peripheral\src\accdet.c
endif
endif
# PMU
ifeq ($(strip $(PMIC)),MT6235PMU)
SRC_LIST += hal\peripheral\src\dcl_pmu6235.c
endif
ifneq ($(filter MT6236PMU MT6921PMU, $(strip $(PMIC))),)
SRC_LIST += hal\peripheral\src\dcl_pmu6236.c
SRC_LIST += hal\peripheral\src\pmic_MT6236PMU_drv.c
endif
ifeq ($(strip $(PMIC)),MT6253PMU)
SRC_LIST += hal\peripheral\src\dcl_pmu6253.c
endif
ifeq ($(strip $(PMIC)),MT6326_CCCI)
SRC_LIST += hal\peripheral\src\dcl_pmic6326_ccci.c
endif
ifeq ($(strip $(PMIC)),MT6326)
SRC_LIST += hal\peripheral\src\dcl_pmic6326.c
endif
ifeq ($(strip $(PMIC)),MT6250PMU)
SRC_LIST += hal\peripheral\src\dcl_pmu6250.c \
hal\peripheral\src\dcl_pmu6250_init.c
endif
ifeq ($(strip $(PMIC)),MT6251PMU)
SRC_LIST += hal\peripheral\src\dcl_pmu6251.c
SRC_LIST += hal\peripheral\src\pmic_MT6251PMU_drv.c
endif
ifeq ($(strip $(PMIC)),MT6252PMU)
SRC_LIST += hal\peripheral\src\dcl_pmu6252.c
endif
ifeq ($(strip $(PMIC)),MT6253ELPMU)
SRC_LIST += hal\peripheral\src\dcl_pmu6252.c
endif
ifeq ($(strip $(PMIC)),MT6256PMU)
SRC_LIST += hal\peripheral\src\dcl_pmu6256.c \
hal\peripheral\src\dcl_pmu6256_init.c
endif
ifeq ($(strip $(PMIC)),MT6255PMU)
SRC_LIST += hal\peripheral\src\dcl_pmu6255.c \
hal\peripheral\src\dcl_pmu6255_init.c
endif
ifeq ($(strip $(PMIC)),MT6260PMU)
SRC_LIST += hal\peripheral\src\dcl_pmu6260.c \
hal\peripheral\src\dcl_pmu6260_init.c
endif
ifeq ($(strip $(PMIC)),MT6261PMU)
SRC_LIST += hal\peripheral\src\dcl_pmu6261.c \
hal\peripheral\src\dcl_pmu6261_init.c
endif
ifeq ($(strip $(PMIC)),MT6276PMU)
SRC_LIST += hal\peripheral\src\dcl_pmu6276.c
SRC_LIST += hal\peripheral\src\pmic_MT6276PMU_drv.c
endif
ifeq ($(strip $(PMIC)),MT6573PMU)
SRC_LIST += hal\peripheral\src\dcl_pmu6573.c
endif
ifneq ($(filter __DMA_UART_VIRTUAL_FIFO__, $(strip $(MODULE_DEFS))),)
SRC_LIST += hal\peripheral\src\uart_vfifo.c
endif
ifneq ($(filter __MAUI_BASIC__, $(strip $(MODULE_DEFS))),)
SRC_LIST += hal\peripheral\src\uart_test.c
SRC_LIST += hal\peripheral\src\spi_test.c
endif
# Define include path lists to INC_DIR
INC_DIR = interface\hal \
hal\peripheral\inc \
hal\system\dcmgr\inc \
interface\hal\connectivity\usb_driver \
hal\connectivity\usb_driver\inc \
interface\hwdrv \
drv\include \
hal\bluetooth\btif\include \
interface\hal\audio \
interface\hal\video\
hal\display\common\include \
custom\drv\ast \
interface\hal\L1 \
custom\codegen\$(strip $(BOARD_VER)) \
hal\system\cache\inc
# Define the specified compile options to COMP_DEFS
COMP_DEFS = __DRV_COMM_INIT_DEINIT__