aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoroadsleft <18669334+noroadsleft@users.noreply.github.com>2019-04-29 11:04:56 -0700
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-04-29 11:04:56 -0700
commite337bb82a3b418dfd6c60b8c615322c854e5995d (patch)
tree083fd6f6051fdea9611fdbc8604aaf6b9f9df8ce
parent6806398246c7201b84c3af508aa09b6735973d11 (diff)
downloadqmk_firmware-e337bb82a3b418dfd6c60b8c615322c854e5995d.tar.gz
qmk_firmware-e337bb82a3b418dfd6c60b8c615322c854e5995d.zip
Fix Planck and Preonic builds (#5658)
* Planck: Copy contents of Planck rules.mk to each revision * Planck: Delete Planck rules.mk * Planck: Concatenate duplicate rules Concatenate rules that are set and then overridden into one setting. * Preonic: Copy contents of Preonic rules.mk to each revision * Preonic: Delete Preonic rules.mk * Preonic: Concatenate duplicate rules Concatenate rules that are set and then overridden into one setting. * Planck: Delete non-specific Bootloader settings from revs. 1 and 2 Deleted BOOTLOADER setting code block, as the checks were only valid for revs. 3-5 and the Planck Light. Neither Planck rev1 or rev2 set the bootloader via rules.mk, so there's no setting of BOOTLOADER in their rules.mk files. * Preonic: Fix BOOTLOADER settings code blocks * Preonic: delete extra blank lines from rules.mk files * Preonic: delete AVR-type hardware config blocks from rev3 * Update Planck and Preonic readme files - update Hardware Supported - update/add Install Examples - update Docs paragraph * Enable Bootmagic Lite where it is disabled Enabled Bootmagic Lite for: - Planck Light - Planck revs. 1-5 - Preonic revs. 1 and 2 * Remove `planck_grid` from LAYOUTS rule for all Planck revisions Community has landed on `ortho_4x12`, which is already set; `planck_grid` is redundant.
-rw-r--r--keyboards/planck/ez/rules.mk38
-rw-r--r--keyboards/planck/light/rules.mk35
-rw-r--r--keyboards/planck/readme.md7
-rw-r--r--keyboards/planck/rev1/rules.mk30
-rw-r--r--keyboards/planck/rev2/rules.mk30
-rw-r--r--keyboards/planck/rev3/rules.mk36
-rw-r--r--keyboards/planck/rev4/rules.mk34
-rw-r--r--keyboards/planck/rev5/rules.mk34
-rw-r--r--keyboards/planck/rev6/rules.mk35
-rw-r--r--keyboards/planck/rules.mk46
-rw-r--r--keyboards/preonic/readme.md11
-rw-r--r--keyboards/preonic/rev1/rules.mk67
-rw-r--r--keyboards/preonic/rev2/rules.mk67
-rw-r--r--keyboards/preonic/rev3/rules.mk34
-rw-r--r--keyboards/preonic/rules.mk74
15 files changed, 412 insertions, 166 deletions
diff --git a/keyboards/planck/ez/rules.mk b/keyboards/planck/ez/rules.mk
index c6fb52d2b..4aa431fda 100644
--- a/keyboards/planck/ez/rules.mk
+++ b/keyboards/planck/ez/rules.mk
@@ -1,24 +1,36 @@
1# project specific files
2LAYOUTS += ortho_4x12
3
4# Cortex version 1# Cortex version
5MCU = STM32F303 2MCU = STM32F303
6 3
4# Interrupt driven control endpoint task(+60)
5OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
6
7# Build Options 7# Build Options
8# comment out to disable the options. 8# change to "no" to disable the options, or define them in the Makefile in
9# the appropriate keymap folder that will get included automatically
9# 10#
10BACKLIGHT_ENABLE = no 11BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
11BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
12## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.) 12## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.)
13MOUSEKEY_ENABLE = yes # Mouse keys 13MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
14EXTRAKEY_ENABLE = yes # Audio control and System control 14EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
15CONSOLE_ENABLE = yes # Console for debug 15CONSOLE_ENABLE = yes # Console for debug(+400)
16COMMAND_ENABLE = yes # Commands for debug and configuration 16COMMAND_ENABLE = yes # Commands for debug and configuration
17NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
19MIDI_ENABLE = no # MIDI controls
20AUDIO_ENABLE = yes # Audio output on port C6
21UNICODE_ENABLE = no # Unicode
22BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
23RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
24API_SYSEX_ENABLE = no
25
26# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
27SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend 28#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
18NKRO_ENABLE = yes # USB Nkey Rollover 29
19CUSTOM_MATRIX = no # Custom matrix file 30CUSTOM_MATRIX = no # Custom matrix file
20AUDIO_ENABLE = yes
21RGBLIGHT_ENABLE = no
22# SERIAL_LINK_ENABLE = yes 31# SERIAL_LINK_ENABLE = yes
23ENCODER_ENABLE = yes 32ENCODER_ENABLE = yes
24RGB_MATRIX_ENABLE = IS31FL3737 33RGB_MATRIX_ENABLE = IS31FL3737
34
35LAYOUTS = ortho_4x12 planck_mit
36LAYOUTS_HAS_RGB = no
diff --git a/keyboards/planck/light/rules.mk b/keyboards/planck/light/rules.mk
index c10b8fd1d..b621a9abb 100644
--- a/keyboards/planck/light/rules.mk
+++ b/keyboards/planck/light/rules.mk
@@ -1,5 +1,36 @@
1MIDI_ENABLE = yes 1# MCU name
2MCU = at90usb1286
3
4# Bootloader
5# This definition is optional, and if your keyboard supports multiple bootloaders of
6# different sizes, comment this out, and the correct address will be loaded
7# automatically (+60). See bootloader.mk for all options.
8BOOTLOADER = atmel-dfu
9
10# Interrupt driven control endpoint task(+60)
11OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
12
13# Build Options
14# change to "no" to disable the options, or define them in the Makefile in
15# the appropriate keymap folder that will get included automatically
16#
17BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
18MOUSEKEY_ENABLE = no # Mouse keys(+4700)
19EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
20CONSOLE_ENABLE = yes # Console for debug(+400)
21COMMAND_ENABLE = no # Commands for debug and configuration
22NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
23BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
24MIDI_ENABLE = yes # MIDI controls
2AUDIO_ENABLE = yes # Audio output on port C6 25AUDIO_ENABLE = yes # Audio output on port C6
26UNICODE_ENABLE = no # Unicode
27BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
28RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
3RGB_MATRIX_ENABLE = yes 29RGB_MATRIX_ENABLE = yes
30API_SYSEX_ENABLE = no
31
32# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
33SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
4 34
5MCU = at90usb1286 \ No newline at end of file 35LAYOUTS = ortho_4x12 planck_mit
36LAYOUTS_HAS_RGB = no
diff --git a/keyboards/planck/readme.md b/keyboards/planck/readme.md
index 083279e8a..94b256c74 100644
--- a/keyboards/planck/readme.md
+++ b/keyboards/planck/readme.md
@@ -6,7 +6,7 @@ Planck
6A compact 40% (12x4) ortholinear keyboard kit made and sold by OLKB and Massdrop. [More info on qmk.fm](http://qmk.fm/planck/) 6A compact 40% (12x4) ortholinear keyboard kit made and sold by OLKB and Massdrop. [More info on qmk.fm](http://qmk.fm/planck/)
7 7
8Keyboard Maintainer: [Jack Humbert](https://github.com/jackhumbert) 8Keyboard Maintainer: [Jack Humbert](https://github.com/jackhumbert)
9Hardware Supported: Planck PCB rev1, rev2, rev3, rev4, Teensy 2.0 9Hardware Supported: Planck PCB rev1, rev2, rev3, rev4, rev5, rev6; Planck Light
10Hardware Availability: [OLKB.com](https://olkb.com), [Massdrop](https://www.massdrop.com/buy/planck-mechanical-keyboard?mode=guest_open) 10Hardware Availability: [OLKB.com](https://olkb.com), [Massdrop](https://www.massdrop.com/buy/planck-mechanical-keyboard?mode=guest_open)
11 11
12Make example for this keyboard (after setting up your build environment): 12Make example for this keyboard (after setting up your build environment):
@@ -15,6 +15,7 @@ Make example for this keyboard (after setting up your build environment):
15 15
16Install examples: 16Install examples:
17 17
18 make planck/rev6:default:dfu-util 18 make planck/rev5:default:dfu # For Planck rev5 or earlier and Planck Light
19 make planck/rev6:default:dfu-util # For Planck rev6
19 20
20See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. 21See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
diff --git a/keyboards/planck/rev1/rules.mk b/keyboards/planck/rev1/rules.mk
index e51af55c6..be03e4515 100644
--- a/keyboards/planck/rev1/rules.mk
+++ b/keyboards/planck/rev1/rules.mk
@@ -1 +1,29 @@
1AUDIO_ENABLE = no # Audio output on port C6 1# MCU name
2MCU = atmega32u4
3
4# Interrupt driven control endpoint task(+60)
5OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
6
7# Build Options
8# change to "no" to disable the options, or define them in the Makefile in
9# the appropriate keymap folder that will get included automatically
10#
11BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
12MOUSEKEY_ENABLE = no # Mouse keys(+4700)
13EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
14CONSOLE_ENABLE = yes # Console for debug(+400)
15COMMAND_ENABLE = no # Commands for debug and configuration
16NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
17BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
18MIDI_ENABLE = no # MIDI controls
19AUDIO_ENABLE = no # Audio output on port C6
20UNICODE_ENABLE = no # Unicode
21BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
22RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
23API_SYSEX_ENABLE = no
24
25# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
26SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
27
28LAYOUTS = ortho_4x12 planck_mit
29LAYOUTS_HAS_RGB = no
diff --git a/keyboards/planck/rev2/rules.mk b/keyboards/planck/rev2/rules.mk
index e51af55c6..be03e4515 100644
--- a/keyboards/planck/rev2/rules.mk
+++ b/keyboards/planck/rev2/rules.mk
@@ -1 +1,29 @@
1AUDIO_ENABLE = no # Audio output on port C6 1# MCU name
2MCU = atmega32u4
3
4# Interrupt driven control endpoint task(+60)
5OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
6
7# Build Options
8# change to "no" to disable the options, or define them in the Makefile in
9# the appropriate keymap folder that will get included automatically
10#
11BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
12MOUSEKEY_ENABLE = no # Mouse keys(+4700)
13EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
14CONSOLE_ENABLE = yes # Console for debug(+400)
15COMMAND_ENABLE = no # Commands for debug and configuration
16NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
17BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
18MIDI_ENABLE = no # MIDI controls
19AUDIO_ENABLE = no # Audio output on port C6
20UNICODE_ENABLE = no # Unicode
21BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
22RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
23API_SYSEX_ENABLE = no
24
25# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
26SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
27
28LAYOUTS = ortho_4x12 planck_mit
29LAYOUTS_HAS_RGB = no
diff --git a/keyboards/planck/rev3/rules.mk b/keyboards/planck/rev3/rules.mk
index e51af55c6..3de40a66c 100644
--- a/keyboards/planck/rev3/rules.mk
+++ b/keyboards/planck/rev3/rules.mk
@@ -1 +1,35 @@
1AUDIO_ENABLE = no # Audio output on port C6 1# MCU name
2MCU = atmega32u4
3
4# Bootloader
5# This definition is optional, and if your keyboard supports multiple bootloaders of
6# different sizes, comment this out, and the correct address will be loaded
7# automatically (+60). See bootloader.mk for all options.
8BOOTLOADER = atmel-dfu
9
10# Interrupt driven control endpoint task(+60)
11OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
12
13# Build Options
14# change to "no" to disable the options, or define them in the Makefile in
15# the appropriate keymap folder that will get included automatically
16#
17BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
18MOUSEKEY_ENABLE = no # Mouse keys(+4700)
19EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
20CONSOLE_ENABLE = yes # Console for debug(+400)
21COMMAND_ENABLE = no # Commands for debug and configuration
22NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
23BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
24MIDI_ENABLE = no # MIDI controls
25AUDIO_ENABLE = no # Audio output on port C6
26UNICODE_ENABLE = no # Unicode
27BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
28RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
29API_SYSEX_ENABLE = no
30
31# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
32SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
33
34LAYOUTS = ortho_4x12 planck_mit
35LAYOUTS_HAS_RGB = no
diff --git a/keyboards/planck/rev4/rules.mk b/keyboards/planck/rev4/rules.mk
index 7e64e7edc..390f58249 100644
--- a/keyboards/planck/rev4/rules.mk
+++ b/keyboards/planck/rev4/rules.mk
@@ -1 +1,35 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader
5# This definition is optional, and if your keyboard supports multiple bootloaders of
6# different sizes, comment this out, and the correct address will be loaded
7# automatically (+60). See bootloader.mk for all options.
8BOOTLOADER = atmel-dfu
9
10# Interrupt driven control endpoint task(+60)
11OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
12
13# Build Options
14# change to "no" to disable the options, or define them in the Makefile in
15# the appropriate keymap folder that will get included automatically
16#
17BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
18MOUSEKEY_ENABLE = no # Mouse keys(+4700)
19EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
20CONSOLE_ENABLE = yes # Console for debug(+400)
21COMMAND_ENABLE = no # Commands for debug and configuration
22NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
23BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
24MIDI_ENABLE = no # MIDI controls
1AUDIO_ENABLE = yes # Audio output on port C6 25AUDIO_ENABLE = yes # Audio output on port C6
26UNICODE_ENABLE = no # Unicode
27BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
28RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
29API_SYSEX_ENABLE = no
30
31# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
32SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
33
34LAYOUTS = ortho_4x12 planck_mit
35LAYOUTS_HAS_RGB = no
diff --git a/keyboards/planck/rev5/rules.mk b/keyboards/planck/rev5/rules.mk
index 7e64e7edc..ca63b39ac 100644
--- a/keyboards/planck/rev5/rules.mk
+++ b/keyboards/planck/rev5/rules.mk
@@ -1 +1,35 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader
5# This definition is optional, and if your keyboard supports multiple bootloaders of
6# different sizes, comment this out, and the correct address will be loaded
7# automatically (+60). See bootloader.mk for all options.
8BOOTLOADER = qmk-dfu
9
10# Interrupt driven control endpoint task(+60)
11OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
12
13# Build Options
14# change to "no" to disable the options, or define them in the Makefile in
15# the appropriate keymap folder that will get included automatically
16#
17BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
18MOUSEKEY_ENABLE = no # Mouse keys(+4700)
19EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
20CONSOLE_ENABLE = yes # Console for debug(+400)
21COMMAND_ENABLE = no # Commands for debug and configuration
22NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
23BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
24MIDI_ENABLE = no # MIDI controls
1AUDIO_ENABLE = yes # Audio output on port C6 25AUDIO_ENABLE = yes # Audio output on port C6
26UNICODE_ENABLE = no # Unicode
27BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
28RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
29API_SYSEX_ENABLE = no
30
31# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
32SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
33
34LAYOUTS = ortho_4x12 planck_mit
35LAYOUTS_HAS_RGB = no
diff --git a/keyboards/planck/rev6/rules.mk b/keyboards/planck/rev6/rules.mk
index 1f3d1dfe5..c58275002 100644
--- a/keyboards/planck/rev6/rules.mk
+++ b/keyboards/planck/rev6/rules.mk
@@ -5,20 +5,35 @@ LAYOUTS += ortho_4x12
5# Cortex version 5# Cortex version
6MCU = STM32F303 6MCU = STM32F303
7 7
8# Interrupt driven control endpoint task(+60)
9OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
10
8# Build Options 11# Build Options
9# comment out to disable the options. 12# change to "no" to disable the options, or define them in the Makefile in
13# the appropriate keymap folder that will get included automatically
10# 14#
11BACKLIGHT_ENABLE = no 15BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
12BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
13## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.) 16## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.)
14MOUSEKEY_ENABLE = yes # Mouse keys 17MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
15EXTRAKEY_ENABLE = yes # Audio control and System control 18EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
16CONSOLE_ENABLE = yes # Console for debug 19CONSOLE_ENABLE = yes # Console for debug(+400)
17COMMAND_ENABLE = yes # Commands for debug and configuration 20COMMAND_ENABLE = yes # Commands for debug and configuration
21NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
22BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
23MIDI_ENABLE = no # MIDI controls
24AUDIO_ENABLE = yes # Audio output on port C6
25UNICODE_ENABLE = no # Unicode
26BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
27RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
28API_SYSEX_ENABLE = no
29
30# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
31SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
18#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend 32#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
19NKRO_ENABLE = yes # USB Nkey Rollover 33
20CUSTOM_MATRIX = yes # Custom matrix file 34CUSTOM_MATRIX = yes # Custom matrix file
21AUDIO_ENABLE = yes
22RGBLIGHT_ENABLE = no
23# SERIAL_LINK_ENABLE = yes 35# SERIAL_LINK_ENABLE = yes
24ENCODER_ENABLE = yes 36ENCODER_ENABLE = yes
37
38LAYOUTS = ortho_4x12 planck_mit
39LAYOUTS_HAS_RGB = no
diff --git a/keyboards/planck/rules.mk b/keyboards/planck/rules.mk
deleted file mode 100644
index 520a2d5c7..000000000
--- a/keyboards/planck/rules.mk
+++ /dev/null
@@ -1,46 +0,0 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader
5# This definition is optional, and if your keyboard supports multiple bootloaders of
6# different sizes, comment this out, and the correct address will be loaded
7# automatically (+60). See bootloader.mk for all options.
8ifeq ($(strip $(KEYBOARD)), planck/rev3)
9 BOOTLOADER = atmel-dfu
10endif
11ifeq ($(strip $(KEYBOARD)), planck/rev4)
12 BOOTLOADER = atmel-dfu
13endif
14ifeq ($(strip $(KEYBOARD)), planck/rev5)
15 BOOTLOADER = qmk-dfu
16endif
17ifeq ($(strip $(KEYBOARD)), planck/light)
18 BOOTLOADER = atmel-dfu
19endif
20
21# Interrupt driven control endpoint task(+60)
22OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
23
24# Build Options
25# change to "no" to disable the options, or define them in the Makefile in
26# the appropriate keymap folder that will get included automatically
27#
28BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
29MOUSEKEY_ENABLE = no # Mouse keys(+4700)
30EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
31CONSOLE_ENABLE = yes # Console for debug(+400)
32COMMAND_ENABLE = no # Commands for debug and configuration
33NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
34BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
35MIDI_ENABLE = no # MIDI controls
36AUDIO_ENABLE = yes # Audio output on port C6
37UNICODE_ENABLE = no # Unicode
38BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
39RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
40API_SYSEX_ENABLE = no
41
42# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
43SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
44
45LAYOUTS = ortho_4x12 planck_mit planck_grid
46LAYOUTS_HAS_RGB = no
diff --git a/keyboards/preonic/readme.md b/keyboards/preonic/readme.md
index 5b3c0ec58..85adf635d 100644
--- a/keyboards/preonic/readme.md
+++ b/keyboards/preonic/readme.md
@@ -6,11 +6,16 @@ Preonic
6A compact 50% (12x5) ortholinear keyboard kit made and sold by OLKB and Massdrop. [More info on qmk.fm](http://qmk.fm/preonic/) 6A compact 50% (12x5) ortholinear keyboard kit made and sold by OLKB and Massdrop. [More info on qmk.fm](http://qmk.fm/preonic/)
7 7
8Keyboard Maintainer: [Jack Humbert](https://github.com/jackhumbert) 8Keyboard Maintainer: [Jack Humbert](https://github.com/jackhumbert)
9Hardware Supported: Preonic PCB rev1, Teensy 2.0 9Hardware Supported: Preonic PCB rev1, rev2, rev3
10Hardware Availability: [OLKB.com](https://olkb.com/preonic/), [Massdrop](https://www.massdrop.com/buy/preonic-mechanical-keyboard?mode=guest_open) 10Hardware Availability: [OLKB.com](https://olkb.com/preonic/), [Massdrop](https://www.massdrop.com/buy/preonic-mechanical-keyboard?mode=guest_open)
11 11
12Make example for this keyboard (after setting up your build environment): 12Make example for this keyboard (after setting up your build environment):
13 13
14 make preonic:default 14 make preonic/rev2:default
15 15
16See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. \ No newline at end of file 16Install examples:
17
18 make preonic/rev2:default:dfu # For Preonic rev1 or rev2
19 make preonic/rev3:default:dfu-util # For Preonic rev3
20
21See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
diff --git a/keyboards/preonic/rev1/rules.mk b/keyboards/preonic/rev1/rules.mk
index e69de29bb..b0d44db82 100644
--- a/keyboards/preonic/rev1/rules.mk
+++ b/keyboards/preonic/rev1/rules.mk
@@ -0,0 +1,67 @@
1# MCU name
2#MCU = at90usb1287
3MCU = atmega32u4
4
5# Processor frequency.
6# This will define a symbol, F_CPU, in all source code files equal to the
7# processor frequency in Hz. You can then use this symbol in your source code to
8# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
9# automatically to create a 32-bit value in your source code.
10#
11# This will be an integer division of F_USB below, as it is sourced by
12# F_USB after it has run through any CPU prescalers. Note that this value
13# does not *change* the processor frequency - it should merely be updated to
14# reflect the processor speed set externally so that the code can use accurate
15# software delays.
16F_CPU = 16000000
17
18#
19# LUFA specific
20#
21# Target architecture (see library "Board Types" documentation).
22ARCH = AVR8
23
24# Input clock frequency.
25# This will define a symbol, F_USB, in all source code files equal to the
26# input clock frequency (before any prescaling is performed) in Hz. This value may
27# differ from F_CPU if prescaling is used on the latter, and is required as the
28# raw input clock is fed directly to the PLL sections of the AVR for high speed
29# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
30# at the end, this will be done automatically to create a 32-bit value in your
31# source code.
32#
33# If no clock division is performed on the input clock inside the AVR (via the
34# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
35F_USB = $(F_CPU)
36
37# Bootloader
38# This definition is optional, and if your keyboard supports multiple bootloaders of
39# different sizes, comment this out, and the correct address will be loaded
40# automatically (+60). See bootloader.mk for all options.
41BOOTLOADER = atmel-dfu
42
43# Interrupt driven control endpoint task(+60)
44OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
45
46# Build Options
47# change to "no" to disable the options, or define them in the Makefile in
48# the appropriate keymap folder that will get included automatically
49#
50BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
51MOUSEKEY_ENABLE = no # Mouse keys(+4700)
52EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
53CONSOLE_ENABLE = yes # Console for debug(+400)
54COMMAND_ENABLE = no # Commands for debug and configuration
55NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
56BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
57MIDI_ENABLE = no # MIDI controls
58AUDIO_ENABLE = yes # Audio output on port C6
59UNICODE_ENABLE = no # Unicode
60BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
61RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
62API_SYSEX_ENABLE = no
63
64# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
65SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
66
67LAYOUTS = ortho_5x12
diff --git a/keyboards/preonic/rev2/rules.mk b/keyboards/preonic/rev2/rules.mk
index e69de29bb..748979c79 100644
--- a/keyboards/preonic/rev2/rules.mk
+++ b/keyboards/preonic/rev2/rules.mk
@@ -0,0 +1,67 @@
1# MCU name
2#MCU = at90usb1287
3MCU = atmega32u4
4
5# Processor frequency.
6# This will define a symbol, F_CPU, in all source code files equal to the
7# processor frequency in Hz. You can then use this symbol in your source code to
8# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
9# automatically to create a 32-bit value in your source code.
10#
11# This will be an integer division of F_USB below, as it is sourced by
12# F_USB after it has run through any CPU prescalers. Note that this value
13# does not *change* the processor frequency - it should merely be updated to
14# reflect the processor speed set externally so that the code can use accurate
15# software delays.
16F_CPU = 16000000
17
18#
19# LUFA specific
20#
21# Target architecture (see library "Board Types" documentation).
22ARCH = AVR8
23
24# Input clock frequency.
25# This will define a symbol, F_USB, in all source code files equal to the
26# input clock frequency (before any prescaling is performed) in Hz. This value may
27# differ from F_CPU if prescaling is used on the latter, and is required as the
28# raw input clock is fed directly to the PLL sections of the AVR for high speed
29# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
30# at the end, this will be done automatically to create a 32-bit value in your
31# source code.
32#
33# If no clock division is performed on the input clock inside the AVR (via the
34# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
35F_USB = $(F_CPU)
36
37# Bootloader
38# This definition is optional, and if your keyboard supports multiple bootloaders of
39# different sizes, comment this out, and the correct address will be loaded
40# automatically (+60). See bootloader.mk for all options.
41BOOTLOADER = qmk-dfu
42
43# Interrupt driven control endpoint task(+60)
44OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
45
46# Build Options
47# change to "no" to disable the options, or define them in the Makefile in
48# the appropriate keymap folder that will get included automatically
49#
50BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
51MOUSEKEY_ENABLE = no # Mouse keys(+4700)
52EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
53CONSOLE_ENABLE = yes # Console for debug(+400)
54COMMAND_ENABLE = no # Commands for debug and configuration
55NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
56BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
57MIDI_ENABLE = no # MIDI controls
58AUDIO_ENABLE = yes # Audio output on port C6
59UNICODE_ENABLE = no # Unicode
60BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
61RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
62API_SYSEX_ENABLE = no
63
64# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
65SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
66
67LAYOUTS = ortho_5x12
diff --git a/keyboards/preonic/rev3/rules.mk b/keyboards/preonic/rev3/rules.mk
index 0c171b2fb..39e69872c 100644
--- a/keyboards/preonic/rev3/rules.mk
+++ b/keyboards/preonic/rev3/rules.mk
@@ -1,24 +1,34 @@
1# project specific files 1# project specific files
2SRC = matrix.c 2SRC = matrix.c
3LAYOUTS += ortho_5x12
4 3
5# Cortex version 4# Cortex version
6MCU = STM32F303 5MCU = STM32F303
7 6
8# Build Options 7# Build Options
9# comment out to disable the options. 8# change to "no" to disable the options, or define them in the Makefile in
9# the appropriate keymap folder that will get included automatically
10# 10#
11BACKLIGHT_ENABLE = no 11BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
12BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
13## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.) 12## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.)
14MOUSEKEY_ENABLE = yes # Mouse keys 13MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
15EXTRAKEY_ENABLE = yes # Audio control and System control 14EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
16CONSOLE_ENABLE = yes # Console for debug 15CONSOLE_ENABLE = yes # Console for debug(+400)
17COMMAND_ENABLE = yes # Commands for debug and configuration 16COMMAND_ENABLE = yes # Commands for debug and configuration
18#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend 17NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
19NKRO_ENABLE = yes # USB Nkey Rollover 18BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
19MIDI_ENABLE = no # MIDI controls
20AUDIO_ENABLE = yes # Audio output on port C6
21UNICODE_ENABLE = no # Unicode
22BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
23RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
24API_SYSEX_ENABLE = no
25
26# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
27SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
28#SLEEP_LED_ENABLE = yes
29
20CUSTOM_MATRIX = yes # Custom matrix file 30CUSTOM_MATRIX = yes # Custom matrix file
21AUDIO_ENABLE = yes
22RGBLIGHT_ENABLE = no
23# SERIAL_LINK_ENABLE = yes 31# SERIAL_LINK_ENABLE = yes
24ENCODER_ENABLE = yes 32ENCODER_ENABLE = yes
33
34LAYOUTS = ortho_5x12
diff --git a/keyboards/preonic/rules.mk b/keyboards/preonic/rules.mk
deleted file mode 100644
index e646f2493..000000000
--- a/keyboards/preonic/rules.mk
+++ /dev/null
@@ -1,74 +0,0 @@
1
2
3# MCU name
4#MCU = at90usb1287
5MCU = atmega32u4
6
7# Processor frequency.
8# This will define a symbol, F_CPU, in all source code files equal to the
9# processor frequency in Hz. You can then use this symbol in your source code to
10# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
11# automatically to create a 32-bit value in your source code.
12#
13# This will be an integer division of F_USB below, as it is sourced by
14# F_USB after it has run through any CPU prescalers. Note that this value
15# does not *change* the processor frequency - it should merely be updated to
16# reflect the processor speed set externally so that the code can use accurate
17# software delays.
18F_CPU = 16000000
19
20#
21# LUFA specific
22#
23# Target architecture (see library "Board Types" documentation).
24ARCH = AVR8
25
26# Input clock frequency.
27# This will define a symbol, F_USB, in all source code files equal to the
28# input clock frequency (before any prescaling is performed) in Hz. This value may
29# differ from F_CPU if prescaling is used on the latter, and is required as the
30# raw input clock is fed directly to the PLL sections of the AVR for high speed
31# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
32# at the end, this will be done automatically to create a 32-bit value in your
33# source code.
34#
35# If no clock division is performed on the input clock inside the AVR (via the
36# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
37F_USB = $(F_CPU)
38
39# Bootloader
40# This definition is optional, and if your keyboard supports multiple bootloaders of
41# different sizes, comment this out, and the correct address will be loaded
42# automatically (+60). See bootloader.mk for all options.
43ifeq ($(strip $(KEYBOARD)), preonic/rev1)
44 BOOTLOADER = atmel-dfu
45endif
46ifeq ($(strip $(KEYBOARD)), preonic/rev2)
47 BOOTLOADER = qmk-dfu
48endif
49
50# Interrupt driven control endpoint task(+60)
51OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
52
53# Build Options
54# change to "no" to disable the options, or define them in the Makefile in
55# the appropriate keymap folder that will get included automatically
56#
57BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
58MOUSEKEY_ENABLE = no # Mouse keys(+4700)
59EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
60CONSOLE_ENABLE = yes # Console for debug(+400)
61COMMAND_ENABLE = no # Commands for debug and configuration
62NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
63BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
64MIDI_ENABLE = no # MIDI controls
65AUDIO_ENABLE = yes # Audio output on port C6
66UNICODE_ENABLE = no # Unicode
67BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
68RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
69API_SYSEX_ENABLE = no
70
71# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
72SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
73
74LAYOUTS = ortho_5x12