diff options
| author | noroadsleft <18669334+noroadsleft@users.noreply.github.com> | 2019-04-29 11:04:56 -0700 |
|---|---|---|
| committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-04-29 11:04:56 -0700 |
| commit | e337bb82a3b418dfd6c60b8c615322c854e5995d (patch) | |
| tree | 083fd6f6051fdea9611fdbc8604aaf6b9f9df8ce | |
| parent | 6806398246c7201b84c3af508aa09b6735973d11 (diff) | |
| download | qmk_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.mk | 38 | ||||
| -rw-r--r-- | keyboards/planck/light/rules.mk | 35 | ||||
| -rw-r--r-- | keyboards/planck/readme.md | 7 | ||||
| -rw-r--r-- | keyboards/planck/rev1/rules.mk | 30 | ||||
| -rw-r--r-- | keyboards/planck/rev2/rules.mk | 30 | ||||
| -rw-r--r-- | keyboards/planck/rev3/rules.mk | 36 | ||||
| -rw-r--r-- | keyboards/planck/rev4/rules.mk | 34 | ||||
| -rw-r--r-- | keyboards/planck/rev5/rules.mk | 34 | ||||
| -rw-r--r-- | keyboards/planck/rev6/rules.mk | 35 | ||||
| -rw-r--r-- | keyboards/planck/rules.mk | 46 | ||||
| -rw-r--r-- | keyboards/preonic/readme.md | 11 | ||||
| -rw-r--r-- | keyboards/preonic/rev1/rules.mk | 67 | ||||
| -rw-r--r-- | keyboards/preonic/rev2/rules.mk | 67 | ||||
| -rw-r--r-- | keyboards/preonic/rev3/rules.mk | 34 | ||||
| -rw-r--r-- | keyboards/preonic/rules.mk | 74 |
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 | ||
| 2 | LAYOUTS += ortho_4x12 | ||
| 3 | |||
| 4 | # Cortex version | 1 | # Cortex version |
| 5 | MCU = STM32F303 | 2 | MCU = STM32F303 |
| 6 | 3 | ||
| 4 | # Interrupt driven control endpoint task(+60) | ||
| 5 | OPT_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 | # |
| 10 | BACKLIGHT_ENABLE = no | 11 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) |
| 11 | BOOTMAGIC_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.) |
| 13 | MOUSEKEY_ENABLE = yes # Mouse keys | 13 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) |
| 14 | EXTRAKEY_ENABLE = yes # Audio control and System control | 14 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) |
| 15 | CONSOLE_ENABLE = yes # Console for debug | 15 | CONSOLE_ENABLE = yes # Console for debug(+400) |
| 16 | COMMAND_ENABLE = yes # Commands for debug and configuration | 16 | COMMAND_ENABLE = yes # Commands for debug and configuration |
| 17 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 18 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 19 | MIDI_ENABLE = no # MIDI controls | ||
| 20 | AUDIO_ENABLE = yes # Audio output on port C6 | ||
| 21 | UNICODE_ENABLE = no # Unicode | ||
| 22 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 23 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 24 | API_SYSEX_ENABLE = no | ||
| 25 | |||
| 26 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 27 | SLEEP_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 |
| 18 | NKRO_ENABLE = yes # USB Nkey Rollover | 29 | |
| 19 | CUSTOM_MATRIX = no # Custom matrix file | 30 | CUSTOM_MATRIX = no # Custom matrix file |
| 20 | AUDIO_ENABLE = yes | ||
| 21 | RGBLIGHT_ENABLE = no | ||
| 22 | # SERIAL_LINK_ENABLE = yes | 31 | # SERIAL_LINK_ENABLE = yes |
| 23 | ENCODER_ENABLE = yes | 32 | ENCODER_ENABLE = yes |
| 24 | RGB_MATRIX_ENABLE = IS31FL3737 | 33 | RGB_MATRIX_ENABLE = IS31FL3737 |
| 34 | |||
| 35 | LAYOUTS = ortho_4x12 planck_mit | ||
| 36 | LAYOUTS_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 @@ | |||
| 1 | MIDI_ENABLE = yes | 1 | # MCU name |
| 2 | MCU = 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. | ||
| 8 | BOOTLOADER = atmel-dfu | ||
| 9 | |||
| 10 | # Interrupt driven control endpoint task(+60) | ||
| 11 | OPT_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 | # | ||
| 17 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000) | ||
| 18 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 20 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 21 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 22 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 23 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 24 | MIDI_ENABLE = yes # MIDI controls | ||
| 2 | AUDIO_ENABLE = yes # Audio output on port C6 | 25 | AUDIO_ENABLE = yes # Audio output on port C6 |
| 26 | UNICODE_ENABLE = no # Unicode | ||
| 27 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 28 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 3 | RGB_MATRIX_ENABLE = yes | 29 | RGB_MATRIX_ENABLE = yes |
| 30 | API_SYSEX_ENABLE = no | ||
| 31 | |||
| 32 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 33 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 4 | 34 | ||
| 5 | MCU = at90usb1286 \ No newline at end of file | 35 | LAYOUTS = ortho_4x12 planck_mit |
| 36 | LAYOUTS_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 | |||
| 6 | A compact 40% (12x4) ortholinear keyboard kit made and sold by OLKB and Massdrop. [More info on qmk.fm](http://qmk.fm/planck/) | 6 | A compact 40% (12x4) ortholinear keyboard kit made and sold by OLKB and Massdrop. [More info on qmk.fm](http://qmk.fm/planck/) |
| 7 | 7 | ||
| 8 | Keyboard Maintainer: [Jack Humbert](https://github.com/jackhumbert) | 8 | Keyboard Maintainer: [Jack Humbert](https://github.com/jackhumbert) |
| 9 | Hardware Supported: Planck PCB rev1, rev2, rev3, rev4, Teensy 2.0 | 9 | Hardware Supported: Planck PCB rev1, rev2, rev3, rev4, rev5, rev6; Planck Light |
| 10 | Hardware Availability: [OLKB.com](https://olkb.com), [Massdrop](https://www.massdrop.com/buy/planck-mechanical-keyboard?mode=guest_open) | 10 | Hardware Availability: [OLKB.com](https://olkb.com), [Massdrop](https://www.massdrop.com/buy/planck-mechanical-keyboard?mode=guest_open) |
| 11 | 11 | ||
| 12 | Make example for this keyboard (after setting up your build environment): | 12 | Make 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 | ||
| 16 | Install examples: | 16 | Install 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 | ||
| 20 | See [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. | 21 | See 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 @@ | |||
| 1 | AUDIO_ENABLE = no # Audio output on port C6 | 1 | # MCU name |
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Interrupt driven control endpoint task(+60) | ||
| 5 | OPT_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 | # | ||
| 11 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000) | ||
| 12 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 13 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 14 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 15 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 16 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 17 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 18 | MIDI_ENABLE = no # MIDI controls | ||
| 19 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 20 | UNICODE_ENABLE = no # Unicode | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 22 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 23 | API_SYSEX_ENABLE = no | ||
| 24 | |||
| 25 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 26 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 27 | |||
| 28 | LAYOUTS = ortho_4x12 planck_mit | ||
| 29 | LAYOUTS_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 @@ | |||
| 1 | AUDIO_ENABLE = no # Audio output on port C6 | 1 | # MCU name |
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Interrupt driven control endpoint task(+60) | ||
| 5 | OPT_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 | # | ||
| 11 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000) | ||
| 12 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 13 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 14 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 15 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 16 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 17 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 18 | MIDI_ENABLE = no # MIDI controls | ||
| 19 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 20 | UNICODE_ENABLE = no # Unicode | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 22 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 23 | API_SYSEX_ENABLE = no | ||
| 24 | |||
| 25 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 26 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 27 | |||
| 28 | LAYOUTS = ortho_4x12 planck_mit | ||
| 29 | LAYOUTS_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 @@ | |||
| 1 | AUDIO_ENABLE = no # Audio output on port C6 | 1 | # MCU name |
| 2 | MCU = 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. | ||
| 8 | BOOTLOADER = atmel-dfu | ||
| 9 | |||
| 10 | # Interrupt driven control endpoint task(+60) | ||
| 11 | OPT_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 | # | ||
| 17 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000) | ||
| 18 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 20 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 21 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 22 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 23 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 24 | MIDI_ENABLE = no # MIDI controls | ||
| 25 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 26 | UNICODE_ENABLE = no # Unicode | ||
| 27 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 28 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 29 | API_SYSEX_ENABLE = no | ||
| 30 | |||
| 31 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 32 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 33 | |||
| 34 | LAYOUTS = ortho_4x12 planck_mit | ||
| 35 | LAYOUTS_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 | ||
| 2 | MCU = 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. | ||
| 8 | BOOTLOADER = atmel-dfu | ||
| 9 | |||
| 10 | # Interrupt driven control endpoint task(+60) | ||
| 11 | OPT_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 | # | ||
| 17 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000) | ||
| 18 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 20 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 21 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 22 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 23 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 24 | MIDI_ENABLE = no # MIDI controls | ||
| 1 | AUDIO_ENABLE = yes # Audio output on port C6 | 25 | AUDIO_ENABLE = yes # Audio output on port C6 |
| 26 | UNICODE_ENABLE = no # Unicode | ||
| 27 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 28 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 29 | API_SYSEX_ENABLE = no | ||
| 30 | |||
| 31 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 32 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 33 | |||
| 34 | LAYOUTS = ortho_4x12 planck_mit | ||
| 35 | LAYOUTS_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 | ||
| 2 | MCU = 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. | ||
| 8 | BOOTLOADER = qmk-dfu | ||
| 9 | |||
| 10 | # Interrupt driven control endpoint task(+60) | ||
| 11 | OPT_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 | # | ||
| 17 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000) | ||
| 18 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 20 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 21 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 22 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 23 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 24 | MIDI_ENABLE = no # MIDI controls | ||
| 1 | AUDIO_ENABLE = yes # Audio output on port C6 | 25 | AUDIO_ENABLE = yes # Audio output on port C6 |
| 26 | UNICODE_ENABLE = no # Unicode | ||
| 27 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 28 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 29 | API_SYSEX_ENABLE = no | ||
| 30 | |||
| 31 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 32 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 33 | |||
| 34 | LAYOUTS = ortho_4x12 planck_mit | ||
| 35 | LAYOUTS_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 |
| 6 | MCU = STM32F303 | 6 | MCU = STM32F303 |
| 7 | 7 | ||
| 8 | # Interrupt driven control endpoint task(+60) | ||
| 9 | OPT_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 | # |
| 11 | BACKLIGHT_ENABLE = no | 15 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) |
| 12 | BOOTMAGIC_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.) |
| 14 | MOUSEKEY_ENABLE = yes # Mouse keys | 17 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) |
| 15 | EXTRAKEY_ENABLE = yes # Audio control and System control | 18 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) |
| 16 | CONSOLE_ENABLE = yes # Console for debug | 19 | CONSOLE_ENABLE = yes # Console for debug(+400) |
| 17 | COMMAND_ENABLE = yes # Commands for debug and configuration | 20 | COMMAND_ENABLE = yes # Commands for debug and configuration |
| 21 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 22 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 23 | MIDI_ENABLE = no # MIDI controls | ||
| 24 | AUDIO_ENABLE = yes # Audio output on port C6 | ||
| 25 | UNICODE_ENABLE = no # Unicode | ||
| 26 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 27 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 28 | API_SYSEX_ENABLE = no | ||
| 29 | |||
| 30 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 31 | SLEEP_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 |
| 19 | NKRO_ENABLE = yes # USB Nkey Rollover | 33 | |
| 20 | CUSTOM_MATRIX = yes # Custom matrix file | 34 | CUSTOM_MATRIX = yes # Custom matrix file |
| 21 | AUDIO_ENABLE = yes | ||
| 22 | RGBLIGHT_ENABLE = no | ||
| 23 | # SERIAL_LINK_ENABLE = yes | 35 | # SERIAL_LINK_ENABLE = yes |
| 24 | ENCODER_ENABLE = yes | 36 | ENCODER_ENABLE = yes |
| 37 | |||
| 38 | LAYOUTS = ortho_4x12 planck_mit | ||
| 39 | LAYOUTS_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 | ||
| 2 | MCU = 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. | ||
| 8 | ifeq ($(strip $(KEYBOARD)), planck/rev3) | ||
| 9 | BOOTLOADER = atmel-dfu | ||
| 10 | endif | ||
| 11 | ifeq ($(strip $(KEYBOARD)), planck/rev4) | ||
| 12 | BOOTLOADER = atmel-dfu | ||
| 13 | endif | ||
| 14 | ifeq ($(strip $(KEYBOARD)), planck/rev5) | ||
| 15 | BOOTLOADER = qmk-dfu | ||
| 16 | endif | ||
| 17 | ifeq ($(strip $(KEYBOARD)), planck/light) | ||
| 18 | BOOTLOADER = atmel-dfu | ||
| 19 | endif | ||
| 20 | |||
| 21 | # Interrupt driven control endpoint task(+60) | ||
| 22 | OPT_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 | # | ||
| 28 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 29 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 30 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 31 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 32 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 33 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 34 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 35 | MIDI_ENABLE = no # MIDI controls | ||
| 36 | AUDIO_ENABLE = yes # Audio output on port C6 | ||
| 37 | UNICODE_ENABLE = no # Unicode | ||
| 38 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 39 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 40 | API_SYSEX_ENABLE = no | ||
| 41 | |||
| 42 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 43 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 44 | |||
| 45 | LAYOUTS = ortho_4x12 planck_mit planck_grid | ||
| 46 | LAYOUTS_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 | |||
| 6 | A compact 50% (12x5) ortholinear keyboard kit made and sold by OLKB and Massdrop. [More info on qmk.fm](http://qmk.fm/preonic/) | 6 | A compact 50% (12x5) ortholinear keyboard kit made and sold by OLKB and Massdrop. [More info on qmk.fm](http://qmk.fm/preonic/) |
| 7 | 7 | ||
| 8 | Keyboard Maintainer: [Jack Humbert](https://github.com/jackhumbert) | 8 | Keyboard Maintainer: [Jack Humbert](https://github.com/jackhumbert) |
| 9 | Hardware Supported: Preonic PCB rev1, Teensy 2.0 | 9 | Hardware Supported: Preonic PCB rev1, rev2, rev3 |
| 10 | Hardware Availability: [OLKB.com](https://olkb.com/preonic/), [Massdrop](https://www.massdrop.com/buy/preonic-mechanical-keyboard?mode=guest_open) | 10 | Hardware Availability: [OLKB.com](https://olkb.com/preonic/), [Massdrop](https://www.massdrop.com/buy/preonic-mechanical-keyboard?mode=guest_open) |
| 11 | 11 | ||
| 12 | Make example for this keyboard (after setting up your build environment): | 12 | Make example for this keyboard (after setting up your build environment): |
| 13 | 13 | ||
| 14 | make preonic:default | 14 | make preonic/rev2:default |
| 15 | 15 | ||
| 16 | See [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 | 16 | Install examples: |
| 17 | |||
| 18 | make preonic/rev2:default:dfu # For Preonic rev1 or rev2 | ||
| 19 | make preonic/rev3:default:dfu-util # For Preonic rev3 | ||
| 20 | |||
| 21 | See 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 | ||
| 3 | MCU = 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. | ||
| 16 | F_CPU = 16000000 | ||
| 17 | |||
| 18 | # | ||
| 19 | # LUFA specific | ||
| 20 | # | ||
| 21 | # Target architecture (see library "Board Types" documentation). | ||
| 22 | ARCH = 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. | ||
| 35 | F_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. | ||
| 41 | BOOTLOADER = atmel-dfu | ||
| 42 | |||
| 43 | # Interrupt driven control endpoint task(+60) | ||
| 44 | OPT_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 | # | ||
| 50 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000) | ||
| 51 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 52 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 53 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 54 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 55 | NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 56 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 57 | MIDI_ENABLE = no # MIDI controls | ||
| 58 | AUDIO_ENABLE = yes # Audio output on port C6 | ||
| 59 | UNICODE_ENABLE = no # Unicode | ||
| 60 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 61 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 62 | API_SYSEX_ENABLE = no | ||
| 63 | |||
| 64 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 65 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 66 | |||
| 67 | LAYOUTS = 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 | ||
| 3 | MCU = 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. | ||
| 16 | F_CPU = 16000000 | ||
| 17 | |||
| 18 | # | ||
| 19 | # LUFA specific | ||
| 20 | # | ||
| 21 | # Target architecture (see library "Board Types" documentation). | ||
| 22 | ARCH = 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. | ||
| 35 | F_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. | ||
| 41 | BOOTLOADER = qmk-dfu | ||
| 42 | |||
| 43 | # Interrupt driven control endpoint task(+60) | ||
| 44 | OPT_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 | # | ||
| 50 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000) | ||
| 51 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 52 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 53 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 54 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 55 | NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 56 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 57 | MIDI_ENABLE = no # MIDI controls | ||
| 58 | AUDIO_ENABLE = yes # Audio output on port C6 | ||
| 59 | UNICODE_ENABLE = no # Unicode | ||
| 60 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 61 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 62 | API_SYSEX_ENABLE = no | ||
| 63 | |||
| 64 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 65 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 66 | |||
| 67 | LAYOUTS = 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 |
| 2 | SRC = matrix.c | 2 | SRC = matrix.c |
| 3 | LAYOUTS += ortho_5x12 | ||
| 4 | 3 | ||
| 5 | # Cortex version | 4 | # Cortex version |
| 6 | MCU = STM32F303 | 5 | MCU = 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 | # |
| 11 | BACKLIGHT_ENABLE = no | 11 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) |
| 12 | BOOTMAGIC_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.) |
| 14 | MOUSEKEY_ENABLE = yes # Mouse keys | 13 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) |
| 15 | EXTRAKEY_ENABLE = yes # Audio control and System control | 14 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) |
| 16 | CONSOLE_ENABLE = yes # Console for debug | 15 | CONSOLE_ENABLE = yes # Console for debug(+400) |
| 17 | COMMAND_ENABLE = yes # Commands for debug and configuration | 16 | COMMAND_ENABLE = yes # Commands for debug and configuration |
| 18 | #SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | 17 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 19 | NKRO_ENABLE = yes # USB Nkey Rollover | 18 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality |
| 19 | MIDI_ENABLE = no # MIDI controls | ||
| 20 | AUDIO_ENABLE = yes # Audio output on port C6 | ||
| 21 | UNICODE_ENABLE = no # Unicode | ||
| 22 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 23 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 24 | API_SYSEX_ENABLE = no | ||
| 25 | |||
| 26 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 27 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 28 | #SLEEP_LED_ENABLE = yes | ||
| 29 | |||
| 20 | CUSTOM_MATRIX = yes # Custom matrix file | 30 | CUSTOM_MATRIX = yes # Custom matrix file |
| 21 | AUDIO_ENABLE = yes | ||
| 22 | RGBLIGHT_ENABLE = no | ||
| 23 | # SERIAL_LINK_ENABLE = yes | 31 | # SERIAL_LINK_ENABLE = yes |
| 24 | ENCODER_ENABLE = yes | 32 | ENCODER_ENABLE = yes |
| 33 | |||
| 34 | LAYOUTS = 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 | ||
| 5 | MCU = 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. | ||
| 18 | F_CPU = 16000000 | ||
| 19 | |||
| 20 | # | ||
| 21 | # LUFA specific | ||
| 22 | # | ||
| 23 | # Target architecture (see library "Board Types" documentation). | ||
| 24 | ARCH = 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. | ||
| 37 | F_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. | ||
| 43 | ifeq ($(strip $(KEYBOARD)), preonic/rev1) | ||
| 44 | BOOTLOADER = atmel-dfu | ||
| 45 | endif | ||
| 46 | ifeq ($(strip $(KEYBOARD)), preonic/rev2) | ||
| 47 | BOOTLOADER = qmk-dfu | ||
| 48 | endif | ||
| 49 | |||
| 50 | # Interrupt driven control endpoint task(+60) | ||
| 51 | OPT_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 | # | ||
| 57 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 58 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 59 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 60 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 61 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 62 | NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 63 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 64 | MIDI_ENABLE = no # MIDI controls | ||
| 65 | AUDIO_ENABLE = yes # Audio output on port C6 | ||
| 66 | UNICODE_ENABLE = no # Unicode | ||
| 67 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 68 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 69 | API_SYSEX_ENABLE = no | ||
| 70 | |||
| 71 | # 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 | ||
| 73 | |||
| 74 | LAYOUTS = ortho_5x12 | ||
