aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2019-03-18 14:21:10 -0700
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-03-18 14:21:10 -0700
commit28e182bc8a2976562e0d76a1332527e0a4be81ea (patch)
tree62bc6f2a79bc23d859af4aa0feb86b3a5143ef77
parent4f0dc945c32fce91323e5321b6bca70bca4dd1ac (diff)
downloadqmk_firmware-28e182bc8a2976562e0d76a1332527e0a4be81ea.tar.gz
qmk_firmware-28e182bc8a2976562e0d76a1332527e0a4be81ea.zip
[Keyboard] Reduce compile size of the Lily58 Keyboard (#5412)
-rw-r--r--keyboards/lily58/config.h10
-rw-r--r--keyboards/lily58/keymaps/default/keymap.c6
-rw-r--r--keyboards/lily58/rules.mk4
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
26enum custom_keycodes { 26enum 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
65AUDIO_ENABLE = no # Audio output on port C6 65AUDIO_ENABLE = no # Audio output on port C6
66UNICODE_ENABLE = no # Unicode 66UNICODE_ENABLE = no # Unicode
67BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 67BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
68RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. 68RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
69SUBPROJECT_rev1 = no
70USE_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
72SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 70SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
73 71