diff options
| author | Drashna Jaelre <drashna@live.com> | 2018-09-28 07:09:46 -0700 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2018-09-28 10:22:08 -0400 |
| commit | a4bdab68370bc1497a7d5aa32d05bd8a6b3c3c14 (patch) | |
| tree | 4b32a48282643f8067682cc4d92b705ce5b12abc | |
| parent | 31afdd81a1e7cdb8808c8eb32e0ebe69c3d15f5c (diff) | |
| download | qmk_firmware-a4bdab68370bc1497a7d5aa32d05bd8a6b3c3c14.tar.gz qmk_firmware-a4bdab68370bc1497a7d5aa32d05bd8a6b3c3c14.zip | |
Optimize size of Hadron keyboard
| -rw-r--r-- | keyboards/hadron/config.h | 19 | ||||
| -rw-r--r-- | keyboards/hadron/keymaps/default/rules.mk | 4 | ||||
| -rw-r--r-- | keyboards/hadron/rules.mk | 32 | ||||
| -rw-r--r-- | keyboards/hadron/ver0/config.h | 7 | ||||
| -rw-r--r-- | keyboards/hadron/ver2/config.h | 7 | ||||
| -rw-r--r-- | keyboards/hadron/ver2/rules.mk | 2 |
6 files changed, 28 insertions, 43 deletions
diff --git a/keyboards/hadron/config.h b/keyboards/hadron/config.h index 0c19d6c79..9111ad727 100644 --- a/keyboards/hadron/config.h +++ b/keyboards/hadron/config.h | |||
| @@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License | |||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #ifndef CONFIG_H | 18 | #pragma once |
| 19 | #define CONFIG_H | ||
| 20 | 19 | ||
| 21 | #include "config_common.h" | 20 | #include "config_common.h" |
| 22 | 21 | ||
| @@ -30,7 +29,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 30 | 29 | ||
| 31 | 30 | ||
| 32 | 31 | ||
| 33 | //#define AUDIO_VOICES | 32 | //#define AUDIO_VOICES |
| 34 | 33 | ||
| 35 | //#define BACKLIGHT_PIN B7 | 34 | //#define BACKLIGHT_PIN B7 |
| 36 | 35 | ||
| @@ -71,13 +70,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 71 | //#define NO_ACTION_LAYER | 70 | //#define NO_ACTION_LAYER |
| 72 | //#define NO_ACTION_TAPPING | 71 | //#define NO_ACTION_TAPPING |
| 73 | //#define NO_ACTION_ONESHOT | 72 | //#define NO_ACTION_ONESHOT |
| 74 | //#define NO_ACTION_MACRO | 73 | #define NO_ACTION_MACRO |
| 75 | //#define NO_ACTION_FUNCTION | 74 | #define NO_ACTION_FUNCTION |
| 76 | #ifdef SUBPROJECT_ver0 | 75 | |
| 77 | #include "ver0/config.h" | 76 | |
| 78 | #endif | ||
| 79 | #ifdef SUBPROJECT_ver2 | ||
| 80 | #include "ver2/config.h" | ||
| 81 | #endif | ||
| 82 | |||
| 83 | #endif | ||
diff --git a/keyboards/hadron/keymaps/default/rules.mk b/keyboards/hadron/keymaps/default/rules.mk index 1f3975255..4d08544f3 100644 --- a/keyboards/hadron/keymaps/default/rules.mk +++ b/keyboards/hadron/keymaps/default/rules.mk | |||
| @@ -21,6 +21,4 @@ SWAP_HANDS_ENABLE = no # Enable one-hand typing | |||
| 21 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 21 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
| 22 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 22 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 23 | 23 | ||
| 24 | ifndef QUANTUM_DIR | 24 | EXTRAFLAGS += -flto |
| 25 | include ../../../../Makefile | ||
| 26 | endif \ No newline at end of file | ||
diff --git a/keyboards/hadron/rules.mk b/keyboards/hadron/rules.mk index 66a900825..1f835e066 100644 --- a/keyboards/hadron/rules.mk +++ b/keyboards/hadron/rules.mk | |||
| @@ -44,30 +44,30 @@ OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | |||
| 44 | # Atmel DFU loader 4096 | 44 | # Atmel DFU loader 4096 |
| 45 | # LUFA bootloader 4096 | 45 | # LUFA bootloader 4096 |
| 46 | # USBaspLoader 2048 | 46 | # USBaspLoader 2048 |
| 47 | OPT_DEFS += -DBOOTLOADER_SIZE=512 | 47 | BOOTLOADER = halfkay |
| 48 | 48 | ||
| 49 | # Build Options | 49 | # Build Options |
| 50 | # change to "no" to disable the options, or define them in the Makefile in | 50 | # change to "no" to disable the options, or define them in the Makefile in |
| 51 | # the appropriate keymap folder that will get included automatically | 51 | # the appropriate keymap folder that will get included automatically |
| 52 | # | 52 | # |
| 53 | BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000) | 53 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) |
| 54 | MOUSEKEY_ENABLE ?= no # Mouse keys(+4700) | 54 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) |
| 55 | EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) | 55 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) |
| 56 | CONSOLE_ENABLE ?= no # Console for debug(+400) | 56 | CONSOLE_ENABLE = no # Console for debug(+400) |
| 57 | COMMAND_ENABLE ?= no # Commands for debug and configuration | 57 | COMMAND_ENABLE = no # Commands for debug and configuration |
| 58 | NKRO_ENABLE ?= no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 58 | NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 59 | BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality | 59 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality |
| 60 | MIDI_ENABLE ?= no # MIDI controls | 60 | MIDI_ENABLE = no # MIDI controls |
| 61 | AUDIO_ENABLE ?= no # Audio output on port C6 | 61 | AUDIO_ENABLE = no # Audio output on port C6 |
| 62 | UNICODE_ENABLE ?= no # Unicode | 62 | UNICODE_ENABLE = no # Unicode |
| 63 | BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID | 63 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
| 64 | RGBLIGHT_ENABLE ?= no # Enable WS2812 RGB underlight. | 64 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. |
| 65 | API_SYSEX_ENABLE = yes | 65 | API_SYSEX_ENABLE = yes |
| 66 | 66 | ||
| 67 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 67 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
| 68 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend | 68 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 69 | 69 | ||
| 70 | SRC = i2c.c \ | 70 | SRC = i2c.c \ |
| 71 | ssd1306.c | 71 | ssd1306.c |
| 72 | 72 | ||
| 73 | DEFAULT_FOLDER = hadron/ver2 \ No newline at end of file | 73 | DEFAULT_FOLDER = hadron/ver2 |
diff --git a/keyboards/hadron/ver0/config.h b/keyboards/hadron/ver0/config.h index 039d4f1c7..2157a52ce 100644 --- a/keyboards/hadron/ver0/config.h +++ b/keyboards/hadron/ver0/config.h | |||
| @@ -14,10 +14,7 @@ GNU General Public License for more details. | |||
| 14 | You should have received a copy of the GNU General Public License | 14 | You should have received a copy of the GNU General Public License |
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ | 16 | */ |
| 17 | #ifndef VER0_CONFIG_H | 17 | #pragma once |
| 18 | #define VER0_CONFIG_H | ||
| 19 | |||
| 20 | #include "../config.h" | ||
| 21 | 18 | ||
| 22 | /* USB Device descriptor parameter */ | 19 | /* USB Device descriptor parameter */ |
| 23 | #define DEVICE_VER 0x0001 | 20 | #define DEVICE_VER 0x0001 |
| @@ -32,4 +29,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 32 | #define UNUSED_PINS | 29 | #define UNUSED_PINS |
| 33 | 30 | ||
| 34 | 31 | ||
| 35 | #endif | 32 | |
diff --git a/keyboards/hadron/ver2/config.h b/keyboards/hadron/ver2/config.h index 71a0ab5b3..5ee3f931f 100644 --- a/keyboards/hadron/ver2/config.h +++ b/keyboards/hadron/ver2/config.h | |||
| @@ -14,10 +14,7 @@ GNU General Public License for more details. | |||
| 14 | You should have received a copy of the GNU General Public License | 14 | You should have received a copy of the GNU General Public License |
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ | 16 | */ |
| 17 | #ifndef VER2_CONFIG_H | 17 | #pragma once |
| 18 | #define VER2_CONFIG_H | ||
| 19 | |||
| 20 | #include "../config.h" | ||
| 21 | 18 | ||
| 22 | /* USB Device descriptor parameter */ | 19 | /* USB Device descriptor parameter */ |
| 23 | #define DEVICE_VER 0x0002 | 20 | #define DEVICE_VER 0x0002 |
| @@ -32,4 +29,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 32 | #define UNUSED_PINS | 29 | #define UNUSED_PINS |
| 33 | 30 | ||
| 34 | 31 | ||
| 35 | #endif | 32 | |
diff --git a/keyboards/hadron/ver2/rules.mk b/keyboards/hadron/ver2/rules.mk index a3952a5d3..521493b3d 100644 --- a/keyboards/hadron/ver2/rules.mk +++ b/keyboards/hadron/ver2/rules.mk | |||
| @@ -1 +1 @@ | |||
| #AUDIO_ENABLE ?= yes # Audio output on port C6 \ No newline at end of file | #AUDIO_ENABLE = yes # Audio output on port C6 | ||
