diff options
| author | Drashna Jaelre <drashna@live.com> | 2019-03-18 14:21:10 -0700 |
|---|---|---|
| committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-03-18 14:21:10 -0700 |
| commit | 28e182bc8a2976562e0d76a1332527e0a4be81ea (patch) | |
| tree | 62bc6f2a79bc23d859af4aa0feb86b3a5143ef77 | |
| parent | 4f0dc945c32fce91323e5321b6bca70bca4dd1ac (diff) | |
| download | qmk_firmware-28e182bc8a2976562e0d76a1332527e0a4be81ea.tar.gz qmk_firmware-28e182bc8a2976562e0d76a1332527e0a4be81ea.zip | |
[Keyboard] Reduce compile size of the Lily58 Keyboard (#5412)
| -rw-r--r-- | keyboards/lily58/config.h | 10 | ||||
| -rw-r--r-- | keyboards/lily58/keymaps/default/keymap.c | 6 | ||||
| -rw-r--r-- | keyboards/lily58/rules.mk | 4 |
3 files changed, 6 insertions, 14 deletions
diff --git a/keyboards/lily58/config.h b/keyboards/lily58/config.h index b88ec06bf..fb1cdf396 100644 --- a/keyboards/lily58/config.h +++ b/keyboards/lily58/config.h | |||
| @@ -24,11 +24,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 24 | #define USE_I2C | 24 | #define USE_I2C |
| 25 | #define USE_SERIAL | 25 | #define USE_SERIAL |
| 26 | 26 | ||
| 27 | #ifdef USE_Link_Time_Optimization | 27 | #define NO_ACTION_MACRO |
| 28 | // LTO has issues with macros (action_get_macro) and "functions" (fn_actions), | 28 | #define NO_ACTION_FUNCTION |
| 29 | // so just disable them | ||
| 30 | #define NO_ACTION_MACRO | ||
| 31 | #define NO_ACTION_FUNCTION | ||
| 32 | |||
| 33 | #define DISABLE_LEADER | ||
| 34 | #endif // USE_Link_Time_Optimization \ No newline at end of file | ||
diff --git a/keyboards/lily58/keymaps/default/keymap.c b/keyboards/lily58/keymaps/default/keymap.c index 5ff5dc318..b8dda17d5 100644 --- a/keyboards/lily58/keymaps/default/keymap.c +++ b/keyboards/lily58/keymaps/default/keymap.c | |||
| @@ -21,7 +21,7 @@ extern uint8_t is_master; | |||
| 21 | #define _QWERTY 0 | 21 | #define _QWERTY 0 |
| 22 | #define _LOWER 1 | 22 | #define _LOWER 1 |
| 23 | #define _RAISE 2 | 23 | #define _RAISE 2 |
| 24 | #define _ADJUST 16 | 24 | #define _ADJUST 3 |
| 25 | 25 | ||
| 26 | enum custom_keycodes { | 26 | enum custom_keycodes { |
| 27 | QWERTY = SAFE_RANGE, | 27 | QWERTY = SAFE_RANGE, |
| @@ -111,7 +111,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 111 | * | LAlt | LGUI |LOWER | /Space / \Enter \ |RAISE |BackSP| RGUI | | 111 | * | LAlt | LGUI |LOWER | /Space / \Enter \ |RAISE |BackSP| RGUI | |
| 112 | * | | | |/ / \ \ | | | | | 112 | * | | | |/ / \ \ | | | | |
| 113 | * `----------------------------' '------''--------------------' | 113 | * `----------------------------' '------''--------------------' |
| 114 | */ | 114 | */ |
| 115 | [_ADJUST] = LAYOUT( \ | 115 | [_ADJUST] = LAYOUT( \ |
| 116 | XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \ | 116 | XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \ |
| 117 | XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \ | 117 | XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \ |
| @@ -235,4 +235,4 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 235 | break; | 235 | break; |
| 236 | } | 236 | } |
| 237 | return true; | 237 | return true; |
| 238 | } \ No newline at end of file | 238 | } |
diff --git a/keyboards/lily58/rules.mk b/keyboards/lily58/rules.mk index f6b922eea..f2947c81c 100644 --- a/keyboards/lily58/rules.mk +++ b/keyboards/lily58/rules.mk | |||
| @@ -65,9 +65,7 @@ MIDI_ENABLE = no # MIDI controls | |||
| 65 | AUDIO_ENABLE = no # Audio output on port C6 | 65 | AUDIO_ENABLE = no # Audio output on port C6 |
| 66 | UNICODE_ENABLE = no # Unicode | 66 | UNICODE_ENABLE = no # Unicode |
| 67 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 67 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
| 68 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | 68 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. |
| 69 | SUBPROJECT_rev1 = no | ||
| 70 | USE_I2C = yes | ||
| 71 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 69 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
| 72 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 70 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 73 | 71 | ||
