]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Optimize size of Hadron keyboard
authorDrashna Jaelre <drashna@live.com>
Fri, 28 Sep 2018 14:09:46 +0000 (07:09 -0700)
committerJack Humbert <jack.humb@gmail.com>
Fri, 28 Sep 2018 14:22:08 +0000 (10:22 -0400)
keyboards/hadron/config.h
keyboards/hadron/keymaps/default/rules.mk
keyboards/hadron/rules.mk
keyboards/hadron/ver0/config.h
keyboards/hadron/ver2/config.h
keyboards/hadron/ver2/rules.mk

index 0c19d6c7910c825f1519056ce3047c3f042aaa05..9111ad72796758cbd3e164129273ce1af37d94c9 100644 (file)
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#ifndef CONFIG_H
-#define CONFIG_H
+#pragma once
 
 #include "config_common.h"
 
@@ -30,7 +29,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
 
-//#define AUDIO_VOICES 
+//#define AUDIO_VOICES
 
 //#define BACKLIGHT_PIN B7
 
@@ -71,13 +70,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 //#define NO_ACTION_LAYER
 //#define NO_ACTION_TAPPING
 //#define NO_ACTION_ONESHOT
-//#define NO_ACTION_MACRO
-//#define NO_ACTION_FUNCTION
-#ifdef SUBPROJECT_ver0
-    #include "ver0/config.h"
-#endif
-#ifdef SUBPROJECT_ver2
-    #include "ver2/config.h"
-#endif
-
-#endif
+#define NO_ACTION_MACRO
+#define NO_ACTION_FUNCTION
+
+
index 1f3975255a1ffa988724bdcd4aca9af918a86a41..4d08544f3ad4addfb812f62717a9dc7ce142a028 100644 (file)
@@ -21,6 +21,4 @@ SWAP_HANDS_ENABLE = no        # Enable one-hand typing
 # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
 SLEEP_LED_ENABLE = no    # Breathing sleep LED during USB suspend
 
-ifndef QUANTUM_DIR
-       include ../../../../Makefile
-endif
\ No newline at end of file
+EXTRAFLAGS += -flto
index 66a900825a43316516f8ce690d1601e9b5e85e9e..1f835e066036071bded30fcfff9b46ab74688fca 100644 (file)
@@ -44,30 +44,30 @@ OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
 #   Atmel DFU loader 4096
 #   LUFA bootloader  4096
 #   USBaspLoader     2048
-OPT_DEFS += -DBOOTLOADER_SIZE=512
+BOOTLOADER = halfkay
 
 # Build Options
-#   change to "no" to disable the options, or define them in the Makefile in 
+#   change to "no" to disable the options, or define them in the Makefile in
 #   the appropriate keymap folder that will get included automatically
 #
-BOOTMAGIC_ENABLE ?= no       # Virtual DIP switch configuration(+1000)
-MOUSEKEY_ENABLE ?= no       # Mouse keys(+4700)
-EXTRAKEY_ENABLE ?= yes       # Audio control and System control(+450)
-CONSOLE_ENABLE ?= no         # Console for debug(+400)
-COMMAND_ENABLE ?= no        # Commands for debug and configuration
-NKRO_ENABLE ?= no            # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
-BACKLIGHT_ENABLE ?= no      # Enable keyboard backlight functionality
-MIDI_ENABLE ?= no            # MIDI controls
-AUDIO_ENABLE ?= no           # Audio output on port C6
-UNICODE_ENABLE ?= no         # Unicode
-BLUETOOTH_ENABLE ?= no       # Enable Bluetooth with the Adafruit EZ-Key HID
-RGBLIGHT_ENABLE ?= no        # Enable WS2812 RGB underlight.
+BOOTMAGIC_ENABLE = no       # Virtual DIP switch configuration(+1000)
+MOUSEKEY_ENABLE = no       # Mouse keys(+4700)
+EXTRAKEY_ENABLE = yes       # Audio control and System control(+450)
+CONSOLE_ENABLE = no         # Console for debug(+400)
+COMMAND_ENABLE = no        # Commands for debug and configuration
+NKRO_ENABLE = no            # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
+BACKLIGHT_ENABLE = no      # Enable keyboard backlight functionality
+MIDI_ENABLE = no            # MIDI controls
+AUDIO_ENABLE = no           # Audio output on port C6
+UNICODE_ENABLE = no         # Unicode
+BLUETOOTH_ENABLE = no       # Enable Bluetooth with the Adafruit EZ-Key HID
+RGBLIGHT_ENABLE = no        # Enable WS2812 RGB underlight.
 API_SYSEX_ENABLE = yes
 
 # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
-SLEEP_LED_ENABLE ?= no    # Breathing sleep LED during USB suspend
+SLEEP_LED_ENABLE = no    # Breathing sleep LED during USB suspend
 
 SRC = i2c.c \
          ssd1306.c
 
-DEFAULT_FOLDER = hadron/ver2
\ No newline at end of file
+DEFAULT_FOLDER = hadron/ver2
index 039d4f1c718a60a4c078a692835cef1be4f7ea4a..2157a52cee0ce55c38277c62635b580b3a03a019 100644 (file)
@@ -14,10 +14,7 @@ GNU General Public License for more details.
 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
-#ifndef VER0_CONFIG_H
-#define VER0_CONFIG_H
-
-#include "../config.h"
+#pragma once
 
 /* USB Device descriptor parameter */
 #define DEVICE_VER      0x0001
@@ -32,4 +29,4 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define UNUSED_PINS
 
 
-#endif
+
index 71a0ab5b3fec5f062006a495fb7745444c9581af..5ee3f931ff72e926c593667d49e8a236f0e98d33 100644 (file)
@@ -14,10 +14,7 @@ GNU General Public License for more details.
 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
-#ifndef VER2_CONFIG_H
-#define VER2_CONFIG_H
-
-#include "../config.h"
+#pragma once
 
 /* USB Device descriptor parameter */
 #define DEVICE_VER      0x0002
@@ -32,4 +29,4 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define UNUSED_PINS
 
 
-#endif
+
index a3952a5d338e25814a3079fc878c6d3ce3a3a3f9..521493b3d39b2a46ca312020ffad8dbd4c2a7ea6 100644 (file)
@@ -1 +1 @@
-#AUDIO_ENABLE ?= yes           # Audio output on port C6
\ No newline at end of file
+#AUDIO_ENABLE = yes           # Audio output on port C6