Skip to content

Commit 237147c

Browse files
fauxparknoroadsleft
authored andcommitted
Cleanup rules.mk for 32U4 keyboards, 0-9 (qmk#6789)
1 parent 37b6a2a commit 237147c

File tree

29 files changed

+118
-1183
lines changed

29 files changed

+118
-1183
lines changed

keyboards/1upkeyboards/1up60hse/rules.mk

+9-45
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,15 @@
11
# MCU name
22
MCU = atmega32u4
33

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.
15-
F_CPU = 16000000
16-
17-
18-
#
19-
# LUFA specific
20-
#
21-
# Target architecture (see library "Board Types" documentation).
22-
ARCH = AVR8
23-
24-
# Input clock frequency.
25-
# This will define a symbol, F_USB, in all source code files equal to the
26-
# input clock frequency (before any prescaling is performed) in Hz. This value may
27-
# differ from F_CPU if prescaling is used on the latter, and is required as the
28-
# raw input clock is fed directly to the PLL sections of the AVR for high speed
29-
# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
30-
# at the end, this will be done automatically to create a 32-bit value in your
31-
# source code.
32-
#
33-
# If no clock division is performed on the input clock inside the AVR (via the
34-
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
35-
F_USB = $(F_CPU)
36-
37-
# Interrupt driven control endpoint task(+60)
38-
OPT_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
48-
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
12+
BOOTLOADER = atmel-dfu
4913

5014
# Build Options
5115
# change yes to no to disable

keyboards/1upkeyboards/1up60hte/rules.mk

+8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# MCU name
22
MCU = atmega32u4
33

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
412
BOOTLOADER = atmel-dfu
513

614
# Build Options

keyboards/1upkeyboards/1up60rgb/rules.mk

+9-39
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,15 @@
11
# MCU name
22
MCU = atmega32u4
33

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.
15-
F_CPU = 16000000
16-
17-
#
18-
# LUFA specific
19-
#
20-
# Target architecture (see library "Board Types" documentation).
21-
ARCH = 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.
34-
F_USB = $(F_CPU)
35-
36-
# Interrupt driven control endpoint task(+60)
37-
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
38-
39-
40-
# Boot Section Size in *bytes*
41-
OPT_DEFS += -DBOOTLOADER_SIZE=4096
42-
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
12+
BOOTLOADER = atmel-dfu
4313

4414
# Build Options
4515
# comment out to disable the options.

keyboards/1upkeyboards/super16/rules.mk

+2-48
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,16 @@
11
# MCU name
22
MCU = atmega32u4
33

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.
15-
F_CPU = 16000000
16-
17-
#
18-
# LUFA specific
19-
#
20-
# Target architecture (see library "Board Types" documentation).
21-
ARCH = 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.
34-
F_USB = $(F_CPU)
35-
36-
# Interrupt driven control endpoint task(+60)
37-
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
38-
39-
404
# Bootloader selection
415
# Teensy halfkay
426
# Pro Micro caterina
437
# Atmel DFU atmel-dfu
448
# LUFA DFU lufa-dfu
459
# QMK DFU qmk-dfu
46-
# atmega32a bootloadHID
10+
# ATmega32A bootloadHID
11+
# ATmega328P USBasp
4712
BOOTLOADER = caterina
4813

49-
# If you don't know the bootloader type, then you can specify the
50-
# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line
51-
# Teensy halfKay 512
52-
# Teensy++ halfKay 1024
53-
# Atmel DFU loader 4096
54-
# LUFA bootloader 4096
55-
# USBaspLoader 2048
56-
# OPT_DEFS += -DBOOTLOADER_SIZE=4096
57-
58-
#EXTRAFLAGS += -flto
59-
6014
# Build Options
6115
# change yes to no to disable
6216
#

keyboards/1upkeyboards/sweet16/rules.mk

+9-39
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,15 @@
11
# MCU name
22
MCU = atmega32u4
33

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.
15-
F_CPU = 16000000
16-
17-
#
18-
# LUFA specific
19-
#
20-
# Target architecture (see library "Board Types" documentation).
21-
ARCH = 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.
34-
F_USB = $(F_CPU)
35-
36-
# Interrupt driven control endpoint task(+60)
37-
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
38-
39-
40-
# Boot Section Size in *bytes*
41-
OPT_DEFS += -DBOOTLOADER_SIZE=4096
42-
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
12+
BOOTLOADER = caterina
4313

4414
# Build Options
4515
# comment out to disable the options.

keyboards/2_milk/rules.mk

+8-16
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
11
# MCU name
22
MCU = atmega32u4
33

4-
# Processor frequency.
5-
F_CPU = 16000000
6-
7-
#
8-
# LUFA specific
9-
#
10-
# Target architecture (see library "Board Types" documentation).
11-
ARCH = AVR8
12-
13-
# Input clock frequency.
14-
F_USB = $(F_CPU)
15-
16-
# Bootloader
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
1712
BOOTLOADER = caterina
1813

19-
# Interrupt driven control endpoint task(+60)
20-
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
21-
2214
# Build Options
2315
# comment out to disable the options.
2416
#

keyboards/30wer/rules.mk

+8-39
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,14 @@
11
# MCU name
22
MCU = atmega32u4
33

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.
15-
F_CPU = 16000000
16-
17-
#
18-
# LUFA specific
19-
#
20-
# Target architecture (see library "Board Types" documentation).
21-
ARCH = 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.
34-
F_USB = $(F_CPU)
35-
36-
# Interrupt driven control endpoint task(+60)
37-
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
38-
39-
# Bootloader
40-
# This definition is optional, and if your keyboard supports multiple bootloaders of
41-
# different sizes, comment this out, and the correct address will be loaded
42-
# automatically (+60). See bootloader.mk for all options.
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
4312
BOOTLOADER = caterina
4413

4514
# Build Options

0 commit comments

Comments
 (0)