Revision c7cd988c modules/PowerManagement_1-1/Makefile
modules/PowerManagement_1-1/Makefile | ||
---|---|---|
140 | 140 |
include $(CHIBIOS)/os/hal/ports/STM32/STM32F4xx/platform.mk |
141 | 141 |
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk |
142 | 142 |
|
143 |
# Periphery LLDs. |
|
143 |
# Module specific configuration |
|
144 |
## select one (or none) of the following |
|
145 |
#BOARD_SENSORRING := BOARD_NOSENSORRING |
|
146 |
#BOARD_SENSORRING := BOARD_PROXIMITYSENSOR |
|
147 |
#BOARD_SENSORRING := BOARD_DISTANCESENSOR_VL53L0X |
|
148 |
#BOARD_SENSORRING := BOARD_DISTANCESENSOR_VL53L1X |
|
149 |
|
|
150 |
# Module specific periphery LLDs. |
|
144 | 151 |
include $(AMIROLLD)/drivers/AT24C01B/v1/alld_AT24C01B.mk |
145 |
include $(AMIROLLD)/drivers/AT42QT1050/v1/alld_AT42QT1050.mk |
|
146 | 152 |
include $(AMIROLLD)/drivers/bq241xx/v1/alld_bq241xx.mk |
147 | 153 |
include $(AMIROLLD)/drivers/bq27500/v1/alld_bq27500.mk |
148 | 154 |
include $(AMIROLLD)/drivers/INA219/v1/alld_INA219.mk |
149 | 155 |
include $(AMIROLLD)/drivers/LED/v1/alld_LED.mk |
150 |
include $(AMIROLLD)/drivers/MPR121/v1/alld_MPR121.mk |
|
151 | 156 |
include $(AMIROLLD)/drivers/PCA9544A/v1/alld_PCA9544A.mk |
152 |
include $(AMIROLLD)/drivers/PCAL6524/v1/alld_PCAL6524.mk |
|
153 | 157 |
include $(AMIROLLD)/drivers/PKxxxExxx/v1/alld_PKxxxExxx.mk |
154 | 158 |
include $(AMIROLLD)/drivers/TPS6211x/v1/alld_TPS6211x.mk |
155 |
include $(AMIROLLD)/drivers/VCNL4020/v1/alld_VCNL4020.mk |
|
156 |
|
|
157 |
# Tests. |
|
158 |
include $(AMIROOS_TEST_DIR)lld/adc/aos_test_adc.mk |
|
159 |
include $(AMIROOS_TEST_DIR)periphery-lld/AT24C01B_v1/aos_test_AT24C01B.mk |
|
160 |
include $(AMIROOS_TEST_DIR)periphery-lld/AT42QT1050_v1/aos_test_AT42QT1050.mk |
|
161 |
include $(AMIROOS_TEST_DIR)periphery-lld/bq241xx_v1/aos_test_bq241xx.mk |
|
162 |
include $(AMIROOS_TEST_DIR)periphery-lld/bq27500_v1/aos_test_bq27500.mk |
|
163 |
include $(AMIROOS_TEST_DIR)periphery-lld/bq27500_v1_bq241xx_v1/aos_test_bq27500_bq241xx.mk |
|
164 |
include $(AMIROOS_TEST_DIR)periphery-lld/INA219_v1/aos_test_INA219.mk |
|
165 |
include $(AMIROOS_TEST_DIR)periphery-lld/LED_v1/aos_test_LED.mk |
|
166 |
include $(AMIROOS_TEST_DIR)periphery-lld/MPR121_v1/aos_test_MPR121.mk |
|
167 |
include $(AMIROOS_TEST_DIR)periphery-lld/PCA9544A_v1/aos_test_PCA9544A.mk |
|
168 |
include $(AMIROOS_TEST_DIR)periphery-lld/PCAL6524_v1/aos_test_PCAL6524.mk |
|
169 |
include $(AMIROOS_TEST_DIR)periphery-lld/PKxxxExxx_v1/aos_test_PKxxxExxx.mk |
|
170 |
include $(AMIROOS_TEST_DIR)periphery-lld/TPS6211x_v1/aos_test_TPS6211x.mk |
|
171 |
include $(AMIROOS_TEST_DIR)periphery-lld/TPS6211x_v1_INA219_v1/aos_test_TPS6211x_INA219.mk |
|
172 |
include $(AMIROOS_TEST_DIR)periphery-lld/VCNL4020_v1/aos_test_VCNL4020.mk |
|
159 |
ifeq ($(BOARD_SENSORRING), BOARD_PROXIMITYSENSOR) |
|
160 |
include $(AMIROLLD)/drivers/MPR121/v1/alld_MPR121.mk |
|
161 |
include $(AMIROLLD)/drivers/VCNL4020/v1/alld_VCNL4020.mk |
|
162 |
else ifeq ($(BOARD_SENSORRING), BOARD_DISTANCESENSOR_VL53L0X) |
|
163 |
include $(AMIROLLD)/drivers/AT42QT1050/v1/alld_AT42QT1050.mk |
|
164 |
include $(AMIROLLD)/drivers/PCAL6524/v1/alld_PCAL6524.mk |
|
165 |
else ifeq ($(BOARD_SENSORRING), BOARD_DISTANCESENSOR_VL53L1X) |
|
166 |
include $(AMIROLLD)/drivers/AT42QT1050/v1/alld_AT42QT1050.mk |
|
167 |
include $(AMIROLLD)/drivers/PCAL6524/v1/alld_PCAL6524.mk |
|
168 |
else ifeq ($(BOARD_SENSORRING),) |
|
169 |
include $(AMIROLLD)/drivers/AT42QT1050/v1/alld_AT42QT1050.mk |
|
170 |
include $(AMIROLLD)/drivers/PCAL6524/v1/alld_PCAL6524.mk |
|
171 |
include $(AMIROLLD)/drivers/MPR121/v1/alld_MPR121.mk |
|
172 |
include $(AMIROLLD)/drivers/VCNL4020/v1/alld_VCNL4020.mk |
|
173 |
endif |
|
173 | 174 |
|
174 | 175 |
# Module specific inclusion directories |
175 |
MODULE_INC = $(MODULE_DIR) \ |
|
176 |
$(wildcard $(MODULE_DIR)/test/*) |
|
176 |
MODULE_INC = $(MODULE_DIR) |
|
177 | 177 |
|
178 | 178 |
# Module specific C source files. |
179 |
MODULE_CSRC = $(wildcard $(MODULE_INC:%=%/*.[Cc])) |
|
179 |
MODULE_CSRC = $(MODULE_DIR)/board.c \ |
|
180 |
$(MODULE_DIR)/module.c |
|
181 |
|
|
182 |
# Module specific tests. |
|
183 |
include $(MODULE_DIR)/test/adc/module_test_adc.mk |
|
184 |
include $(MODULE_DIR)/test/AT24C01B/module_test_AT24C01B.mk |
|
185 |
include $(MODULE_DIR)/test/bq241xx/module_test_bq241xx.mk |
|
186 |
include $(MODULE_DIR)/test/bq27500/module_test_bq27500.mk |
|
187 |
include $(MODULE_DIR)/test/bq27500_bq241xx/module_test_bq27500_bq241xx.mk |
|
188 |
include $(MODULE_DIR)/test/INA219/module_test_INA219.mk |
|
189 |
include $(MODULE_DIR)/test/LED/module_test_LED.mk |
|
190 |
include $(MODULE_DIR)/test/PCA9544A/module_test_PCA9544A.mk |
|
191 |
include $(MODULE_DIR)/test/PKxxxExxx/module_test_PKxxxExxx.mk |
|
192 |
include $(MODULE_DIR)/test/TPS6211x/module_test_TPS6211x.mk |
|
193 |
include $(MODULE_DIR)/test/TPS6211x_INA219/module_test_TPS6211x_INA219.mk |
|
194 |
ifeq ($(BOARD_SENSORRING), BOARD_PROXIMITYSENSOR) |
|
195 |
include $(MODULE_DIR)/test/MPR121/module_test_MPR121.mk |
|
196 |
include $(MODULE_DIR)/test/VCNL4020/module_test_VCNL4020.mk |
|
197 |
else ifeq ($(BOARD_SENSORRING), BOARD_DISTANCESENSOR_VL53L0X) |
|
198 |
include $(MODULE_DIR)/test/AT42QT1050/module_test_AT42QT1050.mk |
|
199 |
include $(MODULE_DIR)/test/PCAL6524/module_test_PCAL6524.mk |
|
200 |
else ifeq ($(BOARD_SENSORRING), BOARD_DISTANCESENSOR_VL53L1X) |
|
201 |
include $(MODULE_DIR)/test/AT42QT1050/module_test_AT42QT1050.mk |
|
202 |
include $(MODULE_DIR)/test/PCAL6524/module_test_PCAL6524.mk |
|
203 |
else ifeq ($(BOARD_SENSORRING),) |
|
204 |
include $(MODULE_DIR)/test/AT42QT1050/module_test_AT42QT1050.mk |
|
205 |
include $(MODULE_DIR)/test/MPR121/module_test_MPR121.mk |
|
206 |
include $(MODULE_DIR)/test/PCAL6524/module_test_PCAL6524.mk |
|
207 |
include $(MODULE_DIR)/test/VCNL4020/module_test_VCNL4020.mk |
|
208 |
endif |
|
180 | 209 |
|
181 | 210 |
# C warning options. |
182 | 211 |
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes |
... | ... | |
196 | 225 |
# # |
197 | 226 |
|
198 | 227 |
# List all user C define here, like -D_DEBUG=1 |
228 |
ifneq ($(BOARD_SENSORRING),) |
|
229 |
UDEFS += -DBOARD_SENSORRING=$(BOARD_SENSORRING) |
|
230 |
endif |
|
199 | 231 |
UDEFS += |
200 | 232 |
|
201 | 233 |
# Define ASM defines here |
Also available in: Unified diff