summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common_features.mk10
-rw-r--r--data/schemas/keyboard.jsonschema2
-rw-r--r--docs/config_options.md4
-rw-r--r--docs/feature_bluetooth.md10
-rw-r--r--drivers/bluetooth/bluefruit_le.cpp (renamed from drivers/bluetooth/adafruit_ble.cpp)64
-rw-r--r--drivers/bluetooth/bluefruit_le.h (renamed from drivers/bluetooth/adafruit_ble.h)20
-rw-r--r--drivers/bluetooth/outputselect.c8
-rw-r--r--keyboards/10bleoledhub/rules.mk2
-rw-r--r--keyboards/40percentclub/mf68/keymaps/mf68_ble/rules.mk2
-rw-r--r--keyboards/atreus/feather/rules.mk2
-rw-r--r--keyboards/bioi/main.c6
-rw-r--r--keyboards/converter/m0110_usb/readme.md2
-rw-r--r--keyboards/converter/usb_usb/ble/config.h4
-rw-r--r--keyboards/converter/usb_usb/ble/rules.mk2
-rw-r--r--keyboards/dtisaac/dosa40rgb/readme.md2
-rw-r--r--keyboards/dtisaac/dosa40rgb/rules.mk2
-rw-r--r--keyboards/handwired/42/rules.mk2
-rw-r--r--keyboards/handwired/bdn9_ble/rules.mk2
-rw-r--r--keyboards/handwired/fruity60/rules.mk2
-rw-r--r--keyboards/handwired/prkl30/feather/rules.mk2
-rw-r--r--keyboards/handwired/promethium/keymaps/default/keymap.c6
-rw-r--r--keyboards/handwired/promethium/keymaps/priyadi/keymap.c6
-rw-r--r--keyboards/handwired/promethium/promethium.c4
-rw-r--r--keyboards/handwired/promethium/rules.mk2
-rw-r--r--keyboards/handwired/pterodactyl/rules.mk2
-rw-r--r--keyboards/handwired/slash/rules.mk2
-rw-r--r--keyboards/latin47ble/rules.mk2
-rw-r--r--keyboards/latin64ble/rules.mk2
-rw-r--r--keyboards/latinpadble/rules.mk2
-rw-r--r--keyboards/meira/featherble/rules.mk2
-rw-r--r--keyboards/nek_type_a/rules.mk2
-rw-r--r--keyboards/spaceman/pancake/rev1/feather/rules.mk2
-rw-r--r--keyboards/tokyokeyboard/alix40/rules.mk2
-rw-r--r--tmk_core/protocol/lufa/lufa.c30
-rw-r--r--users/wanleg/rules.mk2
35 files changed, 109 insertions, 109 deletions
diff --git a/common_features.mk b/common_features.mk
index e00f95f8e4..d3da487e69 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -717,7 +717,7 @@ ifeq ($(strip $(USBPD_ENABLE)), yes)
717endif 717endif
718 718
719BLUETOOTH_ENABLE ?= no 719BLUETOOTH_ENABLE ?= no
720VALID_BLUETOOTH_DRIVER_TYPES := AdafruitBLE RN42 custom 720VALID_BLUETOOTH_DRIVER_TYPES := BluefruitLE RN42 custom
721ifeq ($(strip $(BLUETOOTH_ENABLE)), yes) 721ifeq ($(strip $(BLUETOOTH_ENABLE)), yes)
722 ifeq ($(filter $(strip $(BLUETOOTH_DRIVER)),$(VALID_BLUETOOTH_DRIVER_TYPES)),) 722 ifeq ($(filter $(strip $(BLUETOOTH_DRIVER)),$(VALID_BLUETOOTH_DRIVER_TYPES)),)
723 $(error "$(BLUETOOTH_DRIVER)" is not a valid Bluetooth driver type) 723 $(error "$(BLUETOOTH_DRIVER)" is not a valid Bluetooth driver type)
@@ -727,15 +727,15 @@ ifeq ($(strip $(BLUETOOTH_ENABLE)), yes)
727 COMMON_VPATH += $(DRIVER_PATH)/bluetooth 727 COMMON_VPATH += $(DRIVER_PATH)/bluetooth
728 SRC += outputselect.c 728 SRC += outputselect.c
729 729
730 ifeq ($(strip $(BLUETOOTH_DRIVER)), AdafruitBLE) 730 ifeq ($(strip $(BLUETOOTH_DRIVER)), BluefruitLE)
731 OPT_DEFS += -DMODULE_ADAFRUIT_BLE 731 OPT_DEFS += -DBLUETOOTH_BLUEFRUIT_LE
732 SRC += analog.c 732 SRC += analog.c
733 SRC += $(DRIVER_PATH)/bluetooth/adafruit_ble.cpp 733 SRC += $(DRIVER_PATH)/bluetooth/bluefruit_le.cpp
734 QUANTUM_LIB_SRC += spi_master.c 734 QUANTUM_LIB_SRC += spi_master.c
735 endif 735 endif
736 736
737 ifeq ($(strip $(BLUETOOTH_DRIVER)), RN42) 737 ifeq ($(strip $(BLUETOOTH_DRIVER)), RN42)
738 OPT_DEFS += -DMODULE_RN42 738 OPT_DEFS += -DBLUETOOTH_RN42
739 SRC += $(DRIVER_PATH)/bluetooth/rn42.c 739 SRC += $(DRIVER_PATH)/bluetooth/rn42.c
740 QUANTUM_LIB_SRC += uart.c 740 QUANTUM_LIB_SRC += uart.c
741 endif 741 endif
diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema
index 547df94d1f..132484b708 100644
--- a/data/schemas/keyboard.jsonschema
+++ b/data/schemas/keyboard.jsonschema
@@ -45,7 +45,7 @@
45 "properties": { 45 "properties": {
46 "driver": { 46 "driver": {
47 "type": "string", 47 "type": "string",
48 "enum": ["AdafruitBLE", "RN42"] 48 "enum": ["BluefruitLE", "RN42"]
49 }, 49 },
50 "lto": {"type": "boolean"}, 50 "lto": {"type": "boolean"},
51 } 51 }
diff --git a/docs/config_options.md b/docs/config_options.md
index 7657fae02e..832af78b22 100644
--- a/docs/config_options.md
+++ b/docs/config_options.md
@@ -429,8 +429,8 @@ Use these to enable or disable building certain features. The more you have enab
429 * MIDI controls 429 * MIDI controls
430* `UNICODE_ENABLE` 430* `UNICODE_ENABLE`
431 * Unicode 431 * Unicode
432* `BLUETOOTH` 432* `BLUETOOTH_ENABLE`
433 * Current options are AdafruitBLE, RN42 433 * Current options are BluefruitLE, RN42
434* `SPLIT_KEYBOARD` 434* `SPLIT_KEYBOARD`
435 * Enables split keyboard support (dual MCU like the let's split and bakingpy's boards) and includes all necessary files located at quantum/split_common 435 * Enables split keyboard support (dual MCU like the let's split and bakingpy's boards) and includes all necessary files located at quantum/split_common
436* `CUSTOM_MATRIX` 436* `CUSTOM_MATRIX`
diff --git a/docs/feature_bluetooth.md b/docs/feature_bluetooth.md
index f6fb02d948..d4ed494053 100644
--- a/docs/feature_bluetooth.md
+++ b/docs/feature_bluetooth.md
@@ -7,7 +7,7 @@ Currently Bluetooth support is limited to AVR based chips. For Bluetooth 2.1, QM
7|Board |Bluetooth Protocol |Connection Type|rules.mk |Bluetooth Chip| 7|Board |Bluetooth Protocol |Connection Type|rules.mk |Bluetooth Chip|
8|----------------------------------------------------------------|--------------------|---------------|--------------------------------|--------------| 8|----------------------------------------------------------------|--------------------|---------------|--------------------------------|--------------|
9|Roving Networks RN-42 (Sparkfun Bluesmirf) |Bluetooth Classic |UART |`BLUETOOTH_DRIVER = RN42` |RN-42 | 9|Roving Networks RN-42 (Sparkfun Bluesmirf) |Bluetooth Classic |UART |`BLUETOOTH_DRIVER = RN42` |RN-42 |
10|[Bluefruit LE SPI Friend](https://www.adafruit.com/product/2633)|Bluetooth Low Energy|SPI |`BLUETOOTH_DRIVER = AdafruitBLE`|nRF51822 | 10|[Bluefruit LE SPI Friend](https://www.adafruit.com/product/2633)|Bluetooth Low Energy|SPI |`BLUETOOTH_DRIVER = BluefruitLE`|nRF51822 |
11 11
12Not Supported Yet but possible: 12Not Supported Yet but possible:
13* [Bluefruit LE UART Friend](https://www.adafruit.com/product/2479). [Possible tmk implementation found in](https://github.com/tmk/tmk_keyboard/issues/514) 13* [Bluefruit LE UART Friend](https://www.adafruit.com/product/2479). [Possible tmk implementation found in](https://github.com/tmk/tmk_keyboard/issues/514)
@@ -17,9 +17,9 @@ Not Supported Yet but possible:
17 17
18### Adafruit BLE SPI Friend 18### Adafruit BLE SPI Friend
19Currently The only bluetooth chipset supported by QMK is the Adafruit Bluefruit SPI Friend. It's a Nordic nRF51822 based chip running Adafruit's custom firmware. Data is transmitted via Adafruit's SDEP over Hardware SPI. The [Feather 32u4 Bluefruit LE](https://www.adafruit.com/product/2829) is supported as it's an AVR mcu connected via SPI to the Nordic BLE chip with Adafruit firmware. If Building a custom board with the SPI friend it would be easiest to just use the pin selection that the 32u4 feather uses but you can change the pins in the config.h options with the following defines: 19Currently The only bluetooth chipset supported by QMK is the Adafruit Bluefruit SPI Friend. It's a Nordic nRF51822 based chip running Adafruit's custom firmware. Data is transmitted via Adafruit's SDEP over Hardware SPI. The [Feather 32u4 Bluefruit LE](https://www.adafruit.com/product/2829) is supported as it's an AVR mcu connected via SPI to the Nordic BLE chip with Adafruit firmware. If Building a custom board with the SPI friend it would be easiest to just use the pin selection that the 32u4 feather uses but you can change the pins in the config.h options with the following defines:
20* `#define ADAFRUIT_BLE_RST_PIN D4` 20* `#define BLUEFRUIT_LE_RST_PIN D4`
21* `#define ADAFRUIT_BLE_CS_PIN B4` 21* `#define BLUEFRUIT_LE_CS_PIN B4`
22* `#define ADAFRUIT_BLE_IRQ_PIN E6` 22* `#define BLUEFRUIT_LE_IRQ_PIN E6`
23 23
24A Bluefruit UART friend can be converted to an SPI friend, however this [requires](https://github.com/qmk/qmk_firmware/issues/2274) some reflashing and soldering directly to the MDBT40 chip. 24A Bluefruit UART friend can be converted to an SPI friend, however this [requires](https://github.com/qmk/qmk_firmware/issues/2274) some reflashing and soldering directly to the MDBT40 chip.
25 25
@@ -32,7 +32,7 @@ Add the following to your `rules.mk`:
32 32
33```make 33```make
34BLUETOOTH_ENABLE = yes 34BLUETOOTH_ENABLE = yes
35BLUETOOTH_DRIVER = AdafruitBLE # or RN42 35BLUETOOTH_DRIVER = BluefruitLE # or RN42
36``` 36```
37 37
38## Bluetooth Keycodes 38## Bluetooth Keycodes
diff --git a/drivers/bluetooth/adafruit_ble.cpp b/drivers/bluetooth/bluefruit_le.cpp
index 34a780e9a5..86581a1a48 100644
--- a/drivers/bluetooth/adafruit_ble.cpp
+++ b/drivers/bluetooth/bluefruit_le.cpp
@@ -1,4 +1,4 @@
1#include "adafruit_ble.h" 1#include "bluefruit_le.h"
2 2
3#include <stdio.h> 3#include <stdio.h>
4#include <stdlib.h> 4#include <stdlib.h>
@@ -16,20 +16,20 @@
16// These are the pin assignments for the 32u4 boards. 16// These are the pin assignments for the 32u4 boards.
17// You may define them to something else in your config.h 17// You may define them to something else in your config.h
18// if yours is wired up differently. 18// if yours is wired up differently.
19#ifndef ADAFRUIT_BLE_RST_PIN 19#ifndef BLUEFRUIT_LE_RST_PIN
20# define ADAFRUIT_BLE_RST_PIN D4 20# define BLUEFRUIT_LE_RST_PIN D4
21#endif 21#endif
22 22
23#ifndef ADAFRUIT_BLE_CS_PIN 23#ifndef BLUEFRUIT_LE_CS_PIN
24# define ADAFRUIT_BLE_CS_PIN B4 24# define BLUEFRUIT_LE_CS_PIN B4
25#endif 25#endif
26 26
27#ifndef ADAFRUIT_BLE_IRQ_PIN 27#ifndef BLUEFRUIT_LE_IRQ_PIN
28# define ADAFRUIT_BLE_IRQ_PIN E6 28# define BLUEFRUIT_LE_IRQ_PIN E6
29#endif 29#endif
30 30
31#ifndef ADAFRUIT_BLE_SCK_DIVISOR 31#ifndef BLUEFRUIT_LE_SCK_DIVISOR
32# define ADAFRUIT_BLE_SCK_DIVISOR 2 // 4MHz SCK/8MHz CPU, calculated for Feather 32U4 BLE 32# define BLUEFRUIT_LE_SCK_DIVISOR 2 // 4MHz SCK/8MHz CPU, calculated for Feather 32U4 BLE
33#endif 33#endif
34 34
35#define SAMPLE_BATTERY 35#define SAMPLE_BATTERY
@@ -143,7 +143,7 @@ static bool at_command_P(const char *cmd, char *resp, uint16_t resplen, bool ver
143 143
144// Send a single SDEP packet 144// Send a single SDEP packet
145static bool sdep_send_pkt(const struct sdep_msg *msg, uint16_t timeout) { 145static bool sdep_send_pkt(const struct sdep_msg *msg, uint16_t timeout) {
146 spi_start(ADAFRUIT_BLE_CS_PIN, false, 0, ADAFRUIT_BLE_SCK_DIVISOR); 146 spi_start(BLUEFRUIT_LE_CS_PIN, false, 0, BLUEFRUIT_LE_SCK_DIVISOR);
147 uint16_t timerStart = timer_read(); 147 uint16_t timerStart = timer_read();
148 bool success = false; 148 bool success = false;
149 bool ready = false; 149 bool ready = false;
@@ -157,7 +157,7 @@ static bool sdep_send_pkt(const struct sdep_msg *msg, uint16_t timeout) {
157 // Release it and let it initialize 157 // Release it and let it initialize
158 spi_stop(); 158 spi_stop();
159 wait_us(SdepBackOff); 159 wait_us(SdepBackOff);
160 spi_start(ADAFRUIT_BLE_CS_PIN, false, 0, ADAFRUIT_BLE_SCK_DIVISOR); 160 spi_start(BLUEFRUIT_LE_CS_PIN, false, 0, BLUEFRUIT_LE_SCK_DIVISOR);
161 } while (timer_elapsed(timerStart) < timeout); 161 } while (timer_elapsed(timerStart) < timeout);
162 162
163 if (ready) { 163 if (ready) {
@@ -190,7 +190,7 @@ static bool sdep_recv_pkt(struct sdep_msg *msg, uint16_t timeout) {
190 bool ready = false; 190 bool ready = false;
191 191
192 do { 192 do {
193 ready = readPin(ADAFRUIT_BLE_IRQ_PIN); 193 ready = readPin(BLUEFRUIT_LE_IRQ_PIN);
194 if (ready) { 194 if (ready) {
195 break; 195 break;
196 } 196 }
@@ -198,7 +198,7 @@ static bool sdep_recv_pkt(struct sdep_msg *msg, uint16_t timeout) {
198 } while (timer_elapsed(timerStart) < timeout); 198 } while (timer_elapsed(timerStart) < timeout);
199 199
200 if (ready) { 200 if (ready) {
201 spi_start(ADAFRUIT_BLE_CS_PIN, false, 0, ADAFRUIT_BLE_SCK_DIVISOR); 201 spi_start(BLUEFRUIT_LE_CS_PIN, false, 0, BLUEFRUIT_LE_SCK_DIVISOR);
202 202
203 do { 203 do {
204 // Read the command type, waiting for the data to be ready 204 // Read the command type, waiting for the data to be ready
@@ -207,7 +207,7 @@ static bool sdep_recv_pkt(struct sdep_msg *msg, uint16_t timeout) {
207 // Release it and let it initialize 207 // Release it and let it initialize
208 spi_stop(); 208 spi_stop();
209 wait_us(SdepBackOff); 209 wait_us(SdepBackOff);
210 spi_start(ADAFRUIT_BLE_CS_PIN, false, 0, ADAFRUIT_BLE_SCK_DIVISOR); 210 spi_start(BLUEFRUIT_LE_CS_PIN, false, 0, BLUEFRUIT_LE_SCK_DIVISOR);
211 continue; 211 continue;
212 } 212 }
213 213
@@ -233,7 +233,7 @@ static void resp_buf_read_one(bool greedy) {
233 return; 233 return;
234 } 234 }
235 235
236 if (readPin(ADAFRUIT_BLE_IRQ_PIN)) { 236 if (readPin(BLUEFRUIT_LE_IRQ_PIN)) {
237 struct sdep_msg msg; 237 struct sdep_msg msg;
238 238
239 again: 239 again:
@@ -244,7 +244,7 @@ static void resp_buf_read_one(bool greedy) {
244 dprintf("recv latency %dms\n", TIMER_DIFF_16(timer_read(), last_send)); 244 dprintf("recv latency %dms\n", TIMER_DIFF_16(timer_read(), last_send));
245 } 245 }
246 246
247 if (greedy && resp_buf.peek(last_send) && readPin(ADAFRUIT_BLE_IRQ_PIN)) { 247 if (greedy && resp_buf.peek(last_send) && readPin(BLUEFRUIT_LE_IRQ_PIN)) {
248 goto again; 248 goto again;
249 } 249 }
250 } 250 }
@@ -295,16 +295,16 @@ static bool ble_init(void) {
295 state.configured = false; 295 state.configured = false;
296 state.is_connected = false; 296 state.is_connected = false;
297 297
298 setPinInput(ADAFRUIT_BLE_IRQ_PIN); 298 setPinInput(BLUEFRUIT_LE_IRQ_PIN);
299 299
300 spi_init(); 300 spi_init();
301 301
302 // Perform a hardware reset 302 // Perform a hardware reset
303 setPinOutput(ADAFRUIT_BLE_RST_PIN); 303 setPinOutput(BLUEFRUIT_LE_RST_PIN);
304 writePinHigh(ADAFRUIT_BLE_RST_PIN); 304 writePinHigh(BLUEFRUIT_LE_RST_PIN);
305 writePinLow(ADAFRUIT_BLE_RST_PIN); 305 writePinLow(BLUEFRUIT_LE_RST_PIN);
306 wait_ms(10); 306 wait_ms(10);
307 writePinHigh(ADAFRUIT_BLE_RST_PIN); 307 writePinHigh(BLUEFRUIT_LE_RST_PIN);
308 308
309 wait_ms(1000); // Give it a second to initialize 309 wait_ms(1000); // Give it a second to initialize
310 310
@@ -424,9 +424,9 @@ bool at_command_P(const char *cmd, char *resp, uint16_t resplen, bool verbose) {
424 return at_command(cmdbuf, resp, resplen, verbose); 424 return at_command(cmdbuf, resp, resplen, verbose);
425} 425}
426 426
427bool adafruit_ble_is_connected(void) { return state.is_connected; } 427bool bluefruit_le_is_connected(void) { return state.is_connected; }
428 428
429bool adafruit_ble_enable_keyboard(void) { 429bool bluefruit_le_enable_keyboard(void) {
430 char resbuf[128]; 430 char resbuf[128];
431 431
432 if (!state.initialized && !ble_init()) { 432 if (!state.initialized && !ble_init()) {
@@ -498,16 +498,16 @@ static void set_connected(bool connected) {
498 } 498 }
499} 499}
500 500
501void adafruit_ble_task(void) { 501void bluefruit_le_task(void) {
502 char resbuf[48]; 502 char resbuf[48];
503 503
504 if (!state.configured && !adafruit_ble_enable_keyboard()) { 504 if (!state.configured && !bluefruit_le_enable_keyboard()) {
505 return; 505 return;
506 } 506 }
507 resp_buf_read_one(true); 507 resp_buf_read_one(true);
508 send_buf_send_one(SdepShortTimeout); 508 send_buf_send_one(SdepShortTimeout);
509 509
510 if (resp_buf.empty() && (state.event_flags & UsingEvents) && readPin(ADAFRUIT_BLE_IRQ_PIN)) { 510 if (resp_buf.empty() && (state.event_flags & UsingEvents) && readPin(BLUEFRUIT_LE_IRQ_PIN)) {
511 // Must be an event update 511 // Must be an event update
512 if (at_command_P(PSTR("AT+EVENTSTATUS"), resbuf, sizeof(resbuf))) { 512 if (at_command_P(PSTR("AT+EVENTSTATUS"), resbuf, sizeof(resbuf))) {
513 uint32_t mask = strtoul(resbuf, NULL, 16); 513 uint32_t mask = strtoul(resbuf, NULL, 16);
@@ -609,7 +609,7 @@ static bool process_queue_item(struct queue_item *item, uint16_t timeout) {
609 } 609 }
610} 610}
611 611
612void adafruit_ble_send_keys(uint8_t hid_modifier_mask, uint8_t *keys, uint8_t nkeys) { 612void bluefruit_le_send_keys(uint8_t hid_modifier_mask, uint8_t *keys, uint8_t nkeys) {
613 struct queue_item item; 613 struct queue_item item;
614 bool didWait = false; 614 bool didWait = false;
615 615
@@ -643,7 +643,7 @@ void adafruit_ble_send_keys(uint8_t hid_modifier_mask, uint8_t *keys, uint8_t nk
643 } 643 }
644} 644}
645 645
646void adafruit_ble_send_consumer_key(uint16_t usage) { 646void bluefruit_le_send_consumer_key(uint16_t usage) {
647 struct queue_item item; 647 struct queue_item item;
648 648
649 item.queue_type = QTConsumer; 649 item.queue_type = QTConsumer;
@@ -655,7 +655,7 @@ void adafruit_ble_send_consumer_key(uint16_t usage) {
655} 655}
656 656
657#ifdef MOUSE_ENABLE 657#ifdef MOUSE_ENABLE
658void adafruit_ble_send_mouse_move(int8_t x, int8_t y, int8_t scroll, int8_t pan, uint8_t buttons) { 658void bluefruit_le_send_mouse_move(int8_t x, int8_t y, int8_t scroll, int8_t pan, uint8_t buttons) {
659 struct queue_item item; 659 struct queue_item item;
660 660
661 item.queue_type = QTMouseMove; 661 item.queue_type = QTMouseMove;
@@ -671,9 +671,9 @@ void adafruit_ble_send_mouse_move(int8_t x, int8_t y, int8_t scroll, int8_t pan,
671} 671}
672#endif 672#endif
673 673
674uint32_t adafruit_ble_read_battery_voltage(void) { return state.vbat; } 674uint32_t bluefruit_le_read_battery_voltage(void) { return state.vbat; }
675 675
676bool adafruit_ble_set_mode_leds(bool on) { 676bool bluefruit_le_set_mode_leds(bool on) {
677 if (!state.configured) { 677 if (!state.configured) {
678 return false; 678 return false;
679 } 679 }
@@ -689,7 +689,7 @@ bool adafruit_ble_set_mode_leds(bool on) {
689} 689}
690 690
691// https://learn.adafruit.com/adafruit-feather-32u4-bluefruit-le/ble-generic#at-plus-blepowerlevel 691// https://learn.adafruit.com/adafruit-feather-32u4-bluefruit-le/ble-generic#at-plus-blepowerlevel
692bool adafruit_ble_set_power_level(int8_t level) { 692bool bluefruit_le_set_power_level(int8_t level) {
693 char cmd[46]; 693 char cmd[46];
694 if (!state.configured) { 694 if (!state.configured) {
695 return false; 695 return false;
diff --git a/drivers/bluetooth/adafruit_ble.h b/drivers/bluetooth/bluefruit_le.h
index b43e0771d9..de301c6167 100644
--- a/drivers/bluetooth/adafruit_ble.h
+++ b/drivers/bluetooth/bluefruit_le.h
@@ -16,43 +16,43 @@ extern "C" {
16#endif 16#endif
17 17
18/* Instruct the module to enable HID keyboard support and reset */ 18/* Instruct the module to enable HID keyboard support and reset */
19extern bool adafruit_ble_enable_keyboard(void); 19extern bool bluefruit_le_enable_keyboard(void);
20 20
21/* Query to see if the BLE module is connected */ 21/* Query to see if the BLE module is connected */
22extern bool adafruit_ble_query_is_connected(void); 22extern bool bluefruit_le_query_is_connected(void);
23 23
24/* Returns true if we believe that the BLE module is connected. 24/* Returns true if we believe that the BLE module is connected.
25 * This uses our cached understanding that is maintained by 25 * This uses our cached understanding that is maintained by
26 * calling ble_task() periodically. */ 26 * calling ble_task() periodically. */
27extern bool adafruit_ble_is_connected(void); 27extern bool bluefruit_le_is_connected(void);
28 28
29/* Call this periodically to process BLE-originated things */ 29/* Call this periodically to process BLE-originated things */
30extern void adafruit_ble_task(void); 30extern void bluefruit_le_task(void);
31 31
32/* Generates keypress events for a set of keys. 32/* Generates keypress events for a set of keys.
33 * The hid modifier mask specifies the state of the modifier keys for 33 * The hid modifier mask specifies the state of the modifier keys for
34 * this set of keys. 34 * this set of keys.
35 * Also sends a key release indicator, so that the keys do not remain 35 * Also sends a key release indicator, so that the keys do not remain
36 * held down. */ 36 * held down. */
37extern void adafruit_ble_send_keys(uint8_t hid_modifier_mask, uint8_t *keys, uint8_t nkeys); 37extern void bluefruit_le_send_keys(uint8_t hid_modifier_mask, uint8_t *keys, uint8_t nkeys);
38 38
39/* Send a consumer usage. 39/* Send a consumer usage.
40 * (milliseconds) */ 40 * (milliseconds) */
41extern void adafruit_ble_send_consumer_key(uint16_t usage); 41extern void bluefruit_le_send_consumer_key(uint16_t usage);
42 42
43#ifdef MOUSE_ENABLE 43#ifdef MOUSE_ENABLE
44/* Send a mouse/wheel movement report. 44/* Send a mouse/wheel movement report.
45 * The parameters are signed and indicate positive or negative direction 45 * The parameters are signed and indicate positive or negative direction
46 * change. */ 46 * change. */
47extern void adafruit_ble_send_mouse_move(int8_t x, int8_t y, int8_t scroll, int8_t pan, uint8_t buttons); 47extern void bluefruit_le_send_mouse_move(int8_t x, int8_t y, int8_t scroll, int8_t pan, uint8_t buttons);
48#endif 48#endif
49 49
50/* Compute battery voltage by reading an analog pin. 50/* Compute battery voltage by reading an analog pin.
51 * Returns the integer number of millivolts */ 51 * Returns the integer number of millivolts */
52extern uint32_t adafruit_ble_read_battery_voltage(void); 52extern uint32_t bluefruit_le_read_battery_voltage(void);
53 53
54extern bool adafruit_ble_set_mode_leds(bool on); 54extern bool bluefruit_le_set_mode_leds(bool on);
55extern bool adafruit_ble_set_power_level(int8_t level); 55extern bool bluefruit_le_set_power_level(int8_t level);
56 56
57#ifdef __cplusplus 57#ifdef __cplusplus
58} 58}
diff --git a/drivers/bluetooth/outputselect.c b/drivers/bluetooth/outputselect.c
index f758c65280..cdd2e64cfd 100644
--- a/drivers/bluetooth/outputselect.c
+++ b/drivers/bluetooth/outputselect.c
@@ -18,8 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
18# include "lufa.h" 18# include "lufa.h"
19#endif 19#endif
20 20
21#ifdef MODULE_ADAFRUIT_BLE 21#ifdef BLUETOOTH_BLUEFRUIT_LE
22# include "adafruit_ble.h" 22# include "bluefruit_le.h"
23#endif 23#endif
24 24
25uint8_t desired_output = OUTPUT_DEFAULT; 25uint8_t desired_output = OUTPUT_DEFAULT;
@@ -54,8 +54,8 @@ uint8_t auto_detect_output(void) {
54 return OUTPUT_USB; 54 return OUTPUT_USB;
55 } 55 }
56 56
57#ifdef MODULE_ADAFRUIT_BLE 57#ifdef BLUETOOTH_BLUEFRUIT_LE
58 if (adafruit_ble_is_connected()) { 58 if (bluefruit_le_is_connected()) {
59 return OUTPUT_BLUETOOTH; 59 return OUTPUT_BLUETOOTH;
60 } 60 }
61#endif 61#endif
diff --git a/keyboards/10bleoledhub/rules.mk b/keyboards/10bleoledhub/rules.mk
index 33170c43a2..bd10e11022 100644
--- a/keyboards/10bleoledhub/rules.mk
+++ b/keyboards/10bleoledhub/rules.mk
@@ -20,7 +20,7 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow 20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21AUDIO_ENABLE = no # Audio output 21AUDIO_ENABLE = no # Audio output
22BLUETOOTH_ENABLE = yes 22BLUETOOTH_ENABLE = yes
23BLUETOOTH_DRIVER = AdafruitBLE 23BLUETOOTH_DRIVER = BluefruitLE
24OLED_ENABLE = yes 24OLED_ENABLE = yes
25OLED_DRIVER = SSD1306 25OLED_DRIVER = SSD1306
26ENCODER_ENABLE = yes 26ENCODER_ENABLE = yes
diff --git a/keyboards/40percentclub/mf68/keymaps/mf68_ble/rules.mk b/keyboards/40percentclub/mf68/keymaps/mf68_ble/rules.mk
index 160b3684b3..975c581883 100644
--- a/keyboards/40percentclub/mf68/keymaps/mf68_ble/rules.mk
+++ b/keyboards/40percentclub/mf68/keymaps/mf68_ble/rules.mk
@@ -5,5 +5,5 @@ F_CPU = 8000000
5# change yes to no to disable 5# change yes to no to disable
6# 6#
7BLUETOOTH_ENABLE = yes 7BLUETOOTH_ENABLE = yes
8BLUETOOTH_DRIVER = AdafruitBLE 8BLUETOOTH_DRIVER = BluefruitLE
9BACKLIGHT_ENABLE = no 9BACKLIGHT_ENABLE = no
diff --git a/keyboards/atreus/feather/rules.mk b/keyboards/atreus/feather/rules.mk
index ad0b4a5046..6280275c1e 100644
--- a/keyboards/atreus/feather/rules.mk
+++ b/keyboards/atreus/feather/rules.mk
@@ -11,5 +11,5 @@ BOOTLOADER = caterina
11# change yes to no to disable 11# change yes to no to disable
12# 12#
13BLUETOOTH_ENABLE = yes 13BLUETOOTH_ENABLE = yes
14BLUETOOTH_DRIVER = AdafruitBLE 14BLUETOOTH_DRIVER = BluefruitLE
15CONSOLE_ENABLE = no 15CONSOLE_ENABLE = no
diff --git a/keyboards/bioi/main.c b/keyboards/bioi/main.c
index 7c8922c0a0..54caf6937b 100644
--- a/keyboards/bioi/main.c
+++ b/keyboards/bioi/main.c
@@ -45,8 +45,8 @@ extern keymap_config_t keymap_config;
45#endif 45#endif
46 46
47#ifdef BLUETOOTH_ENABLE 47#ifdef BLUETOOTH_ENABLE
48#ifdef MODULE_ADAFRUIT_BLE 48#ifdef BLUETOOTH_BLUEFRUIT_LE
49#include "adafruit_ble.h" 49#include "bluefruit_le.h"
50#else 50#else
51#include "bluetooth.h" 51#include "bluetooth.h"
52#endif 52#endif
@@ -319,7 +319,7 @@ int main(void)
319 setup_usb(); 319 setup_usb();
320 sei(); 320 sei();
321 321
322#if defined(MODULE_ADAFRUIT_EZKEY) || defined(MODULE_RN42) 322#if defined(BLUETOOTH_RN42)
323 serial_init(); 323 serial_init();
324#endif 324#endif
325 325
diff --git a/keyboards/converter/m0110_usb/readme.md b/keyboards/converter/m0110_usb/readme.md
index a148091cd9..d066aa5a7c 100644
--- a/keyboards/converter/m0110_usb/readme.md
+++ b/keyboards/converter/m0110_usb/readme.md
@@ -5,7 +5,7 @@ This is a port of the original M0110 converter from TMK to QMK. The original con
5 5
6## Enabling Bluetooth for the Adafruit Feather 32U4 BLE 6## Enabling Bluetooth for the Adafruit Feather 32U4 BLE
7 7
8Simply add `BLUETOOTH = AdafruitBLE` to your `rules.mk` file. This enables code specifically for the Adafruit Feather 32U4 BLE. If enabled, the device will use the `PRODUCT` value from `config.h` for the device name displayed by the Feather on host devices. You can simply change these values to change the device name. 8Simply add `BLUETOOTH = BluefruitLE` to your `rules.mk` file. This enables code specifically for the Adafruit Feather 32U4 BLE. If enabled, the device will use the `PRODUCT` value from `config.h` for the device name displayed by the Feather on host devices. You can simply change these values to change the device name.
9 9
10 10
11## Pins 11## Pins
diff --git a/keyboards/converter/usb_usb/ble/config.h b/keyboards/converter/usb_usb/ble/config.h
index 80e4968c41..92df24d003 100644
--- a/keyboards/converter/usb_usb/ble/config.h
+++ b/keyboards/converter/usb_usb/ble/config.h
@@ -4,8 +4,8 @@
4#define PRODUCT QMK BLE Adapter 4#define PRODUCT QMK BLE Adapter
5 5
6// Turn off the mode leds on the BLE module 6// Turn off the mode leds on the BLE module
7#define ADAFRUIT_BLE_ENABLE_MODE_LEDS 0 7#define BLUEFRUIT_LE_ENABLE_MODE_LEDS 0
8#define ADAFRUIT_BLE_ENABLE_POWER_LED 0 8#define BLUEFRUIT_LE_ENABLE_POWER_LED 0
9 9
10#define NO_ACTION_MACRO 10#define NO_ACTION_MACRO
11#define NO_ACTION_FUNCTION 11#define NO_ACTION_FUNCTION
diff --git a/keyboards/converter/usb_usb/ble/rules.mk b/keyboards/converter/usb_usb/ble/rules.mk
index 596f719630..df5bc36635 100644
--- a/keyboards/converter/usb_usb/ble/rules.mk
+++ b/keyboards/converter/usb_usb/ble/rules.mk
@@ -12,6 +12,6 @@ RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
12AUDIO_ENABLE = no # Audio output 12AUDIO_ENABLE = no # Audio output
13 13
14BLUETOOTH_ENABLE = yes 14BLUETOOTH_ENABLE = yes
15BLUETOOTH_DRIVER = AdafruitBLE 15BLUETOOTH_DRIVER = BluefruitLE
16 16
17LTO_ENABLE = yes 17LTO_ENABLE = yes
diff --git a/keyboards/dtisaac/dosa40rgb/readme.md b/keyboards/dtisaac/dosa40rgb/readme.md
index 5f288c6b76..a2995a5c0f 100644
--- a/keyboards/dtisaac/dosa40rgb/readme.md
+++ b/keyboards/dtisaac/dosa40rgb/readme.md
@@ -5,7 +5,7 @@
5A 40 percent keyboard dosa40rgb Bluetooth Low Energy 5A 40 percent keyboard dosa40rgb Bluetooth Low Energy
6 6
7* Keyboard Maintainer: [DTIsaac](https://github.com/daotakisaac) 7* Keyboard Maintainer: [DTIsaac](https://github.com/daotakisaac)
8* Hardware Supported: ATmega32U4 + AdafruitBLE SPI 8* Hardware Supported: ATmega32U4 + Bluefruit LE SPI
9 9
10Make example for this keyboard (after setting up your build environment): 10Make example for this keyboard (after setting up your build environment):
11 11
diff --git a/keyboards/dtisaac/dosa40rgb/rules.mk b/keyboards/dtisaac/dosa40rgb/rules.mk
index 91d3c94ba5..caecba365e 100644
--- a/keyboards/dtisaac/dosa40rgb/rules.mk
+++ b/keyboards/dtisaac/dosa40rgb/rules.mk
@@ -17,7 +17,7 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow 17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output 18AUDIO_ENABLE = no # Audio output
19BLUETOOTH_ENABLE = yes # Enable Bluetooth 19BLUETOOTH_ENABLE = yes # Enable Bluetooth
20BLUETOOTH_DRIVER = AdafruitBLE 20BLUETOOTH_DRIVER = BluefruitLE
21RGB_MATRIX_ENABLE = yes 21RGB_MATRIX_ENABLE = yes
22RGB_MATRIX_DRIVER = WS2812 22RGB_MATRIX_DRIVER = WS2812
23 23
diff --git a/keyboards/handwired/42/rules.mk b/keyboards/handwired/42/rules.mk
index 5742e84bf5..655ce00bef 100644
--- a/keyboards/handwired/42/rules.mk
+++ b/keyboards/handwired/42/rules.mk
@@ -21,4 +21,4 @@ RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21AUDIO_ENABLE = no # Audio output 21AUDIO_ENABLE = no # Audio output
22 22
23BLUETOOTH_ENABLE = yes 23BLUETOOTH_ENABLE = yes
24BLUETOOTH_DRIVER = AdafruitBLE 24BLUETOOTH_DRIVER = BluefruitLE
diff --git a/keyboards/handwired/bdn9_ble/rules.mk b/keyboards/handwired/bdn9_ble/rules.mk
index e5abbcfb88..a3082cf364 100644
--- a/keyboards/handwired/bdn9_ble/rules.mk
+++ b/keyboards/handwired/bdn9_ble/rules.mk
@@ -21,4 +21,4 @@ RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21AUDIO_ENABLE = no # Audio output 21AUDIO_ENABLE = no # Audio output
22ENCODER_ENABLE = no 22ENCODER_ENABLE = no
23BLUETOOTH_ENABLE = yes 23BLUETOOTH_ENABLE = yes
24BLUETOOTH_DRIVER = AdafruitBLE 24BLUETOOTH_DRIVER = BluefruitLE
diff --git a/keyboards/handwired/fruity60/rules.mk b/keyboards/handwired/fruity60/rules.mk
index 74628e3e6f..c84f68f0bf 100644
--- a/keyboards/handwired/fruity60/rules.mk
+++ b/keyboards/handwired/fruity60/rules.mk
@@ -20,6 +20,6 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow 20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21AUDIO_ENABLE = no # Audio output 21AUDIO_ENABLE = no # Audio output
22BLUETOOTH_ENABLE = yes 22BLUETOOTH_ENABLE = yes
23BLUETOOTH_DRIVER = AdafruitBLE 23BLUETOOTH_DRIVER = BluefruitLE
24 24
25LAYOUTS = 60_tsangan_hhkb 25LAYOUTS = 60_tsangan_hhkb
diff --git a/keyboards/handwired/prkl30/feather/rules.mk b/keyboards/handwired/prkl30/feather/rules.mk
index f83173fa0b..7578dcef74 100644
--- a/keyboards/handwired/prkl30/feather/rules.mk
+++ b/keyboards/handwired/prkl30/feather/rules.mk
@@ -22,4 +22,4 @@ AUDIO_ENABLE = no # This can be enabled if a speaker is connected to t
22RGBLIGHT_ENABLE = no # This can be enabled if a ws2812 strip is connected to the expansion port. 22RGBLIGHT_ENABLE = no # This can be enabled if a ws2812 strip is connected to the expansion port.
23 23
24BLUETOOTH_ENABLE = yes 24BLUETOOTH_ENABLE = yes
25BLUETOOTH_DRIVER = AdafruitBLE 25BLUETOOTH_DRIVER = BluefruitLE
diff --git a/keyboards/handwired/promethium/keymaps/default/keymap.c b/keyboards/handwired/promethium/keymaps/default/keymap.c
index 14a293bb39..e12142c50b 100644
--- a/keyboards/handwired/promethium/keymaps/default/keymap.c
+++ b/keyboards/handwired/promethium/keymaps/default/keymap.c
@@ -137,7 +137,7 @@ enum planck_keycodes {
137#ifndef FAUXCLICKY_ENABLE 137#ifndef FAUXCLICKY_ENABLE
138 FC_TOG, 138 FC_TOG,
139#endif 139#endif
140#ifndef MODULE_ADAFRUIT_BLE 140#ifndef BLUETOOTH_BLUEFRUIT_LE
141 OUT_BT, 141 OUT_BT,
142#endif 142#endif
143 RGBDEMO, 143 RGBDEMO,
@@ -1261,7 +1261,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
1261} 1261}
1262 1262
1263void set_output_user(uint8_t output) { 1263void set_output_user(uint8_t output) {
1264#ifdef MODULE_ADAFRUIT_BLE 1264#ifdef BLUETOOTH_BLUEFRUIT_LE
1265 switch(output) { 1265 switch(output) {
1266 case OUTPUT_USB: 1266 case OUTPUT_USB:
1267 led_set_output_usb(); 1267 led_set_output_usb();
@@ -1285,7 +1285,7 @@ void matrix_init_user() {
1285#endif 1285#endif
1286 1286
1287 // auto detect output on init 1287 // auto detect output on init
1288#ifdef MODULE_ADAFRUIT_BLE 1288#ifdef BLUETOOTH_BLUEFRUIT_LE
1289 uint8_t output = auto_detect_output(); 1289 uint8_t output = auto_detect_output();
1290 if (output == OUTPUT_USB) { 1290 if (output == OUTPUT_USB) {
1291 set_output(OUTPUT_USB); 1291 set_output(OUTPUT_USB);
diff --git a/keyboards/handwired/promethium/keymaps/priyadi/keymap.c b/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
index 094eb15762..94b505aa2c 100644
--- a/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
+++ b/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
@@ -140,7 +140,7 @@ enum planck_keycodes {
140#ifndef FAUXCLICKY_ENABLE 140#ifndef FAUXCLICKY_ENABLE
141 FC_TOG, 141 FC_TOG,
142#endif 142#endif
143#ifndef MODULE_ADAFRUIT_BLE 143#ifndef BLUETOOTH_BLUEFRUIT_LE
144 OUT_BT, 144 OUT_BT,
145#endif 145#endif
146 RGBDEMO, 146 RGBDEMO,
@@ -1264,7 +1264,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
1264} 1264}
1265 1265
1266void set_output_user(uint8_t output) { 1266void set_output_user(uint8_t output) {
1267#ifdef MODULE_ADAFRUIT_BLE 1267#ifdef BLUETOOTH_BLUEFRUIT_LE
1268 switch(output) { 1268 switch(output) {
1269 case OUTPUT_USB: 1269 case OUTPUT_USB:
1270 led_set_output_usb(); 1270 led_set_output_usb();
@@ -1288,7 +1288,7 @@ void matrix_init_user() {
1288#endif 1288#endif
1289 1289
1290 // auto detect output on init 1290 // auto detect output on init
1291#ifdef MODULE_ADAFRUIT_BLE 1291#ifdef BLUETOOTH_BLUEFRUIT_LE
1292 uint8_t output = auto_detect_output(); 1292 uint8_t output = auto_detect_output();
1293 if (output == OUTPUT_USB) { 1293 if (output == OUTPUT_USB) {
1294 set_output(OUTPUT_USB); 1294 set_output(OUTPUT_USB);
diff --git a/keyboards/handwired/promethium/promethium.c b/keyboards/handwired/promethium/promethium.c
index 8eb1680d84..0df6c28e9b 100644
--- a/keyboards/handwired/promethium/promethium.c
+++ b/keyboards/handwired/promethium/promethium.c
@@ -3,7 +3,7 @@
3#include "timer.h" 3#include "timer.h"
4#include "matrix.h" 4#include "matrix.h"
5#include "musical_notes.h" 5#include "musical_notes.h"
6#include "adafruit_ble.h" 6#include "bluefruit_le.h"
7 7
8float fauxclicky_pressed_note[2] = MUSICAL_NOTE(_A4, 0.0625); 8float fauxclicky_pressed_note[2] = MUSICAL_NOTE(_A4, 0.0625);
9float fauxclicky_released_note[2] = MUSICAL_NOTE(_A4, 0.0625); 9float fauxclicky_released_note[2] = MUSICAL_NOTE(_A4, 0.0625);
@@ -12,7 +12,7 @@ float fauxclicky_beep_note[2] = MUSICAL_NOTE(_C6, 0.25);
12// cubic fit {3.3, 0}, {3.5, 2.9}, {3.6, 5}, {3.7, 8.6}, {3.8, 36}, {3.9, 62}, {4.0, 73}, {4.05, 83}, {4.1, 89}, {4.15, 94}, {4.2, 100} 12// cubic fit {3.3, 0}, {3.5, 2.9}, {3.6, 5}, {3.7, 8.6}, {3.8, 36}, {3.9, 62}, {4.0, 73}, {4.05, 83}, {4.1, 89}, {4.15, 94}, {4.2, 100}
13 13
14uint8_t battery_level(void) { 14uint8_t battery_level(void) {
15 float voltage = adafruit_ble_read_battery_voltage() * 2 * 3.3 / 1024; 15 float voltage = bluefruit_le_read_battery_voltage() * 2 * 3.3 / 1024;
16 if (voltage < MIN_VOLTAGE) return 0; 16 if (voltage < MIN_VOLTAGE) return 0;
17 if (voltage > MAX_VOLTAGE) return 255; 17 if (voltage > MAX_VOLTAGE) return 255;
18 return (voltage - MIN_VOLTAGE) / (MAX_VOLTAGE - MIN_VOLTAGE) * 255; 18 return (voltage - MIN_VOLTAGE) / (MAX_VOLTAGE - MIN_VOLTAGE) * 255;
diff --git a/keyboards/handwired/promethium/rules.mk b/keyboards/handwired/promethium/rules.mk
index f41e88b0c4..383800ee01 100644
--- a/keyboards/handwired/promethium/rules.mk
+++ b/keyboards/handwired/promethium/rules.mk
@@ -23,7 +23,7 @@ PS2_MOUSE_ENABLE = yes
23PS2_USE_INT = yes 23PS2_USE_INT = yes
24CUSTOM_MATRIX = yes 24CUSTOM_MATRIX = yes
25BLUETOOTH_ENABLE = yes 25BLUETOOTH_ENABLE = yes
26BLUETOOTH_DRIVER = AdafruitBLE 26BLUETOOTH_DRIVER = BluefruitLE
27 27
28SRC += ws2812.c 28SRC += ws2812.c
29SRC += rgbsps.c 29SRC += rgbsps.c
diff --git a/keyboards/handwired/pterodactyl/rules.mk b/keyboards/handwired/pterodactyl/rules.mk
index 629b30e385..fd63e2ad48 100644
--- a/keyboards/handwired/pterodactyl/rules.mk
+++ b/keyboards/handwired/pterodactyl/rules.mk
@@ -22,7 +22,7 @@ AUDIO_ENABLE = no # Audio output
22UNICODE_ENABLE = yes 22UNICODE_ENABLE = yes
23CUSTOM_MATRIX = yes 23CUSTOM_MATRIX = yes
24BLUETOOTH_ENABLE = yes 24BLUETOOTH_ENABLE = yes
25BLUETOOTH_DRIVER = AdafruitBLE 25BLUETOOTH_DRIVER = BluefruitLE
26 26
27SRC += matrix.c 27SRC += matrix.c
28QUANTUM_LIB_SRC += i2c_master.c 28QUANTUM_LIB_SRC += i2c_master.c
diff --git a/keyboards/handwired/slash/rules.mk b/keyboards/handwired/slash/rules.mk
index 275a2eb7eb..53d114978f 100644
--- a/keyboards/handwired/slash/rules.mk
+++ b/keyboards/handwired/slash/rules.mk
@@ -20,4 +20,4 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow 20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21AUDIO_ENABLE = no # Audio output 21AUDIO_ENABLE = no # Audio output
22BLUETOOTH_ENABLE = yes 22BLUETOOTH_ENABLE = yes
23BLUETOOTH_DRIVER = AdafruitBLE 23BLUETOOTH_DRIVER = BluefruitLE
diff --git a/keyboards/latin47ble/rules.mk b/keyboards/latin47ble/rules.mk
index 95044a18bd..015c454728 100644
--- a/keyboards/latin47ble/rules.mk
+++ b/keyboards/latin47ble/rules.mk
@@ -20,6 +20,6 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow 20RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
21AUDIO_ENABLE = no # Audio output 21AUDIO_ENABLE = no # Audio output
22BLUETOOTH_ENABLE = yes 22BLUETOOTH_ENABLE = yes
23BLUETOOTH_DRIVER = AdafruitBLE 23BLUETOOTH_DRIVER = BluefruitLE
24 24
25LAYOUTS = planck_mit 25LAYOUTS = planck_mit
diff --git a/keyboards/latin64ble/rules.mk b/keyboards/latin64ble/rules.mk
index 30f105ef49..97717333de 100644
--- a/keyboards/latin64ble/rules.mk
+++ b/keyboards/latin64ble/rules.mk
@@ -20,4 +20,4 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow 20RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
21AUDIO_ENABLE = no # Audio output 21AUDIO_ENABLE = no # Audio output
22BLUETOOTH_ENABLE = yes 22BLUETOOTH_ENABLE = yes
23BLUETOOTH_DRIVER = AdafruitBLE 23BLUETOOTH_DRIVER = BluefruitLE
diff --git a/keyboards/latinpadble/rules.mk b/keyboards/latinpadble/rules.mk
index aac9dde15f..06816c2ef8 100644
--- a/keyboards/latinpadble/rules.mk
+++ b/keyboards/latinpadble/rules.mk
@@ -21,7 +21,7 @@ RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
21AUDIO_ENABLE = no # Audio output 21AUDIO_ENABLE = no # Audio output
22 22
23BLUETOOTH_ENABLE = yes 23BLUETOOTH_ENABLE = yes
24BLUETOOTH_DRIVER = AdafruitBLE 24BLUETOOTH_DRIVER = BluefruitLE
25OLED_ENABLE = yes 25OLED_ENABLE = yes
26OLED_DRIVER = SSD1306 26OLED_DRIVER = SSD1306
27ENCODER_ENABLE = yes 27ENCODER_ENABLE = yes
diff --git a/keyboards/meira/featherble/rules.mk b/keyboards/meira/featherble/rules.mk
index d3e985e8c2..01f1af1ae8 100644
--- a/keyboards/meira/featherble/rules.mk
+++ b/keyboards/meira/featherble/rules.mk
@@ -2,4 +2,4 @@
2F_CPU = 8000000 2F_CPU = 8000000
3 3
4BLUETOOTH_ENABLE = yes 4BLUETOOTH_ENABLE = yes
5BLUETOOTH_DRIVER = AdafruitBLE 5BLUETOOTH_DRIVER = BluefruitLE
diff --git a/keyboards/nek_type_a/rules.mk b/keyboards/nek_type_a/rules.mk
index ea79c962da..0a8adccb52 100644
--- a/keyboards/nek_type_a/rules.mk
+++ b/keyboards/nek_type_a/rules.mk
@@ -22,6 +22,6 @@ AUDIO_ENABLE = no # Audio output
22CUSTOM_MATRIX = yes 22CUSTOM_MATRIX = yes
23DEBUG_ENABLE = yes 23DEBUG_ENABLE = yes
24BLUETOOTH_ENABLE = yes 24BLUETOOTH_ENABLE = yes
25BLUETOOTH_DRIVER = AdafruitBLE 25BLUETOOTH_DRIVER = BluefruitLE
26 26
27SRC += matrix.c mcp23017.c 27SRC += matrix.c mcp23017.c
diff --git a/keyboards/spaceman/pancake/rev1/feather/rules.mk b/keyboards/spaceman/pancake/rev1/feather/rules.mk
index 6530422734..c213c70872 100644
--- a/keyboards/spaceman/pancake/rev1/feather/rules.mk
+++ b/keyboards/spaceman/pancake/rev1/feather/rules.mk
@@ -20,7 +20,7 @@ BACKLIGHT_ENABLE = no # Custom backlighting code is used, so this should not b
20AUDIO_ENABLE = no # This can be enabled if a speaker is connected to the expansion port. Not compatible with RGBLIGHT below 20AUDIO_ENABLE = no # This can be enabled if a speaker is connected to the expansion port. Not compatible with RGBLIGHT below
21RGBLIGHT_ENABLE = no # This can be enabled if a ws2812 strip is connected to the expansion port. 21RGBLIGHT_ENABLE = no # This can be enabled if a ws2812 strip is connected to the expansion port.
22BLUETOOTH_ENABLE = yes 22BLUETOOTH_ENABLE = yes
23BLUETOOTH_DRIVER = AdafruitBLE 23BLUETOOTH_DRIVER = BluefruitLE
24 24
25LAYOUTS = ortho_4x12 planck_mit 25LAYOUTS = ortho_4x12 planck_mit
26 26
diff --git a/keyboards/tokyokeyboard/alix40/rules.mk b/keyboards/tokyokeyboard/alix40/rules.mk
index f9e5e2485a..358de97c5a 100644
--- a/keyboards/tokyokeyboard/alix40/rules.mk
+++ b/keyboards/tokyokeyboard/alix40/rules.mk
@@ -20,4 +20,4 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow 20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21AUDIO_ENABLE = no # Audio output 21AUDIO_ENABLE = no # Audio output
22BLUETOOTH_ENABLE = yes 22BLUETOOTH_ENABLE = yes
23BLUETOOTH_DRIVER = AdafruitBLE 23BLUETOOTH_DRIVER = BluefruitLE
diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c
index b9c2616058..3943f8c92b 100644
--- a/tmk_core/protocol/lufa/lufa.c
+++ b/tmk_core/protocol/lufa/lufa.c
@@ -67,9 +67,9 @@ extern keymap_config_t keymap_config;
67 67
68#ifdef BLUETOOTH_ENABLE 68#ifdef BLUETOOTH_ENABLE
69# include "outputselect.h" 69# include "outputselect.h"
70# ifdef MODULE_ADAFRUIT_BLE 70# ifdef BLUETOOTH_BLUEFRUIT_LE
71# include "adafruit_ble.h" 71# include "bluefruit_le.h"
72# elif MODULE_RN42 72# elif BLUETOOTH_RN42
73# include "rn42.h" 73# include "rn42.h"
74# endif 74# endif
75#endif 75#endif
@@ -645,9 +645,9 @@ static void send_keyboard(report_keyboard_t *report) {
645 645
646#ifdef BLUETOOTH_ENABLE 646#ifdef BLUETOOTH_ENABLE
647 if (where_to_send() == OUTPUT_BLUETOOTH) { 647 if (where_to_send() == OUTPUT_BLUETOOTH) {
648# ifdef MODULE_ADAFRUIT_BLE 648# ifdef BLUETOOTH_BLUEFRUIT_LE
649 adafruit_ble_send_keys(report->mods, report->keys, sizeof(report->keys)); 649 bluefruit_le_send_keys(report->mods, report->keys, sizeof(report->keys));
650# elif MODULE_RN42 650# elif BLUETOOTH_RN42
651 rn42_send_keyboard(report); 651 rn42_send_keyboard(report);
652# endif 652# endif
653 return; 653 return;
@@ -691,10 +691,10 @@ static void send_mouse(report_mouse_t *report) {
691 691
692# ifdef BLUETOOTH_ENABLE 692# ifdef BLUETOOTH_ENABLE
693 if (where_to_send() == OUTPUT_BLUETOOTH) { 693 if (where_to_send() == OUTPUT_BLUETOOTH) {
694# ifdef MODULE_ADAFRUIT_BLE 694# ifdef BLUETOOTH_BLUEFRUIT_LE
695 // FIXME: mouse buttons 695 // FIXME: mouse buttons
696 adafruit_ble_send_mouse_move(report->x, report->y, report->v, report->h, report->buttons); 696 bluefruit_le_send_mouse_move(report->x, report->y, report->v, report->h, report->buttons);
697# elif MODULE_RN42 697# elif BLUETOOTH_RN42
698 rn42_send_mouse(report); 698 rn42_send_mouse(report);
699# endif 699# endif
700 return; 700 return;
@@ -763,9 +763,9 @@ static void send_consumer(uint16_t data) {
763#ifdef EXTRAKEY_ENABLE 763#ifdef EXTRAKEY_ENABLE
764# ifdef BLUETOOTH_ENABLE 764# ifdef BLUETOOTH_ENABLE
765 if (where_to_send() == OUTPUT_BLUETOOTH) { 765 if (where_to_send() == OUTPUT_BLUETOOTH) {
766# ifdef MODULE_ADAFRUIT_BLE 766# ifdef BLUETOOTH_BLUEFRUIT_LE
767 adafruit_ble_send_consumer_key(data); 767 bluefruit_le_send_consumer_key(data);
768# elif MODULE_RN42 768# elif BLUETOOTH_RN42
769 rn42_send_consumer(data); 769 rn42_send_consumer(data);
770# endif 770# endif
771 return; 771 return;
@@ -1013,7 +1013,7 @@ void protocol_pre_init(void) {
1013 setup_usb(); 1013 setup_usb();
1014 sei(); 1014 sei();
1015 1015
1016#if defined(MODULE_RN42) 1016#if defined(BLUETOOTH_RN42)
1017 rn42_init(); 1017 rn42_init();
1018#endif 1018#endif
1019 1019
@@ -1066,8 +1066,8 @@ void protocol_post_task(void) {
1066 MIDI_Device_USBTask(&USB_MIDI_Interface); 1066 MIDI_Device_USBTask(&USB_MIDI_Interface);
1067#endif 1067#endif
1068 1068
1069#ifdef MODULE_ADAFRUIT_BLE 1069#ifdef BLUETOOTH_BLUEFRUIT_LE
1070 adafruit_ble_task(); 1070 bluefruit_le_task();
1071#endif 1071#endif
1072 1072
1073#ifdef VIRTSER_ENABLE 1073#ifdef VIRTSER_ENABLE
diff --git a/users/wanleg/rules.mk b/users/wanleg/rules.mk
index 410803512d..de4decf78a 100644
--- a/users/wanleg/rules.mk
+++ b/users/wanleg/rules.mk
@@ -22,7 +22,7 @@ ifeq ($(strip $(BT)), yes)
22 OPT_DEFS += -DBLUEFRUIT 22 OPT_DEFS += -DBLUEFRUIT
23 #Adafruit Bluefruit controller settings 23 #Adafruit Bluefruit controller settings
24 BLUETOOTH_ENABLE = yes 24 BLUETOOTH_ENABLE = yes
25 BLUETOOTH_DRIVER = AdafruitBLE 25 BLUETOOTH_DRIVER = BluefruitLE
26 F_CPU = 8000000 26 F_CPU = 8000000
27 CONSOLE_ENABLE = no # Console for debug(+400) 27 CONSOLE_ENABLE = no # Console for debug(+400)
28 COMMAND_ENABLE = no # Commands for debug and configuration 28 COMMAND_ENABLE = no # Commands for debug and configuration