Relocate Adafruit BLE code (#14530)
This commit is contained in:
parent
c38a730805
commit
20ea5f3fb5
@ -767,19 +767,20 @@ ifeq ($(strip $(USBPD_ENABLE)), yes)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
BLUETOOTH_ENABLE ?= no
|
BLUETOOTH_ENABLE ?= no
|
||||||
VALID_BLUETOOTH_DRIVER_TYPES = AdafruitBLE RN42 custom
|
VALID_BLUETOOTH_DRIVER_TYPES := AdafruitBLE RN42 custom
|
||||||
ifeq ($(strip $(BLUETOOTH_ENABLE)), yes)
|
ifeq ($(strip $(BLUETOOTH_ENABLE)), yes)
|
||||||
ifeq ($(filter $(strip $(BLUETOOTH_DRIVER)),$(VALID_BLUETOOTH_DRIVER_TYPES)),)
|
ifeq ($(filter $(strip $(BLUETOOTH_DRIVER)),$(VALID_BLUETOOTH_DRIVER_TYPES)),)
|
||||||
$(error "$(BLUETOOTH_DRIVER)" is not a valid Bluetooth driver type)
|
$(error "$(BLUETOOTH_DRIVER)" is not a valid Bluetooth driver type)
|
||||||
endif
|
endif
|
||||||
OPT_DEFS += -DBLUETOOTH_ENABLE
|
OPT_DEFS += -DBLUETOOTH_ENABLE
|
||||||
NO_USB_STARTUP_CHECK := yes
|
NO_USB_STARTUP_CHECK := yes
|
||||||
|
COMMON_VPATH += $(DRIVER_PATH)/bluetooth
|
||||||
SRC += outputselect.c
|
SRC += outputselect.c
|
||||||
|
|
||||||
ifeq ($(strip $(BLUETOOTH_DRIVER)), AdafruitBLE)
|
ifeq ($(strip $(BLUETOOTH_DRIVER)), AdafruitBLE)
|
||||||
OPT_DEFS += -DMODULE_ADAFRUIT_BLE
|
OPT_DEFS += -DMODULE_ADAFRUIT_BLE
|
||||||
SRC += analog.c
|
SRC += analog.c
|
||||||
SRC += $(LUFA_DIR)/adafruit_ble.cpp
|
SRC += $(DRIVER_PATH)/bluetooth/adafruit_ble.cpp
|
||||||
QUANTUM_LIB_SRC += spi_master.c
|
QUANTUM_LIB_SRC += spi_master.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user