aboutsummaryrefslogtreecommitdiff
path: root/common_features.mk
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2021-09-21 19:58:46 +1000
committerGitHub <noreply@github.com>2021-09-21 19:58:46 +1000
commit20ea5f3fb5ba108153148e57981a7e804fd4be61 (patch)
treec6ff504e55d223df435ca439673e4771d480f079 /common_features.mk
parentc38a7308054f2072d234ee0d44d3bea9f809a63d (diff)
downloadqmk_firmware-20ea5f3fb5ba108153148e57981a7e804fd4be61.tar.gz
qmk_firmware-20ea5f3fb5ba108153148e57981a7e804fd4be61.zip
Relocate Adafruit BLE code (#14530)
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/common_features.mk b/common_features.mk
index 4633ccce1..8b5ee071d 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -767,19 +767,20 @@ ifeq ($(strip $(USBPD_ENABLE)), yes)
767endif 767endif
768 768
769BLUETOOTH_ENABLE ?= no 769BLUETOOTH_ENABLE ?= no
770VALID_BLUETOOTH_DRIVER_TYPES = AdafruitBLE RN42 custom 770VALID_BLUETOOTH_DRIVER_TYPES := AdafruitBLE RN42 custom
771ifeq ($(strip $(BLUETOOTH_ENABLE)), yes) 771ifeq ($(strip $(BLUETOOTH_ENABLE)), yes)
772 ifeq ($(filter $(strip $(BLUETOOTH_DRIVER)),$(VALID_BLUETOOTH_DRIVER_TYPES)),) 772 ifeq ($(filter $(strip $(BLUETOOTH_DRIVER)),$(VALID_BLUETOOTH_DRIVER_TYPES)),)
773 $(error "$(BLUETOOTH_DRIVER)" is not a valid Bluetooth driver type) 773 $(error "$(BLUETOOTH_DRIVER)" is not a valid Bluetooth driver type)
774 endif 774 endif
775 OPT_DEFS += -DBLUETOOTH_ENABLE 775 OPT_DEFS += -DBLUETOOTH_ENABLE
776 NO_USB_STARTUP_CHECK := yes 776 NO_USB_STARTUP_CHECK := yes
777 COMMON_VPATH += $(DRIVER_PATH)/bluetooth
777 SRC += outputselect.c 778 SRC += outputselect.c
778 779
779 ifeq ($(strip $(BLUETOOTH_DRIVER)), AdafruitBLE) 780 ifeq ($(strip $(BLUETOOTH_DRIVER)), AdafruitBLE)
780 OPT_DEFS += -DMODULE_ADAFRUIT_BLE 781 OPT_DEFS += -DMODULE_ADAFRUIT_BLE
781 SRC += analog.c 782 SRC += analog.c
782 SRC += $(LUFA_DIR)/adafruit_ble.cpp 783 SRC += $(DRIVER_PATH)/bluetooth/adafruit_ble.cpp
783 QUANTUM_LIB_SRC += spi_master.c 784 QUANTUM_LIB_SRC += spi_master.c
784 endif 785 endif
785 786