Revision c7cd988c modules/LightRing_1-2/Makefile

View differences:

modules/LightRing_1-2/Makefile
140 140
include $(CHIBIOS)/os/hal/ports/STM32/STM32F1xx/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_BREAKOUT_MODULE := BOARD_BREAKOUT_NONE
146
#BOARD_BREAKOUT_MODULE := BOARD_BREAKOUT_UWBv10
147

  
148
# Module specific periphery LLDs.
144 149
include $(AMIROLLD)/drivers/AT24C01B/v1/alld_AT24C01B.mk
145 150
include $(AMIROLLD)/drivers/INA219/v1/alld_INA219.mk
146 151
include $(AMIROLLD)/drivers/LED/v1/alld_LED.mk
147 152
include $(AMIROLLD)/drivers/MIC9404x/v1/alld_MIC9404x.mk
148 153
include $(AMIROLLD)/drivers/TLC5947/v1/alld_TLC5947.mk
149
include $(AMIROLLD)/drivers/DW1000/v2/alld_DW1000.mk
150

  
151
# Tests.
152
include $(AMIROOS_TEST_DIR)periphery-lld/AT24C01B_v1/aos_test_AT24C01B.mk
153
include $(AMIROOS_TEST_DIR)periphery-lld/INA219_v1/aos_test_INA219.mk
154
include $(AMIROOS_TEST_DIR)periphery-lld/LED_v1/aos_test_LED.mk
155
include $(AMIROOS_TEST_DIR)periphery-lld/MIC9404x_v1/aos_test_MIC9404x.mk
156
include $(AMIROOS_TEST_DIR)periphery-lld/TLC5947_v1/aos_test_TLC5947.mk
157
include $(AMIROOS_TEST_DIR)periphery-lld/DW1000_v2/aos_test_DW1000.mk
154
ifeq ($(BOARD_BREAKOUT_MODULE), BOARD_BREAKOUT_UWBv10)
155
  include $(AMIROLLD)/drivers/DW1000/v2/alld_DW1000.mk
156
else ifeq ($(BOARD_BREAKOUT_MODULE),)
157
  include $(AMIROLLD)/drivers/DW1000/v2/alld_DW1000.mk
158
endif
158 159

  
159 160
# Module specific inclusion directories
160
MODULE_INC = $(MODULE_DIR) \
161
             $(wildcard $(MODULE_DIR)/test/*)
161
MODULE_INC = $(MODULE_DIR)
162 162

  
163 163
# Module specific C source files.
164
MODULE_CSRC = $(wildcard $(MODULE_INC:%=%/*.[Cc]))
164
MODULE_CSRC = $(MODULE_DIR)/board.c \
165
              $(MODULE_DIR)/module.c
166

  
167
# Module specific tests.
168
include $(MODULE_DIR)/test/AT24C01B/module_test_AT24C01B.mk
169
include $(MODULE_DIR)/test/INA219/module_test_INA219.mk
170
include $(MODULE_DIR)/test/LED/module_test_LED.mk
171
include $(MODULE_DIR)/test/MIC9404x/module_test_MIC9404x.mk
172
include $(MODULE_DIR)/test/TLC5947/module_test_TLC5947.mk
173
ifeq ($(BOARD_BREAKOUT_MODULE), BOARD_BREAKOUT_UWBv10)
174
  include $(MODULE_DIR)/test/DW1000/module_test_DW1000.mk
175
else ifeq ($(BOARD_BREAKOUT_MODULE),)
176
  include $(MODULE_DIR)/test/DW1000/module_test_DW1000.mk
177
endif
165 178

  
166 179
# C warning options.
167 180
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
......
181 194
#                                                                              #
182 195

  
183 196
# List all user C define here, like -D_DEBUG=1
197
ifneq ($(BOARD_SENSORRING),)
198
  UDEFS += -DBOARD_BREAKOUT_MODULE=$(BOARD_BREAKOUT_MODULE)
199
endif
184 200
UDEFS +=
185 201

  
186 202
# Define ASM defines here

Also available in: Unified diff