aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2019-10-25 07:50:13 +1100
committerDrashna Jaelre <drashna@live.com>2019-10-24 13:50:13 -0700
commite96cac0814995e2a0735708727cbab599d6cf5f1 (patch)
tree2f5da56d6701d171541a3813dd7a93d3e1d5073c
parent335dd0271e344fec1a0f086b34da6f8ae0d8bd60 (diff)
downloadqmk_firmware-e96cac0814995e2a0735708727cbab599d6cf5f1.tar.gz
qmk_firmware-e96cac0814995e2a0735708727cbab599d6cf5f1.zip
Cleanup rules.mk for 32U4 keyboards, L-M (#7120)
* Cleanup rules.mk for 32U4 keyboards, L-M * Move some stuff to keyboard level
-rw-r--r--keyboards/laptreus/rules.mk48
-rw-r--r--keyboards/launchpad/keymaps/default/rules.mk22
-rw-r--r--keyboards/launchpad/keymaps/default_rgb/rules.mk2
-rw-r--r--keyboards/launchpad/rev1/rules.mk3
-rw-r--r--keyboards/launchpad/rules.mk51
-rw-r--r--keyboards/lazydesigners/dimple/rules.mk40
-rw-r--r--keyboards/lazydesigners/the50/rules.mk43
-rw-r--r--keyboards/lazydesigners/the60/rules.mk43
-rw-r--r--keyboards/lets_split/keymaps/default/rules.mk0
-rw-r--r--keyboards/lets_split/rev1/rules.mk1
-rw-r--r--keyboards/lets_split/rev2/rules.mk1
-rw-r--r--keyboards/lets_split/rules.mk38
-rw-r--r--keyboards/lets_split_eh/eh/rules.mk2
-rw-r--r--keyboards/lets_split_eh/keymaps/default/rules.mk0
-rw-r--r--keyboards/lets_split_eh/rules.mk48
-rw-r--r--keyboards/lfkeyboards/lfk65_hs/keymaps/default/rules.mk0
-rw-r--r--keyboards/lfkeyboards/lfk65_hs/rules.mk12
-rw-r--r--keyboards/lfkeyboards/lfkpad/rules.mk20
-rw-r--r--keyboards/lily58/rev1/rules.mk2
-rw-r--r--keyboards/lily58/rules.mk52
-rw-r--r--keyboards/m10a/keymaps/default/rules.mk0
-rw-r--r--keyboards/m10a/rules.mk52
-rw-r--r--keyboards/maartenwut/atom47/rev2/rules.mk1
-rw-r--r--keyboards/maartenwut/atom47/rules.mk55
-rw-r--r--keyboards/maartenwut/plain60/keymaps/via/rules.mk1
-rw-r--r--keyboards/maartenwut/plain60/rules.mk54
-rw-r--r--keyboards/maartenwut/ta65/rules.mk51
-rw-r--r--keyboards/maartenwut/wasdat/rules.mk51
-rwxr-xr-xkeyboards/maartenwut/wonderland/rules.mk46
-rw-r--r--keyboards/maxipad/promicro/rules.mk50
-rw-r--r--keyboards/maxipad/teensy2/rules.mk50
-rw-r--r--keyboards/maxr1998/phoebe/keymaps/default/rules.mk0
-rw-r--r--keyboards/maxr1998/phoebe/rules.mk13
-rw-r--r--keyboards/maxr1998/pulse4k/keymaps/default/rules.mk0
-rw-r--r--keyboards/maxr1998/pulse4k/rules.mk16
-rw-r--r--keyboards/mechkeys/mk60/rules.mk51
-rw-r--r--keyboards/mechllama/g35/rules.mk14
-rwxr-xr-xkeyboards/mechmini/v2/rules.mk53
-rw-r--r--keyboards/meira/featherble/rules.mk4
-rw-r--r--keyboards/meira/promicro/rules.mk13
-rw-r--r--keyboards/meira/rules.mk35
-rw-r--r--keyboards/meishi/rules.mk54
-rw-r--r--keyboards/meishi2/rules.mk51
-rw-r--r--keyboards/melody96/rules.mk47
-rw-r--r--keyboards/meson/rules.mk51
-rw-r--r--keyboards/miniaxe/keymaps/underglow/rules.mk3
-rw-r--r--keyboards/miniaxe/rules.mk52
-rw-r--r--keyboards/minidox/rev1/rules.mk2
-rw-r--r--keyboards/minidox/rules.mk56
-rw-r--r--keyboards/mint60/rules.mk63
-rw-r--r--keyboards/mitosis/rules.mk63
-rw-r--r--keyboards/miuni32/keymaps/default/rules.mk18
-rw-r--r--keyboards/miuni32/rules.mk59
-rw-r--r--keyboards/model01/keymaps/default/rules.mk2
-rw-r--r--keyboards/model01/rules.mk53
-rw-r--r--keyboards/moon/rules.mk40
-rw-r--r--keyboards/mt980/rules.mk44
-rw-r--r--keyboards/mxss/rules.mk54
58 files changed, 269 insertions, 1481 deletions
diff --git a/keyboards/laptreus/rules.mk b/keyboards/laptreus/rules.mk
index 01401ab38..237a6ac8b 100644
--- a/keyboards/laptreus/rules.mk
+++ b/keyboards/laptreus/rules.mk
@@ -1,46 +1,18 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency. 4# Processor frequency
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 8000000 5F_CPU = 8000000
16 6
17# 7# Bootloader selection
18# LUFA specific 8# Teensy halfkay
19# 9# Pro Micro caterina
20# Target architecture (see library "Board Types" documentation). 10# Atmel DFU atmel-dfu
21ARCH = AVR8 11# LUFA DFU lufa-dfu
22 12# QMK DFU qmk-dfu
23# Input clock frequency. 13# ATmega32A bootloadHID
24# This will define a symbol, F_USB, in all source code files equal to the 14# ATmega328P USBasp
25# input clock frequency (before any prescaling is performed) in Hz. This value may 15BOOTLOADER = caterina
26# differ from F_CPU if prescaling is used on the latter, and is required as the
27# raw input clock is fed directly to the PLL sections of the AVR for high speed
28# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
29# at the end, this will be done automatically to create a 32-bit value in your
30# source code.
31#
32# If no clock division is performed on the input clock inside the AVR (via the
33# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
34F_USB = $(F_CPU)
35
36# Bootloader
37# This definition is optional, and if your keyboard supports multiple bootloaders of
38# different sizes, comment this out, and the correct address will be loaded
39# automatically (+60). See bootloader.mk for all options.
40BOOTLOADER = catarina
41
42# Interrupt driven control endpoint task(+60)
43OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
44 16
45# Build Options 17# Build Options
46# change to "no" to disable the options, or define them in the Makefile in 18# change to "no" to disable the options, or define them in the Makefile in
diff --git a/keyboards/launchpad/keymaps/default/rules.mk b/keyboards/launchpad/keymaps/default/rules.mk
deleted file mode 100644
index d1fa27f41..000000000
--- a/keyboards/launchpad/keymaps/default/rules.mk
+++ /dev/null
@@ -1,22 +0,0 @@
1
2
3# Build Options
4# change to "no" to disable the options, or define them in the Makefile in
5# the appropriate keymap folder that will get included automatically
6#
7BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
8MOUSEKEY_ENABLE = no # Mouse keys(+4700)
9EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
10CONSOLE_ENABLE = no # Console for debug(+400)
11COMMAND_ENABLE = no # Commands for debug and configuration
12NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
13BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
14MIDI_ENABLE = no # MIDI controls
15AUDIO_ENABLE = no # Audio output on port C6
16UNICODE_ENABLE = no # Unicode
17BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
18RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
19
20# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
21SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
22
diff --git a/keyboards/launchpad/keymaps/default_rgb/rules.mk b/keyboards/launchpad/keymaps/default_rgb/rules.mk
index 164232f33..1e3cebb14 100644
--- a/keyboards/launchpad/keymaps/default_rgb/rules.mk
+++ b/keyboards/launchpad/keymaps/default_rgb/rules.mk
@@ -1 +1 @@
RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. \ No newline at end of file RGBLIGHT_ENABLE = yes
diff --git a/keyboards/launchpad/rev1/rules.mk b/keyboards/launchpad/rev1/rules.mk
index bafce654a..e69de29bb 100644
--- a/keyboards/launchpad/rev1/rules.mk
+++ b/keyboards/launchpad/rev1/rules.mk
@@ -1,3 +0,0 @@
1BACKLIGHT_ENABLE = no
2RGBLIGHT_ENABLE = no
3AUDIO_ENABLE = no \ No newline at end of file
diff --git a/keyboards/launchpad/rules.mk b/keyboards/launchpad/rules.mk
index b2c64db7a..59b285cf5 100644
--- a/keyboards/launchpad/rules.mk
+++ b/keyboards/launchpad/rules.mk
@@ -1,47 +1,16 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency. 4# Bootloader selection
5# This will define a symbol, F_CPU, in all source code files equal to the 5# Teensy halfkay
6# processor frequency in Hz. You can then use this symbol in your source code to 6# Pro Micro caterina
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done 7# Atmel DFU atmel-dfu
8# automatically to create a 32-bit value in your source code. 8# LUFA DFU lufa-dfu
9# 9# QMK DFU qmk-dfu
10# This will be an integer division of F_USB below, as it is sourced by 10# ATmega32A bootloadHID
11# F_USB after it has run through any CPU prescalers. Note that this value 11# ATmega328P USBasp
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17#
18# LUFA specific
19#
20# Target architecture (see library "Board Types" documentation).
21ARCH = AVR8
22
23# Input clock frequency.
24# This will define a symbol, F_USB, in all source code files equal to the
25# input clock frequency (before any prescaling is performed) in Hz. This value may
26# differ from F_CPU if prescaling is used on the latter, and is required as the
27# raw input clock is fed directly to the PLL sections of the AVR for high speed
28# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
29# at the end, this will be done automatically to create a 32-bit value in your
30# source code.
31#
32# If no clock division is performed on the input clock inside the AVR (via the
33# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
34F_USB = $(F_CPU)
35
36# Bootloader
37# This definition is optional, and if your keyboard supports multiple bootloaders of
38# different sizes, comment this out, and the correct address will be loaded
39# automatically (+60). See bootloader.mk for all options.
40BOOTLOADER = caterina 12BOOTLOADER = caterina
41 13
42# Interrupt driven control endpoint task(+60)
43OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
44
45# Build Options 14# Build Options
46# change to "no" to disable the options, or define them in the Makefile in 15# change to "no" to disable the options, or define them in the Makefile in
47# the appropriate keymap folder that will get included automatically 16# the appropriate keymap folder that will get included automatically
@@ -50,8 +19,8 @@ BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
50MOUSEKEY_ENABLE = no # Mouse keys(+4700) 19MOUSEKEY_ENABLE = no # Mouse keys(+4700)
51EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 20EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
52CONSOLE_ENABLE = no # Console for debug(+400) 21CONSOLE_ENABLE = no # Console for debug(+400)
53COMMAND_ENABLE = yes # Commands for debug and configuration 22COMMAND_ENABLE = no # Commands for debug and configuration
54NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 23NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
55BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality 24BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
56MIDI_ENABLE = no # MIDI controls 25MIDI_ENABLE = no # MIDI controls
57AUDIO_ENABLE = no # Audio output on port C6 26AUDIO_ENABLE = no # Audio output on port C6
diff --git a/keyboards/lazydesigners/dimple/rules.mk b/keyboards/lazydesigners/dimple/rules.mk
index a818e871c..99e4911af 100644
--- a/keyboards/lazydesigners/dimple/rules.mk
+++ b/keyboards/lazydesigners/dimple/rules.mk
@@ -1,50 +1,14 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
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# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Bootloader selection 4# Bootloader selection
42# Teensy halfkay 5# Teensy halfkay
43# Pro Micro caterina 6# Pro Micro caterina
44# Atmel DFU atmel-dfu 7# Atmel DFU atmel-dfu
45# LUFA DFU lufa-dfu 8# LUFA DFU lufa-dfu
46# QMK DFU qmk-dfu 9# QMK DFU qmk-dfu
47# atmega32a bootloadHID 10# ATmega32A bootloadHID
11# ATmega328P USBasp
48BOOTLOADER = atmel-dfu 12BOOTLOADER = atmel-dfu
49 13
50# Build Options 14# Build Options
diff --git a/keyboards/lazydesigners/the50/rules.mk b/keyboards/lazydesigners/the50/rules.mk
index ae211ec66..561e38a99 100644
--- a/keyboards/lazydesigners/the50/rules.mk
+++ b/keyboards/lazydesigners/the50/rules.mk
@@ -1,41 +1,14 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency. 4# Bootloader selection
5# This will define a symbol, F_CPU, in all source code files equal to the 5# Teensy halfkay
6# processor frequency in Hz. You can then use this symbol in your source code to 6# Pro Micro caterina
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done 7# Atmel DFU atmel-dfu
8# automatically to create a 32-bit value in your source code. 8# LUFA DFU lufa-dfu
9# 9# QMK DFU qmk-dfu
10# This will be an integer division of F_USB below, as it is sourced by 10# ATmega32A bootloadHID
11# F_USB after it has run through any CPU prescalers. Note that this value 11# ATmega328P USBasp
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17#
18# LUFA specific
19#
20# Target architecture (see library "Board Types" documentation).
21ARCH = AVR8
22
23# Input clock frequency.
24# This will define a symbol, F_USB, in all source code files equal to the
25# input clock frequency (before any prescaling is performed) in Hz. This value may
26# differ from F_CPU if prescaling is used on the latter, and is required as the
27# raw input clock is fed directly to the PLL sections of the AVR for high speed
28# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
29# at the end, this will be done automatically to create a 32-bit value in your
30# source code.
31#
32# If no clock division is performed on the input clock inside the AVR (via the
33# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
34F_USB = $(F_CPU)
35
36# Interrupt driven control endpoint task(+60)
37OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
38
39BOOTLOADER = atmel-dfu 12BOOTLOADER = atmel-dfu
40 13
41# Build Options 14# Build Options
diff --git a/keyboards/lazydesigners/the60/rules.mk b/keyboards/lazydesigners/the60/rules.mk
index 76fb44b2c..97ea15d34 100644
--- a/keyboards/lazydesigners/the60/rules.mk
+++ b/keyboards/lazydesigners/the60/rules.mk
@@ -1,41 +1,14 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency. 4# Bootloader selection
5# This will define a symbol, F_CPU, in all source code files equal to the 5# Teensy halfkay
6# processor frequency in Hz. You can then use this symbol in your source code to 6# Pro Micro caterina
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done 7# Atmel DFU atmel-dfu
8# automatically to create a 32-bit value in your source code. 8# LUFA DFU lufa-dfu
9# 9# QMK DFU qmk-dfu
10# This will be an integer division of F_USB below, as it is sourced by 10# ATmega32A bootloadHID
11# F_USB after it has run through any CPU prescalers. Note that this value 11# ATmega328P USBasp
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17#
18# LUFA specific
19#
20# Target architecture (see library "Board Types" documentation).
21ARCH = AVR8
22
23# Input clock frequency.
24# This will define a symbol, F_USB, in all source code files equal to the
25# input clock frequency (before any prescaling is performed) in Hz. This value may
26# differ from F_CPU if prescaling is used on the latter, and is required as the
27# raw input clock is fed directly to the PLL sections of the AVR for high speed
28# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
29# at the end, this will be done automatically to create a 32-bit value in your
30# source code.
31#
32# If no clock division is performed on the input clock inside the AVR (via the
33# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
34F_USB = $(F_CPU)
35
36# Interrupt driven control endpoint task(+60)
37OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
38
39BOOTLOADER = atmel-dfu 12BOOTLOADER = atmel-dfu
40 13
41# Build Options 14# Build Options
diff --git a/keyboards/lets_split/keymaps/default/rules.mk b/keyboards/lets_split/keymaps/default/rules.mk
deleted file mode 100644
index e69de29bb..000000000
--- a/keyboards/lets_split/keymaps/default/rules.mk
+++ /dev/null
diff --git a/keyboards/lets_split/rev1/rules.mk b/keyboards/lets_split/rev1/rules.mk
index f84561674..e69de29bb 100644
--- a/keyboards/lets_split/rev1/rules.mk
+++ b/keyboards/lets_split/rev1/rules.mk
@@ -1 +0,0 @@
1BACKLIGHT_ENABLE = no \ No newline at end of file
diff --git a/keyboards/lets_split/rev2/rules.mk b/keyboards/lets_split/rev2/rules.mk
index 7b30c0bef..e69de29bb 100644
--- a/keyboards/lets_split/rev2/rules.mk
+++ b/keyboards/lets_split/rev2/rules.mk
@@ -1 +0,0 @@
1BACKLIGHT_ENABLE = no
diff --git a/keyboards/lets_split/rules.mk b/keyboards/lets_split/rules.mk
index 489965735..98736310c 100644
--- a/keyboards/lets_split/rules.mk
+++ b/keyboards/lets_split/rules.mk
@@ -1,50 +1,16 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17#
18# LUFA specific
19#
20# Target architecture (see library "Board Types" documentation).
21ARCH = AVR8
22
23# Input clock frequency.
24# This will define a symbol, F_USB, in all source code files equal to the
25# input clock frequency (before any prescaling is performed) in Hz. This value may
26# differ from F_CPU if prescaling is used on the latter, and is required as the
27# raw input clock is fed directly to the PLL sections of the AVR for high speed
28# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
29# at the end, this will be done automatically to create a 32-bit value in your
30# source code.
31#
32# If no clock division is performed on the input clock inside the AVR (via the
33# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
34F_USB = $(F_CPU)
35
36# Bootloader selection 4# Bootloader selection
37# Teensy halfkay 5# Teensy halfkay
38# Pro Micro caterina 6# Pro Micro caterina
39# Atmel DFU atmel-dfu 7# Atmel DFU atmel-dfu
40# LUFA DFU lufa-dfu 8# LUFA DFU lufa-dfu
41# QMK DFU qmk-dfu 9# QMK DFU qmk-dfu
42# atmega32a bootloadHID 10# ATmega32A bootloadHID
11# ATmega328P USBasp
43BOOTLOADER = caterina 12BOOTLOADER = caterina
44 13
45# Interrupt driven control endpoint task(+60)
46OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
47
48# Build Options 14# Build Options
49# change to "no" to disable the options, or define them in the Makefile in 15# change to "no" to disable the options, or define them in the Makefile in
50# the appropriate keymap folder that will get included automatically 16# the appropriate keymap folder that will get included automatically
diff --git a/keyboards/lets_split_eh/eh/rules.mk b/keyboards/lets_split_eh/eh/rules.mk
index c0f8760d8..31077066a 100644
--- a/keyboards/lets_split_eh/eh/rules.mk
+++ b/keyboards/lets_split_eh/eh/rules.mk
@@ -1,4 +1,2 @@
1BOOTLOADER = atmel-dfu
2
3BACKLIGHT_ENABLE = yes 1BACKLIGHT_ENABLE = yes
4RGBLIGHT_ENABLE = yes 2RGBLIGHT_ENABLE = yes
diff --git a/keyboards/lets_split_eh/keymaps/default/rules.mk b/keyboards/lets_split_eh/keymaps/default/rules.mk
deleted file mode 100644
index e69de29bb..000000000
--- a/keyboards/lets_split_eh/keymaps/default/rules.mk
+++ /dev/null
diff --git a/keyboards/lets_split_eh/rules.mk b/keyboards/lets_split_eh/rules.mk
index 27661cebb..2bcd087d8 100644
--- a/keyboards/lets_split_eh/rules.mk
+++ b/keyboards/lets_split_eh/rules.mk
@@ -1,48 +1,16 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency. 4# Bootloader selection
5# This will define a symbol, F_CPU, in all source code files equal to the 5# Teensy halfkay
6# processor frequency in Hz. You can then use this symbol in your source code to 6# Pro Micro caterina
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done 7# Atmel DFU atmel-dfu
8# automatically to create a 32-bit value in your source code. 8# LUFA DFU lufa-dfu
9# 9# QMK DFU qmk-dfu
10# This will be an integer division of F_USB below, as it is sourced by 10# ATmega32A bootloadHID
11# F_USB after it has run through any CPU prescalers. Note that this value 11# ATmega328P USBasp
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17#
18# LUFA specific
19#
20# Target architecture (see library "Board Types" documentation).
21ARCH = AVR8
22
23# Input clock frequency.
24# This will define a symbol, F_USB, in all source code files equal to the
25# input clock frequency (before any prescaling is performed) in Hz. This value may
26# differ from F_CPU if prescaling is used on the latter, and is required as the
27# raw input clock is fed directly to the PLL sections of the AVR for high speed
28# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
29# at the end, this will be done automatically to create a 32-bit value in your
30# source code.
31#
32# If no clock division is performed on the input clock inside the AVR (via the
33# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
34F_USB = $(F_CPU)
35
36# Bootloader
37# This definition is optional, and if your keyboard supports multiple bootloaders of
38# different sizes, comment this out, and the correct address will be loaded
39# automatically (+60). See bootloader.mk for all options.
40BOOTLOADER = atmel-dfu 12BOOTLOADER = atmel-dfu
41 13
42
43# Interrupt driven control endpoint task(+60)
44OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
45
46# Build Options 14# Build Options
47# change to "no" to disable the options, or define them in the Makefile in 15# change to "no" to disable the options, or define them in the Makefile in
48# the appropriate keymap folder that will get included automatically 16# the appropriate keymap folder that will get included automatically
diff --git a/keyboards/lfkeyboards/lfk65_hs/keymaps/default/rules.mk b/keyboards/lfkeyboards/lfk65_hs/keymaps/default/rules.mk
deleted file mode 100644
index e69de29bb..000000000
--- a/keyboards/lfkeyboards/lfk65_hs/keymaps/default/rules.mk
+++ /dev/null
diff --git a/keyboards/lfkeyboards/lfk65_hs/rules.mk b/keyboards/lfkeyboards/lfk65_hs/rules.mk
index 5118c3597..bfae80e0c 100644
--- a/keyboards/lfkeyboards/lfk65_hs/rules.mk
+++ b/keyboards/lfkeyboards/lfk65_hs/rules.mk
@@ -6,15 +6,3 @@ BOOT_LOADER = BootloaderHID
6 6
7# Extra source files for IS3731 lighting 7# Extra source files for IS3731 lighting
8SRC = TWIlib.c issi.c lighting.c 8SRC = TWIlib.c issi.c lighting.c
9
10# Processor frequency.
11F_CPU = 16000000
12
13# Target architecture (see library "Board Types" documentation).
14ARCH = AVR8
15
16# Input clock frequency.
17F_USB = $(F_CPU)
18
19# Interrupt driven control endpoint task(+60)
20OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
diff --git a/keyboards/lfkeyboards/lfkpad/rules.mk b/keyboards/lfkeyboards/lfkpad/rules.mk
index 83553f64c..7ed840ae9 100644
--- a/keyboards/lfkeyboards/lfkpad/rules.mk
+++ b/keyboards/lfkeyboards/lfkpad/rules.mk
@@ -1,14 +1,15 @@
1SRC = TWIlib.c issi.c lighting.c 1# MCU name
2
3MCU = atmega32u4 2MCU = atmega32u4
4OPT_DEFS += -DBOOTLOADER_SIZE=4096
5 3
6F_CPU = 16000000 4# Bootloader selection
7F_USB = $(F_CPU) 5# Teensy halfkay
8ARCH = AVR8 6# Pro Micro caterina
9 7# Atmel DFU atmel-dfu
10# Interrupt driven control endpoint task(+60) 8# LUFA DFU lufa-dfu
11OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT 9# QMK DFU qmk-dfu
10# ATmega32A bootloadHID
11# ATmega328P USBasp
12BOOTLOADER = atmel-dfu
12 13
13LAYOUTS = numpad_6x4 14LAYOUTS = numpad_6x4
14 15
@@ -31,6 +32,7 @@ TAP_DANCE_ENABLE = no
31ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled 32ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled
32WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms 33WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms
33 34
35SRC = TWIlib.c issi.c lighting.c
34 36
35ifeq ($(strip $(ISSI_ENABLE)), yes) 37ifeq ($(strip $(ISSI_ENABLE)), yes)
36 TMK_COMMON_DEFS += -DISSI_ENABLE 38 TMK_COMMON_DEFS += -DISSI_ENABLE
diff --git a/keyboards/lily58/rev1/rules.mk b/keyboards/lily58/rev1/rules.mk
index 7fc101bf2..6028b5a5b 100644
--- a/keyboards/lily58/rev1/rules.mk
+++ b/keyboards/lily58/rev1/rules.mk
@@ -1,3 +1,3 @@
1SRC += rev1/matrix.c 1SRC += rev1/matrix.c
2SRC += rev1/split_util.c 2SRC += rev1/split_util.c
3SRC += rev1/split_scomm.c \ No newline at end of file 3SRC += rev1/split_scomm.c
diff --git a/keyboards/lily58/rules.mk b/keyboards/lily58/rules.mk
index d13c88ba6..af25531ec 100644
--- a/keyboards/lily58/rules.mk
+++ b/keyboards/lily58/rules.mk
@@ -1,57 +1,16 @@
1SRC += i2c.c
2SRC += serial.c
3SRC += ssd1306.c
4
5# if firmware size over limit, try this option
6# CFLAGS += -flto
7
8# MCU name 1# MCU name
9MCU = atmega32u4 2MCU = atmega32u4
10 3
11# Processor frequency.
12# This will define a symbol, F_CPU, in all source code files equal to the
13# processor frequency in Hz. You can then use this symbol in your source code to
14# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
15# automatically to create a 32-bit value in your source code.
16#
17# This will be an integer division of F_USB below, as it is sourced by
18# F_USB after it has run through any CPU prescalers. Note that this value
19# does not *change* the processor frequency - it should merely be updated to
20# reflect the processor speed set externally so that the code can use accurate
21# software delays.
22F_CPU = 16000000
23
24#
25# LUFA specific
26#
27# Target architecture (see library "Board Types" documentation).
28ARCH = AVR8
29
30# Input clock frequency.
31# This will define a symbol, F_USB, in all source code files equal to the
32# input clock frequency (before any prescaling is performed) in Hz. This value may
33# differ from F_CPU if prescaling is used on the latter, and is required as the
34# raw input clock is fed directly to the PLL sections of the AVR for high speed
35# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
36# at the end, this will be done automatically to create a 32-bit value in your
37# source code.
38#
39# If no clock division is performed on the input clock inside the AVR (via the
40# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
41F_USB = $(F_CPU)
42
43# Bootloader selection 4# Bootloader selection
44# Teensy halfkay 5# Teensy halfkay
45# Pro Micro caterina 6# Pro Micro caterina
46# Atmel DFU atmel-dfu 7# Atmel DFU atmel-dfu
47# LUFA DFU lufa-dfu 8# LUFA DFU lufa-dfu
48# QMK DFU qmk-dfu 9# QMK DFU qmk-dfu
49# atmega32a bootloadHID 10# ATmega32A bootloadHID
11# ATmega328P USBasp
50BOOTLOADER = caterina 12BOOTLOADER = caterina
51 13
52# Interrupt driven control endpoint task(+60)
53OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
54
55# Build Options 14# Build Options
56# change to "no" to disable the options, or define them in the Makefile in 15# change to "no" to disable the options, or define them in the Makefile in
57# the appropriate keymap folder that will get included automatically 16# the appropriate keymap folder that will get included automatically
@@ -73,4 +32,11 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
73 32
74CUSTOM_MATRIX = yes 33CUSTOM_MATRIX = yes
75 34
35SRC += i2c.c
36SRC += serial.c
37SRC += ssd1306.c
38
39# if firmware size over limit, try this option
40# CFLAGS += -flto
41
76DEFAULT_FOLDER = lily58/rev1 42DEFAULT_FOLDER = lily58/rev1
diff --git a/keyboards/m10a/keymaps/default/rules.mk b/keyboards/m10a/keymaps/default/rules.mk
deleted file mode 100644
index e69de29bb..000000000
--- a/keyboards/m10a/keymaps/default/rules.mk
+++ /dev/null
diff --git a/keyboards/m10a/rules.mk b/keyboards/m10a/rules.mk
index 905babacb..739e396df 100644
--- a/keyboards/m10a/rules.mk
+++ b/keyboards/m10a/rules.mk
@@ -1,49 +1,15 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency. 4# Bootloader selection
5# This will define a symbol, F_CPU, in all source code files equal to the 5# Teensy halfkay
6# processor frequency in Hz. You can then use this symbol in your source code to 6# Pro Micro caterina
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done 7# Atmel DFU atmel-dfu
8# automatically to create a 32-bit value in your source code. 8# LUFA DFU lufa-dfu
9# 9# QMK DFU qmk-dfu
10# This will be an integer division of F_USB below, as it is sourced by 10# ATmega32A bootloadHID
11# F_USB after it has run through any CPU prescalers. Note that this value 11# ATmega328P USBasp
12# does not *change* the processor frequency - it should merely be updated to 12BOOTLOADER = atmel-dfu
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17#
18# LUFA specific
19#
20# Target architecture (see library "Board Types" documentation).
21ARCH = AVR8
22
23# Input clock frequency.
24# This will define a symbol, F_USB, in all source code files equal to the
25# input clock frequency (before any prescaling is performed) in Hz. This value may
26# differ from F_CPU if prescaling is used on the latter, and is required as the
27# raw input clock is fed directly to the PLL sections of the AVR for high speed
28# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
29# at the end, this will be done automatically to create a 32-bit value in your
30# source code.
31#
32# If no clock division is performed on the input clock inside the AVR (via the
33# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
34F_USB = $(F_CPU)
35
36# Interrupt driven control endpoint task(+60)
37OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
38
39
40# Boot Section Size in *bytes*
41# Teensy halfKay 512
42# Teensy++ halfKay 1024
43# Atmel DFU loader 4096
44# LUFA bootloader 4096
45# USBaspLoader 2048
46OPT_DEFS += -DBOOTLOADER_SIZE=4096
47 13
48# Build Options 14# Build Options
49# change to "no" to disable the options, or define them in the Makefile in 15# change to "no" to disable the options, or define them in the Makefile in
diff --git a/keyboards/maartenwut/atom47/rev2/rules.mk b/keyboards/maartenwut/atom47/rev2/rules.mk
index a3a258ed8..24d1c4199 100644
--- a/keyboards/maartenwut/atom47/rev2/rules.mk
+++ b/keyboards/maartenwut/atom47/rev2/rules.mk
@@ -1,3 +1,2 @@
1
2NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 1NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
3RGBLIGHT_ENABLE = no # Enable keyboard underlight functionality (+4870) 2RGBLIGHT_ENABLE = no # Enable keyboard underlight functionality (+4870)
diff --git a/keyboards/maartenwut/atom47/rules.mk b/keyboards/maartenwut/atom47/rules.mk
index 39bfbc2b0..0728c1a28 100644
--- a/keyboards/maartenwut/atom47/rules.mk
+++ b/keyboards/maartenwut/atom47/rules.mk
@@ -1,51 +1,15 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency. 4# Bootloader selection
5# This will define a symbol, F_CPU, in all source code files equal to the 5# Teensy halfkay
6# processor frequency in Hz. You can then use this symbol in your source code to 6# Pro Micro caterina
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done 7# Atmel DFU atmel-dfu
8# automatically to create a 32-bit value in your source code. 8# LUFA DFU lufa-dfu
9# 9# QMK DFU qmk-dfu
10# This will be an integer division of F_USB below, as it is sourced by 10# ATmega32A bootloadHID
11# F_USB after it has run through any CPU prescalers. Note that this value 11# ATmega328P USBasp
12# does not *change* the processor frequency - it should merely be updated to 12BOOTLOADER = qmk-dfu
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
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# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Boot Section Size in *bytes*
42# Teensy halfKay 512
43# Teensy++ halfKay 1024
44# Atmel DFU loader 4096
45# LUFA bootloader 4096
46# USBaspLoader 2048
47# OPT_DEFS += -DBOOTLOADER_SIZE=4096
48BOOTLOADER= qmk-dfu
49 13
50# Build Options 14# Build Options
51# comment out to disable the options. 15# comment out to disable the options.
@@ -62,4 +26,3 @@ UNICODE_ENABLE = no # Unicode
62BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 26BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
63 27
64DEFAULT_FOLDER = maartenwut/atom47/rev3 28DEFAULT_FOLDER = maartenwut/atom47/rev3
65
diff --git a/keyboards/maartenwut/plain60/keymaps/via/rules.mk b/keyboards/maartenwut/plain60/keymaps/via/rules.mk
index 0ccefbb11..2b23b188b 100644
--- a/keyboards/maartenwut/plain60/keymaps/via/rules.mk
+++ b/keyboards/maartenwut/plain60/keymaps/via/rules.mk
@@ -3,4 +3,3 @@ SRC += keyboards/wilba_tech/wt_main.c
3 3
4RAW_ENABLE = yes 4RAW_ENABLE = yes
5DYNAMIC_KEYMAP_ENABLE = yes 5DYNAMIC_KEYMAP_ENABLE = yes
6
diff --git a/keyboards/maartenwut/plain60/rules.mk b/keyboards/maartenwut/plain60/rules.mk
index aad559846..77b5a3eb9 100644
--- a/keyboards/maartenwut/plain60/rules.mk
+++ b/keyboards/maartenwut/plain60/rules.mk
@@ -1,50 +1,15 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency. 4# Bootloader selection
5# This will define a symbol, F_CPU, in all source code files equal to the 5# Teensy halfkay
6# processor frequency in Hz. You can then use this symbol in your source code to 6# Pro Micro caterina
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done 7# Atmel DFU atmel-dfu
8# automatically to create a 32-bit value in your source code. 8# LUFA DFU lufa-dfu
9# 9# QMK DFU qmk-dfu
10# This will be an integer division of F_USB below, as it is sourced by 10# ATmega32A bootloadHID
11# F_USB after it has run through any CPU prescalers. Note that this value 11# ATmega328P USBasp
12# does not *change* the processor frequency - it should merely be updated to 12BOOTLOADER = qmk-dfu
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
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# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Boot Section Size in *bytes*
42# Teensy halfKay 512
43# Teensy++ halfKay 1024
44# Atmel DFU loader 4096
45# LUFA bootloader 4096
46# USBaspLoader 2048
47OPT_DEFS += -DBOOTLOADER_SIZE=4096
48 13
49# Build Options 14# Build Options
50# comment out to disable the options. 15# comment out to disable the options.
@@ -63,4 +28,3 @@ UNICODE_ENABLE = no # Unicode
63BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 28BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
64 29
65LAYOUTS = 60_ansi 60_ansi_split_bs_rshift 60_hhkb 60_iso 60_tsangan_hhkb 30LAYOUTS = 60_ansi 60_ansi_split_bs_rshift 60_hhkb 60_iso 60_tsangan_hhkb
66
diff --git a/keyboards/maartenwut/ta65/rules.mk b/keyboards/maartenwut/ta65/rules.mk
index 47207cd46..ecc629698 100644
--- a/keyboards/maartenwut/ta65/rules.mk
+++ b/keyboards/maartenwut/ta65/rules.mk
@@ -1,49 +1,14 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency. 4# Bootloader selection
5# This will define a symbol, F_CPU, in all source code files equal to the 5# Teensy halfkay
6# processor frequency in Hz. You can then use this symbol in your source code to 6# Pro Micro caterina
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done 7# Atmel DFU atmel-dfu
8# automatically to create a 32-bit value in your source code. 8# LUFA DFU lufa-dfu
9# 9# QMK DFU qmk-dfu
10# This will be an integer division of F_USB below, as it is sourced by 10# ATmega32A bootloadHID
11# F_USB after it has run through any CPU prescalers. Note that this value 11# ATmega328P USBasp
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
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# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Boot Section Size in *bytes*
42# Teensy halfKay 512
43# Teensy++ halfKay 1024
44# Atmel DFU loader 4096
45# LUFA bootloader 4096
46# USBaspLoader 2048
47BOOTLOADER = qmk-dfu 12BOOTLOADER = qmk-dfu
48 13
49# Build Options 14# Build Options
diff --git a/keyboards/maartenwut/wasdat/rules.mk b/keyboards/maartenwut/wasdat/rules.mk
index c9deae5c5..059e84a1a 100644
--- a/keyboards/maartenwut/wasdat/rules.mk
+++ b/keyboards/maartenwut/wasdat/rules.mk
@@ -1,63 +1,16 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
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# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Bootloader selection 4# Bootloader selection
42# Teensy halfkay 5# Teensy halfkay
43# Pro Micro caterina 6# Pro Micro caterina
44# Atmel DFU atmel-dfu 7# Atmel DFU atmel-dfu
45# LUFA DFU lufa-dfu 8# LUFA DFU lufa-dfu
46# QMK DFU qmk-dfu 9# QMK DFU qmk-dfu
47# atmega32a bootloadHID 10# ATmega32A bootloadHID
11# ATmega328P USBasp
48BOOTLOADER = qmk-dfu 12BOOTLOADER = qmk-dfu
49 13
50
51# If you don't know the bootloader type, then you can specify the
52# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line
53# Teensy halfKay 512
54# Teensy++ halfKay 1024
55# Atmel DFU loader 4096
56# LUFA bootloader 4096
57# USBaspLoader 2048
58# OPT_DEFS += -DBOOTLOADER_SIZE=4096
59
60
61# Build Options 14# Build Options
62# change yes to no to disable 15# change yes to no to disable
63# 16#
diff --git a/keyboards/maartenwut/wonderland/rules.mk b/keyboards/maartenwut/wonderland/rules.mk
index 498076d4e..19c0ea591 100755
--- a/keyboards/maartenwut/wonderland/rules.mk
+++ b/keyboards/maartenwut/wonderland/rules.mk
@@ -1,42 +1,14 @@
1# MCU name
1MCU = atmega32u4 2MCU = atmega32u4
2 3
3# Processor frequency. 4# Bootloader selection
4# This will define a symbol, F_CPU, in all source code files equal to the 5# Teensy halfkay
5# processor frequency in Hz. You can then use this symbol in your source code to 6# Pro Micro caterina
6# calculate timings. Do NOT tack on a 'UL' at the end, this will be done 7# Atmel DFU atmel-dfu
7# automatically to create a 32-bit value in your source code. 8# LUFA DFU lufa-dfu
8# 9# QMK DFU qmk-dfu
9# This will be an integer division of F_USB below, as it is sourced by 10# ATmega32A bootloadHID
10# F_USB after it has run through any CPU prescalers. Note that this value 11# ATmega328P USBasp
11# does not *change* the processor frequency - it should merely be updated to
12# reflect the processor speed set externally so that the code can use accurate
13# software delays.
14F_CPU = 16000000
15
16
17#
18# LUFA specific
19#
20# Target architecture (see library "Board Types" documentation).
21ARCH = AVR8
22
23# Input clock frequency.
24# This will define a symbol, F_USB, in all source code files equal to the
25# input clock frequency (before any prescaling is performed) in Hz. This value may
26# differ from F_CPU if prescaling is used on the latter, and is required as the
27# raw input clock is fed directly to the PLL sections of the AVR for high speed
28# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
29# at the end, this will be done automatically to create a 32-bit value in your
30# source code.
31#
32# If no clock division is performed on the input clock inside the AVR (via the
33# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
34F_USB = $(F_CPU)
35
36# Interrupt driven control endpoint task(+60)
37OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
38
39
40BOOTLOADER = qmk-dfu 12BOOTLOADER = qmk-dfu
41 13
42# Build Options 14# Build Options
diff --git a/keyboards/maxipad/promicro/rules.mk b/keyboards/maxipad/promicro/rules.mk
index dc6f19623..e6fef5172 100644
--- a/keyboards/maxipad/promicro/rules.mk
+++ b/keyboards/maxipad/promicro/rules.mk
@@ -1,58 +1,12 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
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# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Bootloader selection 4# Bootloader selection
42# Teensy halfkay 5# Teensy halfkay
43# Pro Micro caterina 6# Pro Micro caterina
44# Atmel DFU atmel-dfu 7# Atmel DFU atmel-dfu
45# LUFA DFU lufa-dfu 8# LUFA DFU lufa-dfu
46# QMK DFU qmk-dfu 9# QMK DFU qmk-dfu
47# atmega32a bootloadHID 10# ATmega32A bootloadHID
11# ATmega328P USBasp
48BOOTLOADER = caterina 12BOOTLOADER = caterina
49
50
51# If you don't know the bootloader type, then you can specify the
52# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line
53# Teensy halfKay 512
54# Teensy++ halfKay 1024
55# Atmel DFU loader 4096
56# LUFA bootloader 4096
57# USBaspLoader 2048
58# OPT_DEFS += -DBOOTLOADER_SIZE=4096
diff --git a/keyboards/maxipad/teensy2/rules.mk b/keyboards/maxipad/teensy2/rules.mk
index 3fb7c7e5a..ae398e258 100644
--- a/keyboards/maxipad/teensy2/rules.mk
+++ b/keyboards/maxipad/teensy2/rules.mk
@@ -1,58 +1,12 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
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# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Bootloader selection 4# Bootloader selection
42# Teensy halfkay 5# Teensy halfkay
43# Pro Micro caterina 6# Pro Micro caterina
44# Atmel DFU atmel-dfu 7# Atmel DFU atmel-dfu
45# LUFA DFU lufa-dfu 8# LUFA DFU lufa-dfu
46# QMK DFU qmk-dfu 9# QMK DFU qmk-dfu
47# atmega32a bootloadHID 10# ATmega32A bootloadHID
11# ATmega328P USBasp
48BOOTLOADER = halfkay 12BOOTLOADER = halfkay
49
50
51# If you don't know the bootloader type, then you can specify the
52# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line
53# Teensy halfKay 512
54# Teensy++ halfKay 1024
55# Atmel DFU loader 4096
56# LUFA bootloader 4096
57# USBaspLoader 2048
58# OPT_DEFS += -DBOOTLOADER_SIZE=4096
diff --git a/keyboards/maxr1998/phoebe/keymaps/default/rules.mk b/keyboards/maxr1998/phoebe/keymaps/default/rules.mk
deleted file mode 100644
index e69de29bb..000000000
--- a/keyboards/maxr1998/phoebe/keymaps/default/rules.mk
+++ /dev/null
diff --git a/keyboards/maxr1998/phoebe/rules.mk b/keyboards/maxr1998/phoebe/rules.mk
index 1f2724737..b73145d7f 100644
--- a/keyboards/maxr1998/phoebe/rules.mk
+++ b/keyboards/maxr1998/phoebe/rules.mk
@@ -1,10 +1,14 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Bootloader 4# Bootloader selection
5# This definition is optional, and if your keyboard supports multiple bootloaders of 5# Teensy halfkay
6# different sizes, comment this out, and the correct address will be loaded 6# Pro Micro caterina
7# automatically (+60). See bootloader.mk for all options. 7# Atmel DFU atmel-dfu
8# LUFA DFU lufa-dfu
9# QMK DFU qmk-dfu
10# ATmega32A bootloadHID
11# ATmega328P USBasp
8BOOTLOADER = atmel-dfu 12BOOTLOADER = atmel-dfu
9 13
10# Build Options 14# Build Options
@@ -27,4 +31,3 @@ RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
27KEY_LOCK_ENABLE = yes 31KEY_LOCK_ENABLE = yes
28API_SYSEX_ENABLE = no 32API_SYSEX_ENABLE = no
29SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 33SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
30
diff --git a/keyboards/maxr1998/pulse4k/keymaps/default/rules.mk b/keyboards/maxr1998/pulse4k/keymaps/default/rules.mk
deleted file mode 100644
index e69de29bb..000000000
--- a/keyboards/maxr1998/pulse4k/keymaps/default/rules.mk
+++ /dev/null
diff --git a/keyboards/maxr1998/pulse4k/rules.mk b/keyboards/maxr1998/pulse4k/rules.mk
index 644666221..cee105352 100644
--- a/keyboards/maxr1998/pulse4k/rules.mk
+++ b/keyboards/maxr1998/pulse4k/rules.mk
@@ -1,15 +1,16 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Bootloader 4# Bootloader selection
5# This definition is optional, and if your keyboard supports multiple bootloaders of 5# Teensy halfkay
6# different sizes, comment this out, and the correct address will be loaded 6# Pro Micro caterina
7# automatically (+60). See bootloader.mk for all options. 7# Atmel DFU atmel-dfu
8# LUFA DFU lufa-dfu
9# QMK DFU qmk-dfu
10# ATmega32A bootloadHID
11# ATmega328P USBasp
8BOOTLOADER = atmel-dfu 12BOOTLOADER = atmel-dfu
9 13
10# Interrupt driven control endpoint task(+60)
11OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
12
13# Build Options 14# Build Options
14# change to "no" to disable the options, or define them in the Makefile in 15# 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# the appropriate keymap folder that will get included automatically
@@ -30,4 +31,3 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
30RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. 31RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
31API_SYSEX_ENABLE = no 32API_SYSEX_ENABLE = no
32SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 33SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
33
diff --git a/keyboards/mechkeys/mk60/rules.mk b/keyboards/mechkeys/mk60/rules.mk
index f1513f299..4f8bd49ef 100644
--- a/keyboards/mechkeys/mk60/rules.mk
+++ b/keyboards/mechkeys/mk60/rules.mk
@@ -1,63 +1,16 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
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# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Bootloader selection 4# Bootloader selection
42# Teensy halfkay 5# Teensy halfkay
43# Pro Micro caterina 6# Pro Micro caterina
44# Atmel DFU atmel-dfu 7# Atmel DFU atmel-dfu
45# LUFA DFU lufa-dfu 8# LUFA DFU lufa-dfu
46# QMK DFU qmk-dfu 9# QMK DFU qmk-dfu
47# atmega32a bootloadHID 10# ATmega32A bootloadHID
11# ATmega328P USBasp
48BOOTLOADER = atmel-dfu 12BOOTLOADER = atmel-dfu
49 13
50
51# If you don't know the bootloader type, then you can specify the
52# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line
53# Teensy halfKay 512
54# Teensy++ halfKay 1024
55# Atmel DFU loader 4096
56# LUFA bootloader 4096
57# USBaspLoader 2048
58# OPT_DEFS += -DBOOTLOADER_SIZE=4096
59
60
61# Build Options 14# Build Options
62# change yes to no to disable 15# change yes to no to disable
63# 16#
diff --git a/keyboards/mechllama/g35/rules.mk b/keyboards/mechllama/g35/rules.mk
index 1e1487513..20fbf160a 100644
--- a/keyboards/mechllama/g35/rules.mk
+++ b/keyboards/mechllama/g35/rules.mk
@@ -1,10 +1,14 @@
1# MCU name
1MCU = atmega32u4 2MCU = atmega32u4
2F_CPU = 16000000
3ARCH = AVR8
4F_USB = $(F_CPU)
5
6OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
7 3
4# Bootloader selection
5# Teensy halfkay
6# Pro Micro caterina
7# Atmel DFU atmel-dfu
8# LUFA DFU lufa-dfu
9# QMK DFU qmk-dfu
10# ATmega32A bootloadHID
11# ATmega328P USBasp
8BOOTLOADER = atmel-dfu 12BOOTLOADER = atmel-dfu
9 13
10NKRO_ENABLE = yes 14NKRO_ENABLE = yes
diff --git a/keyboards/mechmini/v2/rules.mk b/keyboards/mechmini/v2/rules.mk
index f9ef6414b..72d307322 100755
--- a/keyboards/mechmini/v2/rules.mk
+++ b/keyboards/mechmini/v2/rules.mk
@@ -1,53 +1,16 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency. 4# Bootloader selection
5# This will define a symbol, F_CPU, in all source code files equal to the 5# Teensy halfkay
6# processor frequency in Hz. You can then use this symbol in your source code to 6# Pro Micro caterina
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done 7# Atmel DFU atmel-dfu
8# automatically to create a 32-bit value in your source code. 8# LUFA DFU lufa-dfu
9# 9# QMK DFU qmk-dfu
10# This will be an integer division of F_USB below, as it is sourced by 10# ATmega32A bootloadHID
11# F_USB after it has run through any CPU prescalers. Note that this value 11# ATmega328P USBasp
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17#
18# LUFA specific
19#
20# Target architecture (see library "Board Types" documentation).
21ARCH = AVR8
22
23# Input clock frequency.
24# This will define a symbol, F_USB, in all source code files equal to the
25# input clock frequency (before any prescaling is performed) in Hz. This value may
26# differ from F_CPU if prescaling is used on the latter, and is required as the
27# raw input clock is fed directly to the PLL sections of the AVR for high speed
28# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
29# at the end, this will be done automatically to create a 32-bit value in your
30# source code.
31#
32# If no clock division is performed on the input clock inside the AVR (via the
33# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
34F_USB = $(F_CPU)
35
36# Bootloader
37# This definition is optional, and if your keyboard supports multiple bootloaders of
38# different sizes, comment this out, and the correct address will be loaded
39# automatically (+60). See bootloader.mk for all options.
40BOOTLOADER = atmel-dfu 12BOOTLOADER = atmel-dfu
41 13
42
43# Interrupt driven control endpoint task(+60)
44OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
45
46
47# Boot Section Size in *bytes*
48OPT_DEFS += -DBOOTLOADER_SIZE=4096
49
50
51# Build Options 14# Build Options
52# comment out to disable the options. 15# comment out to disable the options.
53# 16#
diff --git a/keyboards/meira/featherble/rules.mk b/keyboards/meira/featherble/rules.mk
index e27608983..b0295ced7 100644
--- a/keyboards/meira/featherble/rules.mk
+++ b/keyboards/meira/featherble/rules.mk
@@ -1,3 +1,5 @@
1BLUETOOTH_ENABLE = yes 1# Processor frequency
2F_CPU = 8000000 2F_CPU = 8000000
3
4BLUETOOTH_ENABLE = yes
3BLUETOOTH = AdafruitBLE 5BLUETOOTH = AdafruitBLE
diff --git a/keyboards/meira/promicro/rules.mk b/keyboards/meira/promicro/rules.mk
index 22e49971f..3c81f1b34 100644
--- a/keyboards/meira/promicro/rules.mk
+++ b/keyboards/meira/promicro/rules.mk
@@ -1,14 +1 @@
1# Processor frequency.
2# This will define a symbol, F_CPU, in all source code files equal to the
3# processor frequency in Hz. You can then use this symbol in your source code to
4# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
5# automatically to create a 32-bit value in your source code.
6#
7# This will be an integer division of F_USB below, as it is sourced by
8# F_USB after it has run through any CPU prescalers. Note that this value
9# does not *change* the processor frequency - it should merely be updated to
10# reflect the processor speed set externally so that the code can use accurate
11# software delays.
12F_CPU = 16000000
13
14BLUETOOTH_ENABLE = no BLUETOOTH_ENABLE = no
diff --git a/keyboards/meira/rules.mk b/keyboards/meira/rules.mk
index 7893e6556..8357e780b 100644
--- a/keyboards/meira/rules.mk
+++ b/keyboards/meira/rules.mk
@@ -1,44 +1,14 @@
1SRC += matrix.c TWIlib.c issi.c lighting.c
2
3# MCU name 1# MCU name
4MCU = atmega32u4 2MCU = atmega32u4
5 3
6
7#
8# LUFA specific
9#
10# Target architecture (see library "Board Types" documentation).
11ARCH = AVR8
12
13# Input clock frequency.
14# This will define a symbol, F_USB, in all source code files equal to the
15# input clock frequency (before any prescaling is performed) in Hz. This value may
16# differ from F_CPU if prescaling is used on the latter, and is required as the
17# raw input clock is fed directly to the PLL sections of the AVR for high speed
18# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
19# at the end, this will be done automatically to create a 32-bit value in your
20# source code.
21#
22# If no clock division is performed on the input clock inside the AVR (via the
23# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
24F_USB = $(F_CPU)
25
26# Bootloader
27# This definition is optional, and if your keyboard supports multiple bootloaders of
28# different sizes, comment this out, and the correct address will be loaded
29# automatically (+60). See bootloader.mk for all options.
30BOOTLOADER = caterina
31
32# Interrupt driven control endpoint task(+60)
33OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
34
35# Bootloader selection 4# Bootloader selection
36# Teensy halfkay 5# Teensy halfkay
37# Pro Micro caterina 6# Pro Micro caterina
38# Atmel DFU atmel-dfu 7# Atmel DFU atmel-dfu
39# LUFA DFU lufa-dfu 8# LUFA DFU lufa-dfu
40# QMK DFU qmk-dfu 9# QMK DFU qmk-dfu
41# atmega32a bootloadHID 10# ATmega32A bootloadHID
11# ATmega328P USBasp
42BOOTLOADER = caterina 12BOOTLOADER = caterina
43 13
44# Build Options 14# Build Options
@@ -72,6 +42,7 @@ CUSTOM_MATRIX = yes
72#ifeq ($(strip $(WATCHDOG_ENABLE)), yes) 42#ifeq ($(strip $(WATCHDOG_ENABLE)), yes)
73# TMK_COMMON_DEFS += -DWATCHDOG_ENABLE 43# TMK_COMMON_DEFS += -DWATCHDOG_ENABLE
74#endif 44#endif
45SRC += matrix.c TWIlib.c issi.c lighting.c
75 46
76DEFAULT_FOLDER = meira/promicro 47DEFAULT_FOLDER = meira/promicro
77LAYOUTS = ortho_4x12 48LAYOUTS = ortho_4x12
diff --git a/keyboards/meishi/rules.mk b/keyboards/meishi/rules.mk
index 6cba6b6b8..571a1c48c 100644
--- a/keyboards/meishi/rules.mk
+++ b/keyboards/meishi/rules.mk
@@ -1,51 +1,15 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency. 4# Bootloader selection
5# This will define a symbol, F_CPU, in all source code files equal to the 5# Teensy halfkay
6# processor frequency in Hz. You can then use this symbol in your source code to 6# Pro Micro caterina
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done 7# Atmel DFU atmel-dfu
8# automatically to create a 32-bit value in your source code. 8# LUFA DFU lufa-dfu
9# 9# QMK DFU qmk-dfu
10# This will be an integer division of F_USB below, as it is sourced by 10# ATmega32A bootloadHID
11# F_USB after it has run through any CPU prescalers. Note that this value 11# ATmega328P USBasp
12# does not *change* the processor frequency - it should merely be updated to 12BOOTLOADER = caterina
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
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# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Boot Section Size in *bytes*
42# Teensy halfKay 512
43# Teensy++ halfKay 1024
44# Atmel DFU loader 4096
45# LUFA bootloader 4096
46# USBaspLoader 2048
47OPT_DEFS += -DBOOTLOADER_SIZE=4096
48
49 13
50# Build Options 14# Build Options
51# change yes to no to disable 15# change yes to no to disable
diff --git a/keyboards/meishi2/rules.mk b/keyboards/meishi2/rules.mk
index bc370be03..7218e1e1b 100644
--- a/keyboards/meishi2/rules.mk
+++ b/keyboards/meishi2/rules.mk
@@ -1,63 +1,16 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
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# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Bootloader selection 4# Bootloader selection
42# Teensy halfkay 5# Teensy halfkay
43# Pro Micro caterina 6# Pro Micro caterina
44# Atmel DFU atmel-dfu 7# Atmel DFU atmel-dfu
45# LUFA DFU lufa-dfu 8# LUFA DFU lufa-dfu
46# QMK DFU qmk-dfu 9# QMK DFU qmk-dfu
47# atmega32a bootloadHID 10# ATmega32A bootloadHID
11# ATmega328P USBasp
48BOOTLOADER = atmel-dfu 12BOOTLOADER = atmel-dfu
49 13
50
51# If you don't know the bootloader type, then you can specify the
52# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line
53# Teensy halfKay 512
54# Teensy++ halfKay 1024
55# Atmel DFU loader 4096
56# LUFA bootloader 4096
57# USBaspLoader 2048
58# OPT_DEFS += -DBOOTLOADER_SIZE=4096
59
60
61# Build Options 14# Build Options
62# change yes to no to disable 15# change yes to no to disable
63# 16#
diff --git a/keyboards/melody96/rules.mk b/keyboards/melody96/rules.mk
index be0f84b17..1e6d4bb7c 100644
--- a/keyboards/melody96/rules.mk
+++ b/keyboards/melody96/rules.mk
@@ -1,47 +1,16 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency. 4# Bootloader selection
5# This will define a symbol, F_CPU, in all source code files equal to the 5# Teensy halfkay
6# processor frequency in Hz. You can then use this symbol in your source code to 6# Pro Micro caterina
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done 7# Atmel DFU atmel-dfu
8# automatically to create a 32-bit value in your source code. 8# LUFA DFU lufa-dfu
9# 9# QMK DFU qmk-dfu
10# This will be an integer division of F_USB below, as it is sourced by 10# ATmega32A bootloadHID
11# F_USB after it has run through any CPU prescalers. Note that this value 11# ATmega328P USBasp
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17#
18# LUFA specific
19#
20# Target architecture (see library "Board Types" documentation).
21ARCH = AVR8
22
23# Input clock frequency.
24# This will define a symbol, F_USB, in all source code files equal to the
25# input clock frequency (before any prescaling is performed) in Hz. This value may
26# differ from F_CPU if prescaling is used on the latter, and is required as the
27# raw input clock is fed directly to the PLL sections of the AVR for high speed
28# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
29# at the end, this will be done automatically to create a 32-bit value in your
30# source code.
31#
32# If no clock division is performed on the input clock inside the AVR (via the
33# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
34F_USB = $(F_CPU)
35
36# Interrupt driven control endpoint task(+60)
37OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
38
39
40# Boot Section Size in *bytes*
41OPT_DEFS += -DBOOTLOADER_SIZE=4096
42BOOTLOADER = atmel-dfu 12BOOTLOADER = atmel-dfu
43 13
44
45# Build Options 14# Build Options
46# comment out to disable the options. 15# comment out to disable the options.
47# 16#
diff --git a/keyboards/meson/rules.mk b/keyboards/meson/rules.mk
index 4b585e829..323ec666a 100644
--- a/keyboards/meson/rules.mk
+++ b/keyboards/meson/rules.mk
@@ -1,63 +1,16 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
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# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Bootloader selection 4# Bootloader selection
42# Teensy halfkay 5# Teensy halfkay
43# Pro Micro caterina 6# Pro Micro caterina
44# Atmel DFU atmel-dfu 7# Atmel DFU atmel-dfu
45# LUFA DFU lufa-dfu 8# LUFA DFU lufa-dfu
46# QMK DFU qmk-dfu 9# QMK DFU qmk-dfu
47# atmega32a bootloadHID 10# ATmega32A bootloadHID
11# ATmega328P USBasp
48BOOTLOADER = caterina 12BOOTLOADER = caterina
49 13
50
51# If you don't know the bootloader type, then you can specify the
52# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line
53# Teensy halfKay 512
54# Teensy++ halfKay 1024
55# Atmel DFU loader 4096
56# LUFA bootloader 4096
57# USBaspLoader 2048
58# OPT_DEFS += -DBOOTLOADER_SIZE=4096
59
60
61# Build Options 14# Build Options
62# change yes to no to disable 15# change yes to no to disable
63# 16#
diff --git a/keyboards/miniaxe/keymaps/underglow/rules.mk b/keyboards/miniaxe/keymaps/underglow/rules.mk
index 64fa91ded..1e3cebb14 100644
--- a/keyboards/miniaxe/keymaps/underglow/rules.mk
+++ b/keyboards/miniaxe/keymaps/underglow/rules.mk
@@ -1,2 +1 @@
1RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow RGBLIGHT_ENABLE = yes
2
diff --git a/keyboards/miniaxe/rules.mk b/keyboards/miniaxe/rules.mk
index 3f5f699ff..204aeed76 100644
--- a/keyboards/miniaxe/rules.mk
+++ b/keyboards/miniaxe/rules.mk
@@ -1,63 +1,16 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
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# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Bootloader selection 4# Bootloader selection
42# Teensy halfkay 5# Teensy halfkay
43# Pro Micro caterina 6# Pro Micro caterina
44# Atmel DFU atmel-dfu 7# Atmel DFU atmel-dfu
45# LUFA DFU lufa-dfu 8# LUFA DFU lufa-dfu
46# QMK DFU qmk-dfu 9# QMK DFU qmk-dfu
47# atmega32a bootloadHID 10# ATmega32A bootloadHID
11# ATmega328P USBasp
48BOOTLOADER = atmel-dfu 12BOOTLOADER = atmel-dfu
49 13
50
51# If you don't know the bootloader type, then you can specify the
52# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line
53# Teensy halfKay 512
54# Teensy++ halfKay 1024
55# Atmel DFU loader 4096
56# LUFA bootloader 4096
57# USBaspLoader 2048
58# OPT_DEFS += -DBOOTLOADER_SIZE=4096
59
60
61# Build Options 14# Build Options
62# change yes to no to disable 15# change yes to no to disable
63# 16#
@@ -82,4 +35,3 @@ HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400)
82DEBUG_ENABLE = no 35DEBUG_ENABLE = no
83CUSTOM_MATRIX = no # Use custom matrix code 36CUSTOM_MATRIX = no # Use custom matrix code
84SPLIT_KEYBOARD = yes # Use shared split_common code 37SPLIT_KEYBOARD = yes # Use shared split_common code
85
diff --git a/keyboards/minidox/rev1/rules.mk b/keyboards/minidox/rev1/rules.mk
index f84561674..7b30c0bef 100644
--- a/keyboards/minidox/rev1/rules.mk
+++ b/keyboards/minidox/rev1/rules.mk
@@ -1 +1 @@
BACKLIGHT_ENABLE = no \ No newline at end of file BACKLIGHT_ENABLE = no
diff --git a/keyboards/minidox/rules.mk b/keyboards/minidox/rules.mk
index bcd74bcde..dd2affb3f 100644
--- a/keyboards/minidox/rules.mk
+++ b/keyboards/minidox/rules.mk
@@ -1,52 +1,16 @@
1SRC += matrix.c \
2 i2c.c \
3 split_util.c \
4 serial.c
5
6# MCU name 1# MCU name
7MCU = atmega32u4 2MCU = atmega32u4
8 3
9# Processor frequency. 4# Bootloader selection
10# This will define a symbol, F_CPU, in all source code files equal to the 5# Teensy halfkay
11# processor frequency in Hz. You can then use this symbol in your source code to 6# Pro Micro caterina
12# calculate timings. Do NOT tack on a 'UL' at the end, this will be done 7# Atmel DFU atmel-dfu
13# automatically to create a 32-bit value in your source code. 8# LUFA DFU lufa-dfu
14# 9# QMK DFU qmk-dfu
15# This will be an integer division of F_USB below, as it is sourced by 10# ATmega32A bootloadHID
16# F_USB after it has run through any CPU prescalers. Note that this value 11# ATmega328P USBasp
17# does not *change* the processor frequency - it should merely be updated to
18# reflect the processor speed set externally so that the code can use accurate
19# software delays.
20F_CPU = 16000000
21
22#
23# LUFA specific
24#
25# Target architecture (see library "Board Types" documentation).
26ARCH = AVR8
27
28# Input clock frequency.
29# This will define a symbol, F_USB, in all source code files equal to the
30# input clock frequency (before any prescaling is performed) in Hz. This value may
31# differ from F_CPU if prescaling is used on the latter, and is required as the
32# raw input clock is fed directly to the PLL sections of the AVR for high speed
33# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
34# at the end, this will be done automatically to create a 32-bit value in your
35# source code.
36#
37# If no clock division is performed on the input clock inside the AVR (via the
38# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
39F_USB = $(F_CPU)
40
41# Bootloader
42# This definition is optional, and if your keyboard supports multiple bootloaders of
43# different sizes, comment this out, and the correct address will be loaded
44# automatically (+60). See bootloader.mk for all options.
45BOOTLOADER = caterina 12BOOTLOADER = caterina
46 13
47# Interrupt driven control endpoint task(+60)
48OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
49
50# Build Options 14# Build Options
51# change to "no" to disable the options, or define them in the Makefile in 15# change to "no" to disable the options, or define them in the Makefile in
52# the appropriate keymap folder that will get included automatically 16# the appropriate keymap folder that will get included automatically
@@ -68,5 +32,9 @@ USE_I2C ?= no
68SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend 32SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend
69 33
70CUSTOM_MATRIX = yes 34CUSTOM_MATRIX = yes
35SRC += matrix.c \
36 i2c.c \
37 split_util.c \
38 serial.c
71 39
72DEFAULT_FOLDER = minidox/rev1 40DEFAULT_FOLDER = minidox/rev1
diff --git a/keyboards/mint60/rules.mk b/keyboards/mint60/rules.mk
index 21efa65cf..037e81431 100644
--- a/keyboards/mint60/rules.mk
+++ b/keyboards/mint60/rules.mk
@@ -1,56 +1,15 @@
1SRC += i2c.c \
2 serial.c \
3 matrix.c \
4 split_util.c \
5
6# MCU name 1# MCU name
7MCU = atmega32u4 2MCU = atmega32u4
8 3
9# Processor frequency. 4# Bootloader selection
10# This will define a symbol, F_CPU, in all source code files equal to the 5# Teensy halfkay
11# processor frequency in Hz. You can then use this symbol in your source code to 6# Pro Micro caterina
12# calculate timings. Do NOT tack on a 'UL' at the end, this will be done 7# Atmel DFU atmel-dfu
13# automatically to create a 32-bit value in your source code. 8# LUFA DFU lufa-dfu
14# 9# QMK DFU qmk-dfu
15# This will be an integer division of F_USB below, as it is sourced by 10# ATmega32A bootloadHID
16# F_USB after it has run through any CPU prescalers. Note that this value 11# ATmega328P USBasp
17# does not *change* the processor frequency - it should merely be updated to 12BOOTLOADER = caterina
18# reflect the processor speed set externally so that the code can use accurate
19# software delays.
20F_CPU = 16000000
21
22
23#
24# LUFA specific
25#
26# Target architecture (see library "Board Types" documentation).
27ARCH = AVR8
28
29# Input clock frequency.
30# This will define a symbol, F_USB, in all source code files equal to the
31# input clock frequency (before any prescaling is performed) in Hz. This value may
32# differ from F_CPU if prescaling is used on the latter, and is required as the
33# raw input clock is fed directly to the PLL sections of the AVR for high speed
34# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
35# at the end, this will be done automatically to create a 32-bit value in your
36# source code.
37#
38# If no clock division is performed on the input clock inside the AVR (via the
39# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
40F_USB = $(F_CPU)
41
42# Interrupt driven control endpoint task(+60)
43OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
44
45
46# Boot Section Size in *bytes*
47# Teensy halfKay 512
48# Teensy++ halfKay 1024
49# Atmel DFU loader 4096
50# LUFA bootloader 4096
51# USBaspLoader 2048
52OPT_DEFS += -DBOOTLOADER_SIZE=4096
53
54 13
55# Build Options 14# Build Options
56# change yes to no to disable 15# change yes to no to disable
@@ -73,5 +32,9 @@ FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
73HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) 32HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400)
74 33
75CUSTOM_MATRIX = yes 34CUSTOM_MATRIX = yes
35SRC += i2c.c \
36 serial.c \
37 matrix.c \
38 split_util.c
76USE_I2C = yes 39USE_I2C = yes
77RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. 40RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
diff --git a/keyboards/mitosis/rules.mk b/keyboards/mitosis/rules.mk
index 34aa7070f..420c49f9b 100644
--- a/keyboards/mitosis/rules.mk
+++ b/keyboards/mitosis/rules.mk
@@ -1,56 +1,16 @@
1
2OPT_DEFS += -DMITOSIS_PROMICRO
3MITOSIS_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done; \
4 avrdude -p $(MCU) -c avr109 -U flash:w:$(TARGET).hex -P $(USB)
5
6# # project specific files
7SRC = matrix.c
8
9
10# MCU name 1# MCU name
11MCU = atmega32u4 2MCU = atmega32u4
12 3
13# Processor frequency. 4# Bootloader selection
14# This will define a symbol, F_CPU, in all source code files equal to the 5# Teensy halfkay
15# processor frequency in Hz. You can then use this symbol in your source code to 6# Pro Micro caterina
16# calculate timings. Do NOT tack on a 'UL' at the end, this will be done 7# Atmel DFU atmel-dfu
17# automatically to create a 32-bit value in your source code. 8# LUFA DFU lufa-dfu
18# 9# QMK DFU qmk-dfu
19# This will be an integer division of F_USB below, as it is sourced by 10# ATmega32A bootloadHID
20# F_USB after it has run through any CPU prescalers. Note that this value 11# ATmega328P USBasp
21# does not *change* the processor frequency - it should merely be updated to
22# reflect the processor speed set externally so that the code can use accurate
23# software delays.
24F_CPU = 16000000
25
26#
27# LUFA specific
28#
29# Target architecture (see library "Board Types" documentation).
30ARCH = AVR8
31
32# Input clock frequency.
33# This will define a symbol, F_USB, in all source code files equal to the
34# input clock frequency (before any prescaling is performed) in Hz. This value may
35# differ from F_CPU if prescaling is used on the latter, and is required as the
36# raw input clock is fed directly to the PLL sections of the AVR for high speed
37# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
38# at the end, this will be done automatically to create a 32-bit value in your
39# source code.
40#
41# If no clock division is performed on the input clock inside the AVR (via the
42# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
43F_USB = $(F_CPU)
44
45# Bootloader
46# This definition is optional, and if your keyboard supports multiple bootloaders of
47# different sizes, comment this out, and the correct address will be loaded
48# automatically (+60). See bootloader.mk for all options.
49BOOTLOADER = caterina 12BOOTLOADER = caterina
50 13
51# Interrupt driven control endpoint task(+60)
52OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
53
54# Build Options 14# Build Options
55# comment out to disable the options. 15# comment out to disable the options.
56# 16#
@@ -72,3 +32,10 @@ USB = /dev/ttyACM0
72 32
73# upload: build 33# upload: build
74# $(MITOSIS_UPLOAD_COMMAND) 34# $(MITOSIS_UPLOAD_COMMAND)
35
36OPT_DEFS += -DMITOSIS_PROMICRO
37MITOSIS_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done; \
38 avrdude -p $(MCU) -c avr109 -U flash:w:$(TARGET).hex -P $(USB)
39
40# # project specific files
41SRC = matrix.c
diff --git a/keyboards/miuni32/keymaps/default/rules.mk b/keyboards/miuni32/keymaps/default/rules.mk
deleted file mode 100644
index 3a741d20a..000000000
--- a/keyboards/miuni32/keymaps/default/rules.mk
+++ /dev/null
@@ -1,18 +0,0 @@
1# Build Options
2# change to "no" to disable the options, or define them in the Makefile in
3# the appropriate keymap folder that will get included automatically
4#
5BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
6MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
7EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
8CONSOLE_ENABLE = no # Console for debug(+400)
9COMMAND_ENABLE = yes # Commands for debug and configuration
10NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
11BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
12MIDI_ENABLE = no # MIDI controls
13AUDIO_ENABLE = no # Audio output on port C6
14UNICODE_ENABLE = no # Unicode
15BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
16RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
17SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
18
diff --git a/keyboards/miuni32/rules.mk b/keyboards/miuni32/rules.mk
index 91cb2221e..68622e672 100644
--- a/keyboards/miuni32/rules.mk
+++ b/keyboards/miuni32/rules.mk
@@ -1,51 +1,15 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency. 4# Bootloader selection
5# This will define a symbol, F_CPU, in all source code files equal to the 5# Teensy halfkay
6# processor frequency in Hz. You can then use this symbol in your source code to 6# Pro Micro caterina
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done 7# Atmel DFU atmel-dfu
8# automatically to create a 32-bit value in your source code. 8# LUFA DFU lufa-dfu
9# 9# QMK DFU qmk-dfu
10# This will be an integer division of F_USB below, as it is sourced by 10# ATmega32A bootloadHID
11# F_USB after it has run through any CPU prescalers. Note that this value 11# ATmega328P USBasp
12# does not *change* the processor frequency - it should merely be updated to 12BOOTLOADER = atmel-dfu
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
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# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Boot Section Size in *bytes*
42# Teensy halfKay 512
43# Teensy++ halfKay 1024
44# Atmel DFU loader 4096
45# LUFA bootloader 4096
46# USBaspLoader 2048
47OPT_DEFS += -DBOOTLOADER_SIZE=4096
48
49 13
50# Build Options 14# Build Options
51# change yes to no to disable 15# change yes to no to disable
@@ -53,14 +17,15 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096
53BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) 17BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
54MOUSEKEY_ENABLE = yes # Mouse keys(+4700) 18MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
55EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 19EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
56CONSOLE_ENABLE = yes # Console for debug(+400) 20CONSOLE_ENABLE = no # Console for debug(+400)
57COMMAND_ENABLE = yes # Commands for debug and configuration 21COMMAND_ENABLE = yes # Commands for debug and configuration
58# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 22# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
59SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 23SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
60# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 24# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
61NKRO_ENABLE = no # USB Nkey Rollover 25NKRO_ENABLE = yes # USB Nkey Rollover
62BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default 26BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
63MIDI_ENABLE = no # MIDI controls 27MIDI_ENABLE = no # MIDI controls
64UNICODE_ENABLE = no # Unicode 28UNICODE_ENABLE = no # Unicode
65BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 29BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
66AUDIO_ENABLE = no # Audio output on port C6 30AUDIO_ENABLE = no # Audio output on port C6
31RGBLIGHT_ENABLE = yes
diff --git a/keyboards/model01/keymaps/default/rules.mk b/keyboards/model01/keymaps/default/rules.mk
deleted file mode 100644
index 4d1abd88a..000000000
--- a/keyboards/model01/keymaps/default/rules.mk
+++ /dev/null
@@ -1,2 +0,0 @@
1# used by default keymap
2MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
diff --git a/keyboards/model01/rules.mk b/keyboards/model01/rules.mk
index 4345027f4..5e3cbaa33 100644
--- a/keyboards/model01/rules.mk
+++ b/keyboards/model01/rules.mk
@@ -1,53 +1,21 @@
1QUANTUM_LIB_SRC += i2c_master.c
2SRC += leds.c \
3 matrix.c
4
5# MCU name 1# MCU name
6MCU = atmega32u4 2MCU = atmega32u4
7 3
8# Processor frequency. 4# Bootloader selection
9# This will define a symbol, F_CPU, in all source code files equal to the 5# Teensy halfkay
10# processor frequency in Hz. You can then use this symbol in your source code to 6# Pro Micro caterina
11# calculate timings. Do NOT tack on a 'UL' at the end, this will be done 7# Atmel DFU atmel-dfu
12# automatically to create a 32-bit value in your source code. 8# LUFA DFU lufa-dfu
13# 9# QMK DFU qmk-dfu
14# This will be an integer division of F_USB below, as it is sourced by 10# ATmega32A bootloadHID
15# F_USB after it has run through any CPU prescalers. Note that this value 11# ATmega328P USBasp
16# does not *change* the processor frequency - it should merely be updated to
17# reflect the processor speed set externally so that the code can use accurate
18# software delays.
19F_CPU = 16000000
20
21
22#
23# LUFA specific
24#
25# Target architecture (see library "Board Types" documentation).
26ARCH = AVR8
27
28# Input clock frequency.
29# This will define a symbol, F_USB, in all source code files equal to the
30# input clock frequency (before any prescaling is performed) in Hz. This value may
31# differ from F_CPU if prescaling is used on the latter, and is required as the
32# raw input clock is fed directly to the PLL sections of the AVR for high speed
33# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
34# at the end, this will be done automatically to create a 32-bit value in your
35# source code.
36#
37# If no clock division is performed on the input clock inside the AVR (via the
38# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
39F_USB = $(F_CPU)
40
41# Interrupt driven control endpoint task(+60)
42OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
43
44BOOTLOADER = caterina 12BOOTLOADER = caterina
45 13
46# Build Options 14# Build Options
47# change yes to no to disable 15# change yes to no to disable
48# 16#
49BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) 17BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
50MOUSEKEY_ENABLE = no # Mouse keys(+4700) 18MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
51EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 19EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
52CONSOLE_ENABLE = yes # Console for debug(+400) 20CONSOLE_ENABLE = yes # Console for debug(+400)
53COMMAND_ENABLE = no # Commands for debug and configuration 21COMMAND_ENABLE = no # Commands for debug and configuration
@@ -59,6 +27,9 @@ MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
59UNICODE_ENABLE = no # Unicode 27UNICODE_ENABLE = no # Unicode
60 28
61CUSTOM_MATRIX = yes 29CUSTOM_MATRIX = yes
30QUANTUM_LIB_SRC += i2c_master.c
31SRC += leds.c \
32 matrix.c
62 33
63# You can set RGB_MATRIX_ENABLE = no in your rules.mk to disable this and save the Flash 34# You can set RGB_MATRIX_ENABLE = no in your rules.mk to disable this and save the Flash
64RGB_MATRIX_ENABLE = custom # Enable RGB matrix effects (+10000). 35RGB_MATRIX_ENABLE = custom # Enable RGB matrix effects (+10000).
diff --git a/keyboards/moon/rules.mk b/keyboards/moon/rules.mk
index c8b39e8b7..3c67b3c28 100644
--- a/keyboards/moon/rules.mk
+++ b/keyboards/moon/rules.mk
@@ -1,50 +1,14 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
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# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Bootloader selection 4# Bootloader selection
42# Teensy halfkay 5# Teensy halfkay
43# Pro Micro caterina 6# Pro Micro caterina
44# Atmel DFU atmel-dfu 7# Atmel DFU atmel-dfu
45# LUFA DFU lufa-dfu 8# LUFA DFU lufa-dfu
46# QMK DFU qmk-dfu 9# QMK DFU qmk-dfu
47# atmega32a bootloadHID 10# ATmega32A bootloadHID
11# ATmega328P USBasp
48BOOTLOADER = atmel-dfu 12BOOTLOADER = atmel-dfu
49 13
50# Build Options 14# Build Options
diff --git a/keyboards/mt980/rules.mk b/keyboards/mt980/rules.mk
index 9a7718aad..b3655bf72 100644
--- a/keyboards/mt980/rules.mk
+++ b/keyboards/mt980/rules.mk
@@ -1,47 +1,19 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency. 4# Bootloader selection
5# This will define a symbol, F_CPU, in all source code files equal to the 5# Teensy halfkay
6# processor frequency in Hz. You can then use this symbol in your source code to 6# Pro Micro caterina
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done 7# Atmel DFU atmel-dfu
8# automatically to create a 32-bit value in your source code. 8# LUFA DFU lufa-dfu
9# 9# QMK DFU qmk-dfu
10# This will be an integer division of F_USB below, as it is sourced by 10# ATmega32A bootloadHID
11# F_USB after it has run through any CPU prescalers. Note that this value 11# ATmega328P USBasp
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17#
18# LUFA specific
19#
20# Target architecture (see library "Board Types" documentation).
21ARCH = AVR8
22
23# Input clock frequency.
24# This will define a symbol, F_USB, in all source code files equal to the
25# input clock frequency (before any prescaling is performed) in Hz. This value may
26# differ from F_CPU if prescaling is used on the latter, and is required as the
27# raw input clock is fed directly to the PLL sections of the AVR for high speed
28# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
29# at the end, this will be done automatically to create a 32-bit value in your
30# source code.
31#
32# If no clock division is performed on the input clock inside the AVR (via the
33# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
34F_USB = $(F_CPU)
35
36# Interrupt driven control endpoint task(+60)
37OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
38
39BOOTLOADER = atmel-dfu 12BOOTLOADER = atmel-dfu
40 13
41# Build Options 14# Build Options
42# comment out to disable the options. 15# comment out to disable the options.
43# 16#
44
45BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000) 17BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
46MOUSEKEY_ENABLE = no # Mouse keys(+4700) 18MOUSEKEY_ENABLE = no # Mouse keys(+4700)
47EXTRAKEY_ENABLE = no # Audio control and System control(+450) 19EXTRAKEY_ENABLE = no # Audio control and System control(+450)
diff --git a/keyboards/mxss/rules.mk b/keyboards/mxss/rules.mk
index ac7a1ee8f..7df851758 100644
--- a/keyboards/mxss/rules.mk
+++ b/keyboards/mxss/rules.mk
@@ -1,51 +1,15 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency. 4# Bootloader selection
5# This will define a symbol, F_CPU, in all source code files equal to the 5# Teensy halfkay
6# processor frequency in Hz. You can then use this symbol in your source code to 6# Pro Micro caterina
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done 7# Atmel DFU atmel-dfu
8# automatically to create a 32-bit value in your source code. 8# LUFA DFU lufa-dfu
9# 9# QMK DFU qmk-dfu
10# This will be an integer division of F_USB below, as it is sourced by 10# ATmega32A bootloadHID
11# F_USB after it has run through any CPU prescalers. Note that this value 11# ATmega328P USBasp
12# does not *change* the processor frequency - it should merely be updated to 12BOOTLOADER = atmel-dfu
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
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# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Boot Section Size in *bytes*
42# Teensy halfKay 512
43# Teensy++ halfKay 1024
44# Atmel DFU loader 4096
45# LUFA bootloader 4096
46# USBaspLoader 2048
47OPT_DEFS += -DBOOTLOADER_SIZE=4096
48
49 13
50# Build Options 14# Build Options
51# change yes to no to disable 15# change yes to no to disable