diff options
| author | Drashna Jaelre <drashna@live.com> | 2018-09-28 07:00:11 -0700 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2018-09-28 10:47:20 -0400 |
| commit | 9ade35a9fedbc6e4e77f422ed5fb514348e754ad (patch) | |
| tree | e720f1af1f48d9e911fd7503c39dc5134889e0a7 | |
| parent | ebc143297c24bdd894340ffece2d93f15fbd5c1c (diff) | |
| download | qmk_firmware-9ade35a9fedbc6e4e77f422ed5fb514348e754ad.tar.gz qmk_firmware-9ade35a9fedbc6e4e77f422ed5fb514348e754ad.zip | |
Optimize size of USB_USB BLE Converter
| -rw-r--r-- | keyboards/converter/usb_usb/ble/config.h | 8 | ||||
| -rw-r--r-- | keyboards/converter/usb_usb/ble/rules.mk | 20 |
2 files changed, 24 insertions, 4 deletions
diff --git a/keyboards/converter/usb_usb/ble/config.h b/keyboards/converter/usb_usb/ble/config.h index 45aa778d5..5333e17c8 100644 --- a/keyboards/converter/usb_usb/ble/config.h +++ b/keyboards/converter/usb_usb/ble/config.h | |||
| @@ -1,13 +1,13 @@ | |||
| 1 | #ifndef CONFIG_BLE_H | 1 | #pragma once |
| 2 | #define CONFIG_BLE_H | ||
| 3 | 2 | ||
| 4 | #undef PRODUCT | 3 | #undef PRODUCT |
| 5 | #define PRODUCT QMK BLE Adapter | 4 | #define PRODUCT QMK BLE Adapter |
| 6 | #undef DESCRIPTION | 5 | #undef DESCRIPTION |
| 7 | #define DESCRIPTION | 6 | #define DESCRIPTION |
| 8 | 7 | ||
| 9 | // Turn off the mode leds on the BLE module | 8 | // Turn off the mode leds on the BLE module |
| 10 | #define ADAFRUIT_BLE_ENABLE_MODE_LEDS 0 | 9 | #define ADAFRUIT_BLE_ENABLE_MODE_LEDS 0 |
| 11 | #define ADAFRUIT_BLE_ENABLE_POWER_LED 0 | 10 | #define ADAFRUIT_BLE_ENABLE_POWER_LED 0 |
| 12 | 11 | ||
| 13 | #endif | 12 | #define NO_ACTION_MACRO |
| 13 | #define NO_ACTION_FUNCTION | ||
diff --git a/keyboards/converter/usb_usb/ble/rules.mk b/keyboards/converter/usb_usb/ble/rules.mk index 16090962d..84aa767f5 100644 --- a/keyboards/converter/usb_usb/ble/rules.mk +++ b/keyboards/converter/usb_usb/ble/rules.mk | |||
| @@ -1,3 +1,23 @@ | |||
| 1 | BLUETOOTH = AdafruitBLE | 1 | BLUETOOTH = AdafruitBLE |
| 2 | ADAFRUIT_BLE_ENABLE = yes | 2 | ADAFRUIT_BLE_ENABLE = yes |
| 3 | F_CPU = 8000000 | 3 | F_CPU = 8000000 |
| 4 | |||
| 5 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 6 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 7 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 8 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 9 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 10 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 11 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 12 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 13 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 14 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | ||
| 15 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 16 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | ||
| 17 | UNICODE_ENABLE = no # Unicode | ||
| 18 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 19 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 20 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 21 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) | ||
| 22 | |||
| 23 | EXTRAFLAGS += -flto | ||
