Browse Source

Relocate Adafruit BLE code (#14530)

pull/14546/head
Ryan 2 years ago
committed by GitHub
parent
commit
20ea5f3fb5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 3 additions and 2 deletions
  1. +3
    -2
      common_features.mk
  2. +0
    -0
      drivers/bluetooth/adafruit_ble.cpp
  3. +0
    -0
      drivers/bluetooth/adafruit_ble.h
  4. +0
    -0
      drivers/bluetooth/outputselect.c
  5. +0
    -0
      drivers/bluetooth/outputselect.h
  6. +0
    -0
      drivers/bluetooth/ringbuffer.hpp

+ 3
- 2
common_features.mk View File

@ -767,19 +767,20 @@ ifeq ($(strip $(USBPD_ENABLE)), yes)
endif
BLUETOOTH_ENABLE ?= no
VALID_BLUETOOTH_DRIVER_TYPES = AdafruitBLE RN42 custom
VALID_BLUETOOTH_DRIVER_TYPES := AdafruitBLE RN42 custom
ifeq ($(strip $(BLUETOOTH_ENABLE)), yes)
ifeq ($(filter $(strip $(BLUETOOTH_DRIVER)),$(VALID_BLUETOOTH_DRIVER_TYPES)),)
$(error "$(BLUETOOTH_DRIVER)" is not a valid Bluetooth driver type)
endif
OPT_DEFS += -DBLUETOOTH_ENABLE
NO_USB_STARTUP_CHECK := yes
COMMON_VPATH += $(DRIVER_PATH)/bluetooth
SRC += outputselect.c
ifeq ($(strip $(BLUETOOTH_DRIVER)), AdafruitBLE)
OPT_DEFS += -DMODULE_ADAFRUIT_BLE
SRC += analog.c
SRC += $(LUFA_DIR)/adafruit_ble.cpp
SRC += $(DRIVER_PATH)/bluetooth/adafruit_ble.cpp
QUANTUM_LIB_SRC += spi_master.c
endif


tmk_core/protocol/lufa/adafruit_ble.cpp → drivers/bluetooth/adafruit_ble.cpp View File


tmk_core/protocol/lufa/adafruit_ble.h → drivers/bluetooth/adafruit_ble.h View File


tmk_core/protocol/lufa/outputselect.c → drivers/bluetooth/outputselect.c View File


tmk_core/protocol/lufa/outputselect.h → drivers/bluetooth/outputselect.h View File


tmk_core/protocol/lufa/ringbuffer.hpp → drivers/bluetooth/ringbuffer.hpp View File


Loading…
Cancel
Save