aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2019-09-06 07:50:43 +1000
committerYan-Fa Li <yanfali@gmail.com>2019-09-05 14:50:43 -0700
commit98599173d7306d53cc8603d40bc50e229025fbdf (patch)
treed9d8ca44a594af9e8fe3093902817f9d2e9e2091
parent12812fa6a41ed93e243244432e8be83c201f84dd (diff)
downloadqmk_firmware-98599173d7306d53cc8603d40bc50e229025fbdf.tar.gz
qmk_firmware-98599173d7306d53cc8603d40bc50e229025fbdf.zip
Add 16U2, 16U4 and USB646 to mcu_selection.mk (#6566)
-rw-r--r--keyboards/lfkeyboards/lfk78/rules.mk12
-rw-r--r--keyboards/lfkeyboards/lfk87/rules.mk12
-rw-r--r--keyboards/lfkeyboards/mini1800/rules.mk36
-rw-r--r--keyboards/lfkeyboards/smk65/rules.mk12
-rw-r--r--keyboards/naked48/rules.mk1
-rw-r--r--keyboards/sixkeyboard/rules.mk36
-rw-r--r--keyboards/xd004/v1/rules.mk37
-rw-r--r--quantum/mcu_selection.mk2
8 files changed, 1 insertions, 147 deletions
diff --git a/keyboards/lfkeyboards/lfk78/rules.mk b/keyboards/lfkeyboards/lfk78/rules.mk
index cc314c97a..b9cdf2307 100644
--- a/keyboards/lfkeyboards/lfk78/rules.mk
+++ b/keyboards/lfkeyboards/lfk78/rules.mk
@@ -21,18 +21,6 @@ OPT_DEFS += -DLFK_REV_STRING=\"Rev$(LFK_REV)\"
21# Extra source files for IS3731 lighting 21# Extra source files for IS3731 lighting
22SRC = TWIlib.c issi.c lighting.c 22SRC = TWIlib.c issi.c lighting.c
23 23
24# Processor frequency.
25F_CPU = 16000000
26
27# Target architecture (see library "Board Types" documentation).
28ARCH = AVR8
29
30# Input clock frequency.
31F_USB = $(F_CPU)
32
33# Interrupt driven control endpoint task(+60)
34OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
35
36BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) 24BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
37MOUSEKEY_ENABLE = no # Mouse keys(+4700) 25MOUSEKEY_ENABLE = no # Mouse keys(+4700)
38EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 26EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
diff --git a/keyboards/lfkeyboards/lfk87/rules.mk b/keyboards/lfkeyboards/lfk87/rules.mk
index c10f47306..bc96e3520 100644
--- a/keyboards/lfkeyboards/lfk87/rules.mk
+++ b/keyboards/lfkeyboards/lfk87/rules.mk
@@ -18,18 +18,6 @@ OPT_DEFS += -DLFK_TKL_REV_$(LFK_REV)
18# Extra source files for IS3731 lighting 18# Extra source files for IS3731 lighting
19SRC = TWIlib.c issi.c lighting.c 19SRC = TWIlib.c issi.c lighting.c
20 20
21# Processor frequency.
22F_CPU = 16000000
23
24# Target architecture (see library "Board Types" documentation).
25ARCH = AVR8
26
27# Input clock frequency.
28F_USB = $(F_CPU)
29
30# Interrupt driven control endpoint task(+60)
31OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
32
33LAYOUTS = tkl_ansi tkl_iso 21LAYOUTS = tkl_ansi tkl_iso
34 22
35# Build Options 23# Build Options
diff --git a/keyboards/lfkeyboards/mini1800/rules.mk b/keyboards/lfkeyboards/mini1800/rules.mk
index a1e52aae9..a06225491 100644
--- a/keyboards/lfkeyboards/mini1800/rules.mk
+++ b/keyboards/lfkeyboards/mini1800/rules.mk
@@ -16,42 +16,6 @@ else
16endif 16endif
17OPT_DEFS += -DLFK_TKL_REV_$(LFK_REV) 17OPT_DEFS += -DLFK_TKL_REV_$(LFK_REV)
18 18
19# Processor frequency.
20# This will define a symbol, F_CPU, in all source code files equal to the
21# processor frequency in Hz. You can then use this symbol in your source code to
22# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
23# automatically to create a 32-bit value in your source code.
24#
25# This will be an integer division of F_USB below, as it is sourced by
26# F_USB after it has run through any CPU prescalers. Note that this value
27# does not *change* the processor frequency - it should merely be updated to
28# reflect the processor speed set externally so that the code can use accurate
29# software delays.
30F_CPU = 16000000
31
32
33#
34# LUFA specific
35#
36# Target architecture (see library "Board Types" documentation).
37ARCH = AVR8
38
39# Input clock frequency.
40# This will define a symbol, F_USB, in all source code files equal to the
41# input clock frequency (before any prescaling is performed) in Hz. This value may
42# differ from F_CPU if prescaling is used on the latter, and is required as the
43# raw input clock is fed directly to the PLL sections of the AVR for high speed
44# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
45# at the end, this will be done automatically to create a 32-bit value in your
46# source code.
47#
48# If no clock division is performed on the input clock inside the AVR (via the
49# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
50F_USB = $(F_CPU)
51
52# Interrupt driven control endpoint task(+60)
53OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
54
55# Extra source files for IS3731 lighting 19# Extra source files for IS3731 lighting
56SRC = TWIlib.c issi.c lighting.c 20SRC = TWIlib.c issi.c lighting.c
57 21
diff --git a/keyboards/lfkeyboards/smk65/rules.mk b/keyboards/lfkeyboards/smk65/rules.mk
index b7f94154a..5834cf5c3 100644
--- a/keyboards/lfkeyboards/smk65/rules.mk
+++ b/keyboards/lfkeyboards/smk65/rules.mk
@@ -3,15 +3,3 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096
3 3
4# Extra source files for IS3731 lighting 4# Extra source files for IS3731 lighting
5SRC = TWIlib.c issi.c lighting.c 5SRC = TWIlib.c issi.c lighting.c
6
7# Processor frequency.
8F_CPU = 16000000
9
10# Target architecture (see library "Board Types" documentation).
11ARCH = AVR8
12
13# Input clock frequency.
14F_USB = $(F_CPU)
15
16# Interrupt driven control endpoint task(+60)
17OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
diff --git a/keyboards/naked48/rules.mk b/keyboards/naked48/rules.mk
index 02a7d9ab2..53e2dfc21 100644
--- a/keyboards/naked48/rules.mk
+++ b/keyboards/naked48/rules.mk
@@ -3,7 +3,6 @@ QUANTUM_LIB_SRC += serial.c
3# SRC += ssd1306.c 3# SRC += ssd1306.c
4 4
5# MCU name 5# MCU name
6#MCU = at90usb1287
7MCU = atmega32u4 6MCU = atmega32u4
8 7
9# Processor frequency. 8# Processor frequency.
diff --git a/keyboards/sixkeyboard/rules.mk b/keyboards/sixkeyboard/rules.mk
index 52213f341..b718c7e65 100644
--- a/keyboards/sixkeyboard/rules.mk
+++ b/keyboards/sixkeyboard/rules.mk
@@ -3,42 +3,6 @@ SRC = matrix.c
3# MCU name 3# MCU name
4MCU = atmega16u2 4MCU = atmega16u2
5 5
6# Processor frequency.
7# This will define a symbol, F_CPU, in all source code files equal to the
8# processor frequency in Hz. You can then use this symbol in your source code to
9# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
10# automatically to create a 32-bit value in your source code.
11#
12# This will be an integer division of F_USB below, as it is sourced by
13# F_USB after it has run through any CPU prescalers. Note that this value
14# does not *change* the processor frequency - it should merely be updated to
15# reflect the processor speed set externally so that the code can use accurate
16# software delays.
17F_CPU = 16000000
18
19
20#
21# LUFA specific
22#
23# Target architecture (see library "Board Types" documentation).
24ARCH = AVR8
25
26# Input clock frequency.
27# This will define a symbol, F_USB, in all source code files equal to the
28# input clock frequency (before any prescaling is performed) in Hz. This value may
29# differ from F_CPU if prescaling is used on the latter, and is required as the
30# raw input clock is fed directly to the PLL sections of the AVR for high speed
31# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
32# at the end, this will be done automatically to create a 32-bit value in your
33# source code.
34#
35# If no clock division is performed on the input clock inside the AVR (via the
36# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
37F_USB = $(F_CPU)
38
39# Interrupt driven control endpoint task(+60)
40OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
41
42 6
43# Boot Section Size in *bytes* 7# Boot Section Size in *bytes*
44# Teensy halfKay 512 8# Teensy halfKay 512
diff --git a/keyboards/xd004/v1/rules.mk b/keyboards/xd004/v1/rules.mk
index c55d65c0f..9cc03498a 100644
--- a/keyboards/xd004/v1/rules.mk
+++ b/keyboards/xd004/v1/rules.mk
@@ -2,43 +2,6 @@
2MCU = atmega16u2 2MCU = atmega16u2
3 3
4 4
5# Processor frequency.
6# This will define a symbol, F_CPU, in all source code files equal to the
7# processor frequency in Hz. You can then use this symbol in your source code to
8# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
9# automatically to create a 32-bit value in your source code.
10#
11# This will be an integer division of F_USB below, as it is sourced by
12# F_USB after it has run through any CPU prescalers. Note that this value
13# does not *change* the processor frequency - it should merely be updated to
14# reflect the processor speed set externally so that the code can use accurate
15# software delays.
16F_CPU = 16000000
17
18
19# LUFA specific
20# Target architecture (see library "Board Types" documentation).
21ARCH = AVR8
22
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
38# Interrupt driven control endpoint task(+60)
39OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
40
41
42# Boot Section Size in *bytes* 5# Boot Section Size in *bytes*
43# Teensy halfKay 512 6# Teensy halfKay 512
44# Teensy++ halfKay 2048 7# Teensy++ halfKay 2048
diff --git a/quantum/mcu_selection.mk b/quantum/mcu_selection.mk
index 2d62dcbf1..1af0123e2 100644
--- a/quantum/mcu_selection.mk
+++ b/quantum/mcu_selection.mk
@@ -36,7 +36,7 @@ ifneq ($(findstring STM32F303, $(MCU)),)
36 DFU_SUFFIX_ARGS = -p DF11 -v 0483 36 DFU_SUFFIX_ARGS = -p DF11 -v 0483
37endif 37endif
38 38
39ifneq (,$(filter $(MCU),atmega32u2 atmega32u4 at90usb1286)) 39ifneq (,$(filter $(MCU),atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 at90usb1286))
40 # Processor frequency. 40 # Processor frequency.
41 # This will define a symbol, F_CPU, in all source code files equal to the 41 # This will define a symbol, F_CPU, in all source code files equal to the
42 # processor frequency in Hz. You can then use this symbol in your source code to 42 # processor frequency in Hz. You can then use this symbol in your source code to