diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2016-08-07 18:38:03 +0300 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2016-08-20 03:56:23 +0300 |
commit | 051017c3129a17a1f4c610f19067c60bf0a49da9 (patch) | |
tree | b19608cd10458ac2083f8f007b1b74ecdfe103a6 | |
parent | c83af5451349e6160a2ee220e7b45bb974be5c64 (diff) | |
download | qmk_firmware-051017c3129a17a1f4c610f19067c60bf0a49da9.tar.gz qmk_firmware-051017c3129a17a1f4c610f19067c60bf0a49da9.zip |
Split subproject make files into Makefile and rules.mk
28 files changed, 705 insertions, 605 deletions
diff --git a/keyboards/chibios_test/stm32_f072_onekey/Makefile b/keyboards/chibios_test/stm32_f072_onekey/Makefile index eae38c4b2..191c6bb66 100644 --- a/keyboards/chibios_test/stm32_f072_onekey/Makefile +++ b/keyboards/chibios_test/stm32_f072_onekey/Makefile | |||
@@ -1,41 +1,3 @@ | |||
1 | # project specific files | 1 | ifndef MAKEFILE_INCLUDED |
2 | SRC = matrix.c \ | ||
3 | led.c | ||
4 | |||
5 | ## chip/board settings | ||
6 | # the next two should match the directories in | ||
7 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
8 | MCU_FAMILY = STM32 | ||
9 | MCU_SERIES = STM32F0xx | ||
10 | # linker script to use | ||
11 | # it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | ||
12 | # or <this_dir>/ld/ | ||
13 | MCU_LDSCRIPT = STM32F072xB | ||
14 | # startup code to use | ||
15 | # is should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/ | ||
16 | MCU_STARTUP = stm32f0xx | ||
17 | # it should exist either in <chibios>/os/hal/boards/ | ||
18 | # or <this_dir>/boards | ||
19 | BOARD = ST_STM32F072B_DISCOVERY | ||
20 | # Cortex version | ||
21 | # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4 | ||
22 | MCU = cortex-m0 | ||
23 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
24 | ARMV = 6 | ||
25 | # If you want to be able to jump to bootloader from firmware on STM32 MCUs, | ||
26 | # set the correct BOOTLOADER_ADDRESS. Either set it here, or define it in | ||
27 | # ./bootloader_defs.h or in ./boards/<FOO>/bootloader_defs.h (if you have | ||
28 | # a custom board definition that you plan to reuse). | ||
29 | # If you're not setting it here, leave it commented out. | ||
30 | # It is chip dependent, the correct number can be looked up here (page 175): | ||
31 | # http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf | ||
32 | # This also requires a patch to chibios: | ||
33 | # <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch | ||
34 | #STM32_BOOTLOADER_ADDRESS = 0x1FFFC800 | ||
35 | |||
36 | # Build Options | ||
37 | # comment out to disable the options. | ||
38 | # | ||
39 | ifndef QUANTUM_DIR | ||
40 | include ../../../Makefile | 2 | include ../../../Makefile |
41 | endif | 3 | endif \ No newline at end of file |
diff --git a/keyboards/chibios_test/stm32_f072_onekey/rules.mk b/keyboards/chibios_test/stm32_f072_onekey/rules.mk new file mode 100644 index 000000000..eae38c4b2 --- /dev/null +++ b/keyboards/chibios_test/stm32_f072_onekey/rules.mk | |||
@@ -0,0 +1,41 @@ | |||
1 | # project specific files | ||
2 | SRC = matrix.c \ | ||
3 | led.c | ||
4 | |||
5 | ## chip/board settings | ||
6 | # the next two should match the directories in | ||
7 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
8 | MCU_FAMILY = STM32 | ||
9 | MCU_SERIES = STM32F0xx | ||
10 | # linker script to use | ||
11 | # it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | ||
12 | # or <this_dir>/ld/ | ||
13 | MCU_LDSCRIPT = STM32F072xB | ||
14 | # startup code to use | ||
15 | # is should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/ | ||
16 | MCU_STARTUP = stm32f0xx | ||
17 | # it should exist either in <chibios>/os/hal/boards/ | ||
18 | # or <this_dir>/boards | ||
19 | BOARD = ST_STM32F072B_DISCOVERY | ||
20 | # Cortex version | ||
21 | # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4 | ||
22 | MCU = cortex-m0 | ||
23 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
24 | ARMV = 6 | ||
25 | # If you want to be able to jump to bootloader from firmware on STM32 MCUs, | ||
26 | # set the correct BOOTLOADER_ADDRESS. Either set it here, or define it in | ||
27 | # ./bootloader_defs.h or in ./boards/<FOO>/bootloader_defs.h (if you have | ||
28 | # a custom board definition that you plan to reuse). | ||
29 | # If you're not setting it here, leave it commented out. | ||
30 | # It is chip dependent, the correct number can be looked up here (page 175): | ||
31 | # http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf | ||
32 | # This also requires a patch to chibios: | ||
33 | # <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch | ||
34 | #STM32_BOOTLOADER_ADDRESS = 0x1FFFC800 | ||
35 | |||
36 | # Build Options | ||
37 | # comment out to disable the options. | ||
38 | # | ||
39 | ifndef QUANTUM_DIR | ||
40 | include ../../../Makefile | ||
41 | endif | ||
diff --git a/keyboards/chibios_test/stm32_f103_onekey/Makefile b/keyboards/chibios_test/stm32_f103_onekey/Makefile index 307ca5b19..191c6bb66 100644 --- a/keyboards/chibios_test/stm32_f103_onekey/Makefile +++ b/keyboards/chibios_test/stm32_f103_onekey/Makefile | |||
@@ -1,52 +1,3 @@ | |||
1 | # project specific files | 1 | ifndef MAKEFILE_INCLUDED |
2 | SRC = matrix.c \ | ||
3 | led.c | ||
4 | |||
5 | # GENERIC STM32F103C8T6 board - stm32duino bootloader | ||
6 | OPT_DEFS = -DCORTEX_VTOR_INIT=0x2000 | ||
7 | MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader | ||
8 | BOARD = GENERIC_STM32_F103 | ||
9 | |||
10 | # GENERIC STM32F103C8T6 board - no bootloader (programmer over serial or SWD) | ||
11 | # OPT_DEFS = | ||
12 | # MCU_LDSCRIPT = STM32F103x8 | ||
13 | # BOARD = GENERIC_STM32_F103 | ||
14 | |||
15 | # MAPLE MINI | ||
16 | # OPT_DEFS = -DCORTEX_VTOR_INIT=0x5000 | ||
17 | # MCU_LDSCRIPT = STM32F103xB_maplemini_bootloader | ||
18 | # BOARD = MAPLEMINI_STM32_F103 | ||
19 | |||
20 | ## chip/board settings | ||
21 | # the next two should match the directories in | ||
22 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
23 | MCU_FAMILY = STM32 | ||
24 | MCU_SERIES = STM32F1xx | ||
25 | # linker script to use | ||
26 | # it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | ||
27 | # or <this_dir>/ld/ | ||
28 | # startup code to use | ||
29 | # is should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/ | ||
30 | MCU_STARTUP = stm32f1xx | ||
31 | # it should exist either in <chibios>/os/hal/boards/ | ||
32 | # or <this_dir>/boards | ||
33 | # Cortex version | ||
34 | # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4 | ||
35 | MCU = cortex-m3 | ||
36 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
37 | ARMV = 7 | ||
38 | # If you want to be able to jump to bootloader from firmware on STM32 MCUs, | ||
39 | # set the correct BOOTLOADER_ADDRESS. Either set it here, or define it in | ||
40 | # ./bootloader_defs.h or in ./boards/<FOO>/bootloader_defs.h (if you have | ||
41 | # a custom board definition that you plan to reuse). | ||
42 | # If you're not setting it here, leave it commented out. | ||
43 | # It is chip dependent, the correct number can be looked up here (page 175): | ||
44 | # http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf | ||
45 | # This also requires a patch to chibios: | ||
46 | # <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch | ||
47 | #STM32_BOOTLOADER_ADDRESS = 0x1FFFC800 | ||
48 | |||
49 | |||
50 | ifndef QUANTUM_DIR | ||
51 | include ../../../Makefile | 2 | include ../../../Makefile |
52 | endif | 3 | endif \ No newline at end of file |
diff --git a/keyboards/chibios_test/stm32_f103_onekey/rules.mk b/keyboards/chibios_test/stm32_f103_onekey/rules.mk new file mode 100644 index 000000000..307ca5b19 --- /dev/null +++ b/keyboards/chibios_test/stm32_f103_onekey/rules.mk | |||
@@ -0,0 +1,52 @@ | |||
1 | # project specific files | ||
2 | SRC = matrix.c \ | ||
3 | led.c | ||
4 | |||
5 | # GENERIC STM32F103C8T6 board - stm32duino bootloader | ||
6 | OPT_DEFS = -DCORTEX_VTOR_INIT=0x2000 | ||
7 | MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader | ||
8 | BOARD = GENERIC_STM32_F103 | ||
9 | |||
10 | # GENERIC STM32F103C8T6 board - no bootloader (programmer over serial or SWD) | ||
11 | # OPT_DEFS = | ||
12 | # MCU_LDSCRIPT = STM32F103x8 | ||
13 | # BOARD = GENERIC_STM32_F103 | ||
14 | |||
15 | # MAPLE MINI | ||
16 | # OPT_DEFS = -DCORTEX_VTOR_INIT=0x5000 | ||
17 | # MCU_LDSCRIPT = STM32F103xB_maplemini_bootloader | ||
18 | # BOARD = MAPLEMINI_STM32_F103 | ||
19 | |||
20 | ## chip/board settings | ||
21 | # the next two should match the directories in | ||
22 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
23 | MCU_FAMILY = STM32 | ||
24 | MCU_SERIES = STM32F1xx | ||
25 | # linker script to use | ||
26 | # it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | ||
27 | # or <this_dir>/ld/ | ||
28 | # startup code to use | ||
29 | # is should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/ | ||
30 | MCU_STARTUP = stm32f1xx | ||
31 | # it should exist either in <chibios>/os/hal/boards/ | ||
32 | # or <this_dir>/boards | ||
33 | # Cortex version | ||
34 | # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4 | ||
35 | MCU = cortex-m3 | ||
36 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
37 | ARMV = 7 | ||
38 | # If you want to be able to jump to bootloader from firmware on STM32 MCUs, | ||
39 | # set the correct BOOTLOADER_ADDRESS. Either set it here, or define it in | ||
40 | # ./bootloader_defs.h or in ./boards/<FOO>/bootloader_defs.h (if you have | ||
41 | # a custom board definition that you plan to reuse). | ||
42 | # If you're not setting it here, leave it commented out. | ||
43 | # It is chip dependent, the correct number can be looked up here (page 175): | ||
44 | # http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf | ||
45 | # This also requires a patch to chibios: | ||
46 | # <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch | ||
47 | #STM32_BOOTLOADER_ADDRESS = 0x1FFFC800 | ||
48 | |||
49 | |||
50 | ifndef QUANTUM_DIR | ||
51 | include ../../../Makefile | ||
52 | endif | ||
diff --git a/keyboards/chibios_test/teensy_lc_onekey/Makefile b/keyboards/chibios_test/teensy_lc_onekey/Makefile index 43ea9d82d..191c6bb66 100644 --- a/keyboards/chibios_test/teensy_lc_onekey/Makefile +++ b/keyboards/chibios_test/teensy_lc_onekey/Makefile | |||
@@ -1,49 +1,3 @@ | |||
1 | # project specific files | 1 | ifndef MAKEFILE_INCLUDED |
2 | SRC = matrix.c \ | ||
3 | led.c | ||
4 | |||
5 | ## chip/board settings | ||
6 | # - the next two should match the directories in | ||
7 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
8 | # - For Teensies, FAMILY = KINETIS and SERIES is either | ||
9 | # KL2x (LC) or K20x (3.0,3.1,3.2). | ||
10 | MCU_FAMILY = KINETIS | ||
11 | MCU_SERIES = KL2x | ||
12 | |||
13 | # Linker script to use | ||
14 | # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | ||
15 | # or <this_dir>/ld/ | ||
16 | # - NOTE: a custom ld script is needed for EEPROM on Teensy LC | ||
17 | # - LDSCRIPT = | ||
18 | # - MKL26Z64 for Teensy LC | ||
19 | # - MK20DX128 for Teensy 3.0 | ||
20 | # - MK20DX256 for Teensy 3.1 and 3.2 | ||
21 | MCU_LDSCRIPT = MKL26Z64 | ||
22 | |||
23 | # Startup code to use | ||
24 | # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/ | ||
25 | # - STARTUP = | ||
26 | # - kl2x for Teensy LC | ||
27 | # - k20x5 for Teensy 3.0 | ||
28 | # - k20x7 for Teensy 3.1 and 3.2 | ||
29 | MCU_STARTUP = kl2x | ||
30 | |||
31 | # Board: it should exist either in <chibios>/os/hal/boards/ | ||
32 | # or <this_dir>/boards | ||
33 | # - BOARD = | ||
34 | # - PJRC_TEENSY_LC for Teensy LC | ||
35 | # - PJRC_TEENSY_3 for Teensy 3.0 | ||
36 | # - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2 | ||
37 | BOARD = PJRC_TEENSY_LC | ||
38 | |||
39 | # Cortex version | ||
40 | # Teensy LC is cortex-m0plus; Teensy 3.x are cortex-m4 | ||
41 | MCU = cortex-m0plus | ||
42 | |||
43 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
44 | # I.e. 6 for Teensy LC; 7 for Teensy 3.x | ||
45 | ARMV = 6 | ||
46 | |||
47 | ifndef QUANTUM_DIR | ||
48 | include ../../../Makefile | 2 | include ../../../Makefile |
49 | endif \ No newline at end of file | 3 | endif \ No newline at end of file |
diff --git a/keyboards/chibios_test/teensy_lc_onekey/rules.mk b/keyboards/chibios_test/teensy_lc_onekey/rules.mk new file mode 100644 index 000000000..43ea9d82d --- /dev/null +++ b/keyboards/chibios_test/teensy_lc_onekey/rules.mk | |||
@@ -0,0 +1,49 @@ | |||
1 | # project specific files | ||
2 | SRC = matrix.c \ | ||
3 | led.c | ||
4 | |||
5 | ## chip/board settings | ||
6 | # - the next two should match the directories in | ||
7 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
8 | # - For Teensies, FAMILY = KINETIS and SERIES is either | ||
9 | # KL2x (LC) or K20x (3.0,3.1,3.2). | ||
10 | MCU_FAMILY = KINETIS | ||
11 | MCU_SERIES = KL2x | ||
12 | |||
13 | # Linker script to use | ||
14 | # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | ||
15 | # or <this_dir>/ld/ | ||
16 | # - NOTE: a custom ld script is needed for EEPROM on Teensy LC | ||
17 | # - LDSCRIPT = | ||
18 | # - MKL26Z64 for Teensy LC | ||
19 | # - MK20DX128 for Teensy 3.0 | ||
20 | # - MK20DX256 for Teensy 3.1 and 3.2 | ||
21 | MCU_LDSCRIPT = MKL26Z64 | ||
22 | |||
23 | # Startup code to use | ||
24 | # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/ | ||
25 | # - STARTUP = | ||
26 | # - kl2x for Teensy LC | ||
27 | # - k20x5 for Teensy 3.0 | ||
28 | # - k20x7 for Teensy 3.1 and 3.2 | ||
29 | MCU_STARTUP = kl2x | ||
30 | |||
31 | # Board: it should exist either in <chibios>/os/hal/boards/ | ||
32 | # or <this_dir>/boards | ||
33 | # - BOARD = | ||
34 | # - PJRC_TEENSY_LC for Teensy LC | ||
35 | # - PJRC_TEENSY_3 for Teensy 3.0 | ||
36 | # - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2 | ||
37 | BOARD = PJRC_TEENSY_LC | ||
38 | |||
39 | # Cortex version | ||
40 | # Teensy LC is cortex-m0plus; Teensy 3.x are cortex-m4 | ||
41 | MCU = cortex-m0plus | ||
42 | |||
43 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
44 | # I.e. 6 for Teensy LC; 7 for Teensy 3.x | ||
45 | ARMV = 6 | ||
46 | |||
47 | ifndef QUANTUM_DIR | ||
48 | include ../../../Makefile | ||
49 | endif \ No newline at end of file | ||
diff --git a/keyboards/clueboard/rev1/Makefile b/keyboards/clueboard/rev1/Makefile index 80a942d06..191c6bb66 100644 --- a/keyboards/clueboard/rev1/Makefile +++ b/keyboards/clueboard/rev1/Makefile | |||
@@ -1,5 +1,3 @@ | |||
1 | BACKLIGHT_ENABLE = no | 1 | ifndef MAKEFILE_INCLUDED |
2 | |||
3 | ifndef QUANTUM_DIR | ||
4 | include ../../../Makefile | 2 | include ../../../Makefile |
5 | endif | 3 | endif \ No newline at end of file |
diff --git a/keyboards/clueboard/rev1/rules.mk b/keyboards/clueboard/rev1/rules.mk new file mode 100644 index 000000000..80a942d06 --- /dev/null +++ b/keyboards/clueboard/rev1/rules.mk | |||
@@ -0,0 +1,5 @@ | |||
1 | BACKLIGHT_ENABLE = no | ||
2 | |||
3 | ifndef QUANTUM_DIR | ||
4 | include ../../../Makefile | ||
5 | endif | ||
diff --git a/keyboards/clueboard/rev2/Makefile b/keyboards/clueboard/rev2/Makefile index cea967b79..191c6bb66 100644 --- a/keyboards/clueboard/rev2/Makefile +++ b/keyboards/clueboard/rev2/Makefile | |||
@@ -1,5 +1,3 @@ | |||
1 | BACKLIGHT_ENABLE = yes | 1 | ifndef MAKEFILE_INCLUDED |
2 | |||
3 | ifndef QUANTUM_DIR | ||
4 | include ../../../Makefile | 2 | include ../../../Makefile |
5 | endif | 3 | endif \ No newline at end of file |
diff --git a/keyboards/clueboard/rev2/rules.mk b/keyboards/clueboard/rev2/rules.mk new file mode 100644 index 000000000..cea967b79 --- /dev/null +++ b/keyboards/clueboard/rev2/rules.mk | |||
@@ -0,0 +1,5 @@ | |||
1 | BACKLIGHT_ENABLE = yes | ||
2 | |||
3 | ifndef QUANTUM_DIR | ||
4 | include ../../../Makefile | ||
5 | endif | ||
diff --git a/keyboards/ergodox/ez/Makefile b/keyboards/ergodox/ez/Makefile index 37e554b30..191c6bb66 100644 --- a/keyboards/ergodox/ez/Makefile +++ b/keyboards/ergodox/ez/Makefile | |||
@@ -1,76 +1,3 @@ | |||
1 | #---------------------------------------------------------------------------- | 1 | ifndef MAKEFILE_INCLUDED |
2 | # On command line: | ||
3 | # | ||
4 | # make = Make software. | ||
5 | # | ||
6 | # make clean = Clean out built project files. | ||
7 | # | ||
8 | # That's pretty much all you need. To compile, always go make clean, | ||
9 | # followed by make. | ||
10 | # | ||
11 | # For advanced users only: | ||
12 | # make teensy = Download the hex file to the device, using teensy_loader_cli. | ||
13 | # (must have teensy_loader_cli installed). | ||
14 | # | ||
15 | #---------------------------------------------------------------------------- | ||
16 | |||
17 | # # project specific files | ||
18 | SRC = twimaster.c \ | ||
19 | matrix.c | ||
20 | |||
21 | # MCU name | ||
22 | MCU = atmega32u4 | ||
23 | |||
24 | # Processor frequency. | ||
25 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
26 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
27 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
28 | # automatically to create a 32-bit value in your source code. | ||
29 | # | ||
30 | # This will be an integer division of F_USB below, as it is sourced by | ||
31 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
32 | # does not *change* the processor frequency - it should merely be updated to | ||
33 | # reflect the processor speed set externally so that the code can use accurate | ||
34 | # software delays. | ||
35 | F_CPU = 16000000 | ||
36 | |||
37 | |||
38 | # | ||
39 | # LUFA specific | ||
40 | # | ||
41 | # Target architecture (see library "Board Types" documentation). | ||
42 | ARCH = AVR8 | ||
43 | |||
44 | # Input clock frequency. | ||
45 | # This will define a symbol, F_USB, in all source code files equal to the | ||
46 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
47 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
48 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
49 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
50 | # at the end, this will be done automatically to create a 32-bit value in your | ||
51 | # source code. | ||
52 | # | ||
53 | # If no clock division is performed on the input clock inside the AVR (via the | ||
54 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
55 | F_USB = $(F_CPU) | ||
56 | |||
57 | # Interrupt driven control endpoint task(+60) | ||
58 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
59 | |||
60 | |||
61 | # Boot Section Size in *bytes* | ||
62 | # Teensy halfKay 512 | ||
63 | # Teensy++ halfKay 1024 | ||
64 | # Atmel DFU loader 4096 | ||
65 | # LUFA bootloader 4096 | ||
66 | # USBaspLoader 2048 | ||
67 | OPT_DEFS += -DBOOTLOADER_SIZE=512 | ||
68 | |||
69 | |||
70 | # Build Options | ||
71 | # comment out to disable the options. | ||
72 | # | ||
73 | |||
74 | ifndef QUANTUM_DIR | ||
75 | include ../../../Makefile | 2 | include ../../../Makefile |
76 | endif | 3 | endif \ No newline at end of file |
diff --git a/keyboards/ergodox/ez/rules.mk b/keyboards/ergodox/ez/rules.mk new file mode 100644 index 000000000..37e554b30 --- /dev/null +++ b/keyboards/ergodox/ez/rules.mk | |||
@@ -0,0 +1,76 @@ | |||
1 | #---------------------------------------------------------------------------- | ||
2 | # On command line: | ||
3 | # | ||
4 | # make = Make software. | ||
5 | # | ||
6 | # make clean = Clean out built project files. | ||
7 | # | ||
8 | # That's pretty much all you need. To compile, always go make clean, | ||
9 | # followed by make. | ||
10 | # | ||
11 | # For advanced users only: | ||
12 | # make teensy = Download the hex file to the device, using teensy_loader_cli. | ||
13 | # (must have teensy_loader_cli installed). | ||
14 | # | ||
15 | #---------------------------------------------------------------------------- | ||
16 | |||
17 | # # project specific files | ||
18 | SRC = twimaster.c \ | ||
19 | matrix.c | ||
20 | |||
21 | # MCU name | ||
22 | MCU = atmega32u4 | ||
23 | |||
24 | # Processor frequency. | ||
25 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
26 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
27 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
28 | # automatically to create a 32-bit value in your source code. | ||
29 | # | ||
30 | # This will be an integer division of F_USB below, as it is sourced by | ||
31 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
32 | # does not *change* the processor frequency - it should merely be updated to | ||
33 | # reflect the processor speed set externally so that the code can use accurate | ||
34 | # software delays. | ||
35 | F_CPU = 16000000 | ||
36 | |||
37 | |||
38 | # | ||
39 | # LUFA specific | ||
40 | # | ||
41 | # Target architecture (see library "Board Types" documentation). | ||
42 | ARCH = AVR8 | ||
43 | |||
44 | # Input clock frequency. | ||
45 | # This will define a symbol, F_USB, in all source code files equal to the | ||
46 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
47 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
48 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
49 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
50 | # at the end, this will be done automatically to create a 32-bit value in your | ||
51 | # source code. | ||
52 | # | ||
53 | # If no clock division is performed on the input clock inside the AVR (via the | ||
54 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
55 | F_USB = $(F_CPU) | ||
56 | |||
57 | # Interrupt driven control endpoint task(+60) | ||
58 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
59 | |||
60 | |||
61 | # Boot Section Size in *bytes* | ||
62 | # Teensy halfKay 512 | ||
63 | # Teensy++ halfKay 1024 | ||
64 | # Atmel DFU loader 4096 | ||
65 | # LUFA bootloader 4096 | ||
66 | # USBaspLoader 2048 | ||
67 | OPT_DEFS += -DBOOTLOADER_SIZE=512 | ||
68 | |||
69 | |||
70 | # Build Options | ||
71 | # comment out to disable the options. | ||
72 | # | ||
73 | |||
74 | ifndef QUANTUM_DIR | ||
75 | include ../../../Makefile | ||
76 | endif | ||
diff --git a/keyboards/ergodox/infinity/Makefile b/keyboards/ergodox/infinity/Makefile index ccb735a48..191c6bb66 100644 --- a/keyboards/ergodox/infinity/Makefile +++ b/keyboards/ergodox/infinity/Makefile | |||
@@ -1,77 +1,3 @@ | |||
1 | # project specific files | 1 | ifndef MAKEFILE_INCLUDED |
2 | SRC = matrix.c \ | ||
3 | led.c | ||
4 | |||
5 | ## chip/board settings | ||
6 | # - the next two should match the directories in | ||
7 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
8 | # - For Teensies, FAMILY = KINETIS and SERIES is either | ||
9 | # KL2x (LC) or K20x (3.0,3.1,3.2). | ||
10 | # - For Infinity KB, SERIES = K20x | ||
11 | MCU_FAMILY = KINETIS | ||
12 | MCU_SERIES = K20x | ||
13 | |||
14 | # Linker script to use | ||
15 | # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | ||
16 | # or <this_dir>/ld/ | ||
17 | # - NOTE: a custom ld script is needed for EEPROM on Teensy LC | ||
18 | # - LDSCRIPT = | ||
19 | # - MKL26Z64 for Teensy LC | ||
20 | # - MK20DX128 for Teensy 3.0 | ||
21 | # - MK20DX256 for Teensy 3.1 and 3.2 | ||
22 | # - MK20DX128BLDR4 for Infinity 60% with Kiibohd bootloader | ||
23 | # - MK20DX256BLDR8 for Infinity ErgoDox with Kiibohd bootloader | ||
24 | MCU_LDSCRIPT = MK20DX256BLDR8 | ||
25 | |||
26 | # Startup code to use | ||
27 | # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/ | ||
28 | # - STARTUP = | ||
29 | # - kl2x for Teensy LC | ||
30 | # - k20x5 for Teensy 3.0 and Infinity 60% | ||
31 | # - k20x7 for Teensy 3.1, 3.2 and Infinity ErgoDox | ||
32 | MCU_STARTUP = k20x7 | ||
33 | |||
34 | # Board: it should exist either in <chibios>/os/hal/boards/ | ||
35 | # or <this_dir>/boards | ||
36 | # - BOARD = | ||
37 | # - PJRC_TEENSY_LC for Teensy LC | ||
38 | # - PJRC_TEENSY_3 for Teensy 3.0 | ||
39 | # - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2 | ||
40 | # - MCHCK_K20 for Infinity KB | ||
41 | #BOARD = MCHCK_K20 | ||
42 | BOARD = PJRC_TEENSY_3_1 | ||
43 | |||
44 | # Cortex version | ||
45 | # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4 | ||
46 | MCU = cortex-m4 | ||
47 | |||
48 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
49 | # I.e. 6 for Teensy LC; 7 for Teensy 3.x | ||
50 | ARMV = 7 | ||
51 | |||
52 | # Vector table for application | ||
53 | # 0x00000000-0x00001000 area is occupied by bootlaoder.*/ | ||
54 | # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB | ||
55 | OPT_DEFS += -DCORTEX_VTOR_INIT=0x00002000 | ||
56 | |||
57 | # Build Options | ||
58 | # comment out to disable the options. | ||
59 | # | ||
60 | CUSTOM_MATRIX ?= yes # Custom matrix file | ||
61 | SERIAL_LINK_ENABLE = yes | ||
62 | VISUALIZER_ENABLE ?= no #temporarily disabled to make everything compile | ||
63 | LCD_ENABLE ?= yes | ||
64 | LED_ENABLE ?= yes | ||
65 | LCD_BACKLIGHT_ENABLE ?= yes | ||
66 | |||
67 | ifndef QUANTUM_DIR | ||
68 | include ../../../Makefile | 2 | include ../../../Makefile |
69 | endif | 3 | endif \ No newline at end of file |
70 | |||
71 | ifdef LCD_ENABLE | ||
72 | include $(SUBPROJECT_PATH)/drivers/gdisp/st7565ergodox/driver.mk | ||
73 | endif | ||
74 | |||
75 | ifdef LED_ENABLE | ||
76 | include $(SUBPROJECT_PATH)/drivers/gdisp/IS31FL3731C/driver.mk | ||
77 | endif | ||
diff --git a/keyboards/ergodox/infinity/rules.mk b/keyboards/ergodox/infinity/rules.mk new file mode 100644 index 000000000..ccb735a48 --- /dev/null +++ b/keyboards/ergodox/infinity/rules.mk | |||
@@ -0,0 +1,77 @@ | |||
1 | # project specific files | ||
2 | SRC = matrix.c \ | ||
3 | led.c | ||
4 | |||
5 | ## chip/board settings | ||
6 | # - the next two should match the directories in | ||
7 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
8 | # - For Teensies, FAMILY = KINETIS and SERIES is either | ||
9 | # KL2x (LC) or K20x (3.0,3.1,3.2). | ||
10 | # - For Infinity KB, SERIES = K20x | ||
11 | MCU_FAMILY = KINETIS | ||
12 | MCU_SERIES = K20x | ||
13 | |||
14 | # Linker script to use | ||
15 | # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | ||
16 | # or <this_dir>/ld/ | ||
17 | # - NOTE: a custom ld script is needed for EEPROM on Teensy LC | ||
18 | # - LDSCRIPT = | ||
19 | # - MKL26Z64 for Teensy LC | ||
20 | # - MK20DX128 for Teensy 3.0 | ||
21 | # - MK20DX256 for Teensy 3.1 and 3.2 | ||
22 | # - MK20DX128BLDR4 for Infinity 60% with Kiibohd bootloader | ||
23 | # - MK20DX256BLDR8 for Infinity ErgoDox with Kiibohd bootloader | ||
24 | MCU_LDSCRIPT = MK20DX256BLDR8 | ||
25 | |||
26 | # Startup code to use | ||
27 | # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/ | ||
28 | # - STARTUP = | ||
29 | # - kl2x for Teensy LC | ||
30 | # - k20x5 for Teensy 3.0 and Infinity 60% | ||
31 | # - k20x7 for Teensy 3.1, 3.2 and Infinity ErgoDox | ||
32 | MCU_STARTUP = k20x7 | ||
33 | |||
34 | # Board: it should exist either in <chibios>/os/hal/boards/ | ||
35 | # or <this_dir>/boards | ||
36 | # - BOARD = | ||
37 | # - PJRC_TEENSY_LC for Teensy LC | ||
38 | # - PJRC_TEENSY_3 for Teensy 3.0 | ||
39 | # - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2 | ||
40 | # - MCHCK_K20 for Infinity KB | ||
41 | #BOARD = MCHCK_K20 | ||
42 | BOARD = PJRC_TEENSY_3_1 | ||
43 | |||
44 | # Cortex version | ||
45 | # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4 | ||
46 | MCU = cortex-m4 | ||
47 | |||
48 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
49 | # I.e. 6 for Teensy LC; 7 for Teensy 3.x | ||
50 | ARMV = 7 | ||
51 | |||
52 | # Vector table for application | ||
53 | # 0x00000000-0x00001000 area is occupied by bootlaoder.*/ | ||
54 | # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB | ||
55 | OPT_DEFS += -DCORTEX_VTOR_INIT=0x00002000 | ||
56 | |||
57 | # Build Options | ||
58 | # comment out to disable the options. | ||
59 | # | ||
60 | CUSTOM_MATRIX ?= yes # Custom matrix file | ||
61 | SERIAL_LINK_ENABLE = yes | ||
62 | VISUALIZER_ENABLE ?= no #temporarily disabled to make everything compile | ||
63 | LCD_ENABLE ?= yes | ||
64 | LED_ENABLE ?= yes | ||
65 | LCD_BACKLIGHT_ENABLE ?= yes | ||
66 | |||
67 | ifndef QUANTUM_DIR | ||
68 | include ../../../Makefile | ||
69 | endif | ||
70 | |||
71 | ifdef LCD_ENABLE | ||
72 | include $(SUBPROJECT_PATH)/drivers/gdisp/st7565ergodox/driver.mk | ||
73 | endif | ||
74 | |||
75 | ifdef LED_ENABLE | ||
76 | include $(SUBPROJECT_PATH)/drivers/gdisp/IS31FL3731C/driver.mk | ||
77 | endif | ||
diff --git a/keyboards/handwired/CMD60/Makefile b/keyboards/handwired/CMD60/Makefile index 711759917..191c6bb66 100644 --- a/keyboards/handwired/CMD60/Makefile +++ b/keyboards/handwired/CMD60/Makefile | |||
@@ -1,73 +1,3 @@ | |||
1 | 1 | ifndef MAKEFILE_INCLUDED | |
2 | # MCU name | ||
3 | MCU = atmega32u4 | ||
4 | |||
5 | # Processor frequency. | ||
6 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
7 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
8 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
9 | # automatically to create a 32-bit value in your source code. | ||
10 | # | ||
11 | # This will be an integer division of F_USB below, as it is sourced by | ||
12 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
13 | # does not *change* the processor frequency - it should merely be updated to | ||
14 | # reflect the processor speed set externally so that the code can use accurate | ||
15 | # software delays. | ||
16 | F_CPU = 16000000 | ||
17 | |||
18 | |||
19 | # | ||
20 | # LUFA specific | ||
21 | # | ||
22 | # Target architecture (see library "Board Types" documentation). | ||
23 | ARCH = AVR8 | ||
24 | |||
25 | # Input clock frequency. | ||
26 | # This will define a symbol, F_USB, in all source code files equal to the | ||
27 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
28 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
29 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
30 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
31 | # at the end, this will be done automatically to create a 32-bit value in your | ||
32 | # source code. | ||
33 | # | ||
34 | # If no clock division is performed on the input clock inside the AVR (via the | ||
35 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
36 | F_USB = $(F_CPU) | ||
37 | |||
38 | # Interrupt driven control endpoint task(+60) | ||
39 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
40 | |||
41 | |||
42 | # Boot Section Size in *bytes* | ||
43 | # Teensy halfKay 512 | ||
44 | # Teensy++ halfKay 1024 | ||
45 | # Atmel DFU loader 4096 | ||
46 | # LUFA bootloader 4096 | ||
47 | # USBaspLoader 2048 | ||
48 | OPT_DEFS += -DBOOTLOADER_SIZE=512 | ||
49 | |||
50 | |||
51 | # Build Options | ||
52 | # change yes to no to disable | ||
53 | # | ||
54 | BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000) | ||
55 | MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700) | ||
56 | EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) | ||
57 | CONSOLE_ENABLE ?= yes # Console for debug(+400) | ||
58 | COMMAND_ENABLE ?= yes # Commands for debug and configuration | ||
59 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
60 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend | ||
61 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
62 | NKRO_ENABLE ?= no # USB Nkey Rollover | ||
63 | BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality on B7 by default | ||
64 | MIDI_ENABLE ?= no # MIDI controls | ||
65 | UNICODE_ENABLE ?= no # Unicode | ||
66 | BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
67 | AUDIO_ENABLE ?= no # Audio output on port C6 | ||
68 | |||
69 | ifndef QUANTUM_DIR | ||
70 | include ../../../Makefile | 2 | include ../../../Makefile |
71 | endif | 3 | endif \ No newline at end of file |
72 | |||
73 | |||
diff --git a/keyboards/handwired/CMD60/rules.mk b/keyboards/handwired/CMD60/rules.mk new file mode 100644 index 000000000..711759917 --- /dev/null +++ b/keyboards/handwired/CMD60/rules.mk | |||
@@ -0,0 +1,73 @@ | |||
1 | |||
2 | # MCU name | ||
3 | MCU = atmega32u4 | ||
4 | |||
5 | # Processor frequency. | ||
6 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
7 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
8 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
9 | # automatically to create a 32-bit value in your source code. | ||
10 | # | ||
11 | # This will be an integer division of F_USB below, as it is sourced by | ||
12 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
13 | # does not *change* the processor frequency - it should merely be updated to | ||
14 | # reflect the processor speed set externally so that the code can use accurate | ||
15 | # software delays. | ||
16 | F_CPU = 16000000 | ||
17 | |||
18 | |||
19 | # | ||
20 | # LUFA specific | ||
21 | # | ||
22 | # Target architecture (see library "Board Types" documentation). | ||
23 | ARCH = AVR8 | ||
24 | |||
25 | # Input clock frequency. | ||
26 | # This will define a symbol, F_USB, in all source code files equal to the | ||
27 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
28 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
29 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
30 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
31 | # at the end, this will be done automatically to create a 32-bit value in your | ||
32 | # source code. | ||
33 | # | ||
34 | # If no clock division is performed on the input clock inside the AVR (via the | ||
35 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
36 | F_USB = $(F_CPU) | ||
37 | |||
38 | # Interrupt driven control endpoint task(+60) | ||
39 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
40 | |||
41 | |||
42 | # Boot Section Size in *bytes* | ||
43 | # Teensy halfKay 512 | ||
44 | # Teensy++ halfKay 1024 | ||
45 | # Atmel DFU loader 4096 | ||
46 | # LUFA bootloader 4096 | ||
47 | # USBaspLoader 2048 | ||
48 | OPT_DEFS += -DBOOTLOADER_SIZE=512 | ||
49 | |||
50 | |||
51 | # Build Options | ||
52 | # change yes to no to disable | ||
53 | # | ||
54 | BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000) | ||
55 | MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700) | ||
56 | EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) | ||
57 | CONSOLE_ENABLE ?= yes # Console for debug(+400) | ||
58 | COMMAND_ENABLE ?= yes # Commands for debug and configuration | ||
59 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
60 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend | ||
61 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
62 | NKRO_ENABLE ?= no # USB Nkey Rollover | ||
63 | BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality on B7 by default | ||
64 | MIDI_ENABLE ?= no # MIDI controls | ||
65 | UNICODE_ENABLE ?= no # Unicode | ||
66 | BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
67 | AUDIO_ENABLE ?= no # Audio output on port C6 | ||
68 | |||
69 | ifndef QUANTUM_DIR | ||
70 | include ../../../Makefile | ||
71 | endif | ||
72 | |||
73 | |||
diff --git a/keyboards/handwired/fivethirteen/Makefile b/keyboards/handwired/fivethirteen/Makefile index 711759917..191c6bb66 100644 --- a/keyboards/handwired/fivethirteen/Makefile +++ b/keyboards/handwired/fivethirteen/Makefile | |||
@@ -1,73 +1,3 @@ | |||
1 | 1 | ifndef MAKEFILE_INCLUDED | |
2 | # MCU name | ||
3 | MCU = atmega32u4 | ||
4 | |||
5 | # Processor frequency. | ||
6 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
7 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
8 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
9 | # automatically to create a 32-bit value in your source code. | ||
10 | # | ||
11 | # This will be an integer division of F_USB below, as it is sourced by | ||
12 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
13 | # does not *change* the processor frequency - it should merely be updated to | ||
14 | # reflect the processor speed set externally so that the code can use accurate | ||
15 | # software delays. | ||
16 | F_CPU = 16000000 | ||
17 | |||
18 | |||
19 | # | ||
20 | # LUFA specific | ||
21 | # | ||
22 | # Target architecture (see library "Board Types" documentation). | ||
23 | ARCH = AVR8 | ||
24 | |||
25 | # Input clock frequency. | ||
26 | # This will define a symbol, F_USB, in all source code files equal to the | ||
27 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
28 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
29 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
30 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
31 | # at the end, this will be done automatically to create a 32-bit value in your | ||
32 | # source code. | ||
33 | # | ||
34 | # If no clock division is performed on the input clock inside the AVR (via the | ||
35 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
36 | F_USB = $(F_CPU) | ||
37 | |||
38 | # Interrupt driven control endpoint task(+60) | ||
39 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
40 | |||
41 | |||
42 | # Boot Section Size in *bytes* | ||
43 | # Teensy halfKay 512 | ||
44 | # Teensy++ halfKay 1024 | ||
45 | # Atmel DFU loader 4096 | ||
46 | # LUFA bootloader 4096 | ||
47 | # USBaspLoader 2048 | ||
48 | OPT_DEFS += -DBOOTLOADER_SIZE=512 | ||
49 | |||
50 | |||
51 | # Build Options | ||
52 | # change yes to no to disable | ||
53 | # | ||
54 | BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000) | ||
55 | MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700) | ||
56 | EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) | ||
57 | CONSOLE_ENABLE ?= yes # Console for debug(+400) | ||
58 | COMMAND_ENABLE ?= yes # Commands for debug and configuration | ||
59 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
60 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend | ||
61 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
62 | NKRO_ENABLE ?= no # USB Nkey Rollover | ||
63 | BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality on B7 by default | ||
64 | MIDI_ENABLE ?= no # MIDI controls | ||
65 | UNICODE_ENABLE ?= no # Unicode | ||
66 | BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
67 | AUDIO_ENABLE ?= no # Audio output on port C6 | ||
68 | |||
69 | ifndef QUANTUM_DIR | ||
70 | include ../../../Makefile | 2 | include ../../../Makefile |
71 | endif | 3 | endif \ No newline at end of file |
72 | |||
73 | |||
diff --git a/keyboards/handwired/fivethirteen/rules.mk b/keyboards/handwired/fivethirteen/rules.mk new file mode 100644 index 000000000..711759917 --- /dev/null +++ b/keyboards/handwired/fivethirteen/rules.mk | |||
@@ -0,0 +1,73 @@ | |||
1 | |||
2 | # MCU name | ||
3 | MCU = atmega32u4 | ||
4 | |||
5 | # Processor frequency. | ||
6 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
7 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
8 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
9 | # automatically to create a 32-bit value in your source code. | ||
10 | # | ||
11 | # This will be an integer division of F_USB below, as it is sourced by | ||
12 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
13 | # does not *change* the processor frequency - it should merely be updated to | ||
14 | # reflect the processor speed set externally so that the code can use accurate | ||
15 | # software delays. | ||
16 | F_CPU = 16000000 | ||
17 | |||
18 | |||
19 | # | ||
20 | # LUFA specific | ||
21 | # | ||
22 | # Target architecture (see library "Board Types" documentation). | ||
23 | ARCH = AVR8 | ||
24 | |||
25 | # Input clock frequency. | ||
26 | # This will define a symbol, F_USB, in all source code files equal to the | ||
27 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
28 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
29 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
30 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
31 | # at the end, this will be done automatically to create a 32-bit value in your | ||
32 | # source code. | ||
33 | # | ||
34 | # If no clock division is performed on the input clock inside the AVR (via the | ||
35 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
36 | F_USB = $(F_CPU) | ||
37 | |||
38 | # Interrupt driven control endpoint task(+60) | ||
39 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
40 | |||
41 | |||
42 | # Boot Section Size in *bytes* | ||
43 | # Teensy halfKay 512 | ||
44 | # Teensy++ halfKay 1024 | ||
45 | # Atmel DFU loader 4096 | ||
46 | # LUFA bootloader 4096 | ||
47 | # USBaspLoader 2048 | ||
48 | OPT_DEFS += -DBOOTLOADER_SIZE=512 | ||
49 | |||
50 | |||
51 | # Build Options | ||
52 | # change yes to no to disable | ||
53 | # | ||
54 | BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000) | ||
55 | MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700) | ||
56 | EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) | ||
57 | CONSOLE_ENABLE ?= yes # Console for debug(+400) | ||
58 | COMMAND_ENABLE ?= yes # Commands for debug and configuration | ||
59 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
60 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend | ||
61 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
62 | NKRO_ENABLE ?= no # USB Nkey Rollover | ||
63 | BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality on B7 by default | ||
64 | MIDI_ENABLE ?= no # MIDI controls | ||
65 | UNICODE_ENABLE ?= no # Unicode | ||
66 | BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
67 | AUDIO_ENABLE ?= no # Audio output on port C6 | ||
68 | |||
69 | ifndef QUANTUM_DIR | ||
70 | include ../../../Makefile | ||
71 | endif | ||
72 | |||
73 | |||
diff --git a/keyboards/handwired/minorca/Makefile b/keyboards/handwired/minorca/Makefile index 155c1f9a2..191c6bb66 100644 --- a/keyboards/handwired/minorca/Makefile +++ b/keyboards/handwired/minorca/Makefile | |||
@@ -1,71 +1,3 @@ | |||
1 | # MCU name | 1 | ifndef MAKEFILE_INCLUDED |
2 | #MCU = at90usb1287 | ||
3 | MCU = atmega32u4 | ||
4 | |||
5 | # Processor frequency. | ||
6 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
7 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
8 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
9 | # automatically to create a 32-bit value in your source code. | ||
10 | # | ||
11 | # This will be an integer division of F_USB below, as it is sourced by | ||
12 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
13 | # does not *change* the processor frequency - it should merely be updated to | ||
14 | # reflect the processor speed set externally so that the code can use accurate | ||
15 | # software delays. | ||
16 | F_CPU = 16000000 | ||
17 | |||
18 | # | ||
19 | # LUFA specific | ||
20 | # | ||
21 | # Target architecture (see library "Board Types" documentation). | ||
22 | ARCH = AVR8 | ||
23 | |||
24 | # Input clock frequency. | ||
25 | # This will define a symbol, F_USB, in all source code files equal to the | ||
26 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
27 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
28 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
29 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
30 | # at the end, this will be done automatically to create a 32-bit value in your | ||
31 | # source code. | ||
32 | # | ||
33 | # If no clock division is performed on the input clock inside the AVR (via the | ||
34 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
35 | F_USB = $(F_CPU) | ||
36 | |||
37 | # 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=512 | ||
48 | |||
49 | # Build Options | ||
50 | # change to "no" to disable the options, or define them in the Makefile in | ||
51 | # the appropriate keymap folder that will get included automatically | ||
52 | # | ||
53 | BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000) | ||
54 | MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700) | ||
55 | EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) | ||
56 | CONSOLE_ENABLE ?= no # Console for debug(+400) | ||
57 | COMMAND_ENABLE ?= yes # Commands for debug and configuration | ||
58 | NKRO_ENABLE ?= yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
59 | BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality | ||
60 | MIDI_ENABLE ?= no # MIDI controls | ||
61 | AUDIO_ENABLE ?= no # Audio output on port C6 | ||
62 | UNICODE_ENABLE ?= no # Unicode | ||
63 | BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
64 | RGBLIGHT_ENABLE ?= yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
65 | |||
66 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
67 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend | ||
68 | |||
69 | ifndef QUANTUM_DIR | ||
70 | include ../../../Makefile | 2 | include ../../../Makefile |
71 | endif \ No newline at end of file | 3 | endif \ No newline at end of file |
diff --git a/keyboards/handwired/minorca/rules.mk b/keyboards/handwired/minorca/rules.mk new file mode 100644 index 000000000..c51371a78 --- /dev/null +++ b/keyboards/handwired/minorca/rules.mk | |||
@@ -0,0 +1,67 @@ | |||
1 | # MCU name | ||
2 | #MCU = at90usb1287 | ||
3 | MCU = atmega32u4 | ||
4 | |||
5 | # Processor frequency. | ||
6 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
7 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
8 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
9 | # automatically to create a 32-bit value in your source code. | ||
10 | # | ||
11 | # This will be an integer division of F_USB below, as it is sourced by | ||
12 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
13 | # does not *change* the processor frequency - it should merely be updated to | ||
14 | # reflect the processor speed set externally so that the code can use accurate | ||
15 | # software delays. | ||
16 | F_CPU = 16000000 | ||
17 | |||
18 | # | ||
19 | # LUFA specific | ||
20 | # | ||
21 | # Target architecture (see library "Board Types" documentation). | ||
22 | ARCH = AVR8 | ||
23 | |||
24 | # Input clock frequency. | ||
25 | # This will define a symbol, F_USB, in all source code files equal to the | ||
26 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
27 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
28 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
29 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
30 | # at the end, this will be done automatically to create a 32-bit value in your | ||
31 | # source code. | ||
32 | # | ||
33 | # If no clock division is performed on the input clock inside the AVR (via the | ||
34 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
35 | F_USB = $(F_CPU) | ||
36 | |||
37 | # 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=512 | ||
48 | |||
49 | # Build Options | ||
50 | # change to "no" to disable the options, or define them in the Makefile in | ||
51 | # the appropriate keymap folder that will get included automatically | ||
52 | # | ||
53 | BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000) | ||
54 | MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700) | ||
55 | EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) | ||
56 | CONSOLE_ENABLE ?= no # Console for debug(+400) | ||
57 | COMMAND_ENABLE ?= yes # Commands for debug and configuration | ||
58 | NKRO_ENABLE ?= yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
59 | BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality | ||
60 | MIDI_ENABLE ?= no # MIDI controls | ||
61 | AUDIO_ENABLE ?= no # Audio output on port C6 | ||
62 | UNICODE_ENABLE ?= no # Unicode | ||
63 | BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
64 | RGBLIGHT_ENABLE ?= yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
65 | |||
66 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
67 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend \ No newline at end of file | ||
diff --git a/keyboards/handwired/onekey/Makefile b/keyboards/handwired/onekey/Makefile index 4e2a6f00f..191c6bb66 100644 --- a/keyboards/handwired/onekey/Makefile +++ b/keyboards/handwired/onekey/Makefile | |||
@@ -1,3 +1,3 @@ | |||
1 | ifndef MAKEFILE_INCLUDED | 1 | ifndef MAKEFILE_INCLUDED |
2 | include ../../Makefile | 2 | include ../../../Makefile |
3 | endif \ No newline at end of file | 3 | endif \ No newline at end of file |
diff --git a/keyboards/handwired/onekey/rules.mk b/keyboards/handwired/onekey/rules.mk new file mode 100644 index 000000000..c6d10856a --- /dev/null +++ b/keyboards/handwired/onekey/rules.mk | |||
@@ -0,0 +1,65 @@ | |||
1 | |||
2 | |||
3 | # MCU name | ||
4 | MCU = atmega32u4 | ||
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. | ||
17 | F_CPU = 16000000 | ||
18 | |||
19 | |||
20 | # | ||
21 | # LUFA specific | ||
22 | # | ||
23 | # Target architecture (see library "Board Types" documentation). | ||
24 | ARCH = AVR8 | ||
25 | |||
26 | # Input clock frequency. | ||
27 | # This will define a symbol, F_USB, in all source code files equal to the | ||
28 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
29 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
30 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
31 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
32 | # at the end, this will be done automatically to create a 32-bit value in your | ||
33 | # source code. | ||
34 | # | ||
35 | # If no clock division is performed on the input clock inside the AVR (via the | ||
36 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
37 | F_USB = $(F_CPU) | ||
38 | |||
39 | # Interrupt driven control endpoint task(+60) | ||
40 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
41 | |||
42 | |||
43 | # Boot Section Size in *bytes* | ||
44 | # Teensy halfKay 512 | ||
45 | # Teensy++ halfKay 1024 | ||
46 | # Atmel DFU loader 4096 | ||
47 | # LUFA bootloader 4096 | ||
48 | # USBaspLoader 2048 | ||
49 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
50 | |||
51 | |||
52 | # Build Options | ||
53 | # comment out to disable the options. | ||
54 | # | ||
55 | BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000) | ||
56 | MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700) | ||
57 | EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) | ||
58 | CONSOLE_ENABLE ?= yes # Console for debug(+400) | ||
59 | COMMAND_ENABLE ?= yes # Commands for debug and configuration | ||
60 | #SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | ||
61 | #NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA | ||
62 | |||
63 | ifndef QUANTUM_DIR | ||
64 | include ../../../Makefile | ||
65 | endif \ No newline at end of file | ||
diff --git a/keyboards/handwired/traveller/Makefile b/keyboards/handwired/traveller/Makefile index 12a4b71f4..191c6bb66 100644 --- a/keyboards/handwired/traveller/Makefile +++ b/keyboards/handwired/traveller/Makefile | |||
@@ -1,89 +1,3 @@ | |||
1 | 1 | ifndef MAKEFILE_INCLUDED | |
2 | #MCU = at90usb1287 | ||
3 | MCU = atmega32u4 | ||
4 | |||
5 | # Processor frequency. | ||
6 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
7 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
8 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
9 | # automatically to create a 32-bit value in your source code. | ||
10 | # | ||
11 | # This will be an integer division of F_USB below, as it is sourced by | ||
12 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
13 | # does not *change* the processor frequency - it should merely be updated to | ||
14 | # reflect the processor speed set externally so that the code can use accurate | ||
15 | # software delays. | ||
16 | F_CPU = 16000000 | ||
17 | |||
18 | # for avr upload | ||
19 | USB ?= /dev/cu.usbmodem1421 | ||
20 | # | ||
21 | # LUFA specific | ||
22 | # | ||
23 | # Target architecture (see library "Board Types" documentation). | ||
24 | ARCH = AVR8 | ||
25 | |||
26 | # Input clock frequency. | ||
27 | # This will define a symbol, F_USB, in all source code files equal to the | ||
28 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
29 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
30 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
31 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
32 | # at the end, this will be done automatically to create a 32-bit value in your | ||
33 | # source code. | ||
34 | # | ||
35 | # If no clock division is performed on the input clock inside the AVR (via the | ||
36 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
37 | F_USB = $(F_CPU) | ||
38 | |||
39 | |||
40 | ifdef TEENSY2 | ||
41 | OPT_DEFS += -DATREUS_TEENSY2 | ||
42 | ATREUS_UPLOAD_COMMAND = teensy_loader_cli -w -mmcu=$(MCU) $(TARGET).hex | ||
43 | else | ||
44 | OPT_DEFS += -DATREUS_ASTAR | ||
45 | OPT_DEFS += -DCATERINA_BOOTLOADER | ||
46 | ATREUS_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done; \ | ||
47 | avrdude -p $(MCU) -c avr109 -U flash:w:$(TARGET).hex -P $(USB) | ||
48 | endif | ||
49 | # Interrupt driven control endpoint task(+60) | ||
50 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
51 | |||
52 | |||
53 | # MCU name | ||
54 | |||
55 | # Boot Section Size in *bytes* | ||
56 | # Teensy halfKay 512 | ||
57 | # Teensy++ halfKay 1024 | ||
58 | # Atmel DFU loader 4096 | ||
59 | # LUFA bootloader 4096 | ||
60 | # USBaspLoader 2048 | ||
61 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
62 | |||
63 | |||
64 | # Build Options | ||
65 | # change yes to no to disable | ||
66 | # | ||
67 | BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000) | ||
68 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
69 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
70 | CONSOLE_ENABLE ?= no # Console for debug(+400) | ||
71 | COMMAND_ENABLE ?= no # Commands for debug and configuration | ||
72 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
73 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend | ||
74 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
75 | NKRO_ENABLE ?= no # USB Nkey Rollover | ||
76 | BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality on B7 by default | ||
77 | MIDI_ENABLE ?= no # MIDI controls | ||
78 | UNICODE_ENABLE ?= no # Unicode | ||
79 | BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
80 | AUDIO_ENABLE ?= no # Audio output on port C6 | ||
81 | RGBLIGHT_ENABLE = yes | ||
82 | |||
83 | ifndef QUANTUM_DIR | ||
84 | include ../../../Makefile | 2 | include ../../../Makefile |
85 | endif | 3 | endif \ No newline at end of file |
86 | |||
87 | upload: build | ||
88 | $(ATREUS_UPLOAD_COMMAND) | ||
89 | |||
diff --git a/keyboards/handwired/traveller/rules.mk b/keyboards/handwired/traveller/rules.mk new file mode 100644 index 000000000..12a4b71f4 --- /dev/null +++ b/keyboards/handwired/traveller/rules.mk | |||
@@ -0,0 +1,89 @@ | |||
1 | |||
2 | #MCU = at90usb1287 | ||
3 | MCU = atmega32u4 | ||
4 | |||
5 | # Processor frequency. | ||
6 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
7 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
8 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
9 | # automatically to create a 32-bit value in your source code. | ||
10 | # | ||
11 | # This will be an integer division of F_USB below, as it is sourced by | ||
12 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
13 | # does not *change* the processor frequency - it should merely be updated to | ||
14 | # reflect the processor speed set externally so that the code can use accurate | ||
15 | # software delays. | ||
16 | F_CPU = 16000000 | ||
17 | |||
18 | # for avr upload | ||
19 | USB ?= /dev/cu.usbmodem1421 | ||
20 | # | ||
21 | # LUFA specific | ||
22 | # | ||
23 | # Target architecture (see library "Board Types" documentation). | ||
24 | ARCH = AVR8 | ||
25 | |||
26 | # Input clock frequency. | ||
27 | # This will define a symbol, F_USB, in all source code files equal to the | ||
28 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
29 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
30 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
31 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
32 | # at the end, this will be done automatically to create a 32-bit value in your | ||
33 | # source code. | ||
34 | # | ||
35 | # If no clock division is performed on the input clock inside the AVR (via the | ||
36 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
37 | F_USB = $(F_CPU) | ||
38 | |||
39 | |||
40 | ifdef TEENSY2 | ||
41 | OPT_DEFS += -DATREUS_TEENSY2 | ||
42 | ATREUS_UPLOAD_COMMAND = teensy_loader_cli -w -mmcu=$(MCU) $(TARGET).hex | ||
43 | else | ||
44 | OPT_DEFS += -DATREUS_ASTAR | ||
45 | OPT_DEFS += -DCATERINA_BOOTLOADER | ||
46 | ATREUS_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done; \ | ||
47 | avrdude -p $(MCU) -c avr109 -U flash:w:$(TARGET).hex -P $(USB) | ||
48 | endif | ||
49 | # Interrupt driven control endpoint task(+60) | ||
50 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
51 | |||
52 | |||
53 | # MCU name | ||
54 | |||
55 | # Boot Section Size in *bytes* | ||
56 | # Teensy halfKay 512 | ||
57 | # Teensy++ halfKay 1024 | ||
58 | # Atmel DFU loader 4096 | ||
59 | # LUFA bootloader 4096 | ||
60 | # USBaspLoader 2048 | ||
61 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
62 | |||
63 | |||
64 | # Build Options | ||
65 | # change yes to no to disable | ||
66 | # | ||
67 | BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000) | ||
68 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
69 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
70 | CONSOLE_ENABLE ?= no # Console for debug(+400) | ||
71 | COMMAND_ENABLE ?= no # Commands for debug and configuration | ||
72 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
73 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend | ||
74 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
75 | NKRO_ENABLE ?= no # USB Nkey Rollover | ||
76 | BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality on B7 by default | ||
77 | MIDI_ENABLE ?= no # MIDI controls | ||
78 | UNICODE_ENABLE ?= no # Unicode | ||
79 | BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
80 | AUDIO_ENABLE ?= no # Audio output on port C6 | ||
81 | RGBLIGHT_ENABLE = yes | ||
82 | |||
83 | ifndef QUANTUM_DIR | ||
84 | include ../../../Makefile | ||
85 | endif | ||
86 | |||
87 | upload: build | ||
88 | $(ATREUS_UPLOAD_COMMAND) | ||
89 | |||
diff --git a/keyboards/planck/rev3/Makefile b/keyboards/planck/rev3/Makefile index 3ed1445e4..191c6bb66 100644 --- a/keyboards/planck/rev3/Makefile +++ b/keyboards/planck/rev3/Makefile | |||
@@ -1,5 +1,3 @@ | |||
1 | AUDIO_ENABLE ?= no # Audio output on port C6 | 1 | ifndef MAKEFILE_INCLUDED |
2 | |||
3 | ifndef QUANTUM_DIR | ||
4 | include ../../../Makefile | 2 | include ../../../Makefile |
5 | endif \ No newline at end of file | 3 | endif \ No newline at end of file |
diff --git a/keyboards/planck/rev3/rules.mk b/keyboards/planck/rev3/rules.mk new file mode 100644 index 000000000..3ed1445e4 --- /dev/null +++ b/keyboards/planck/rev3/rules.mk | |||
@@ -0,0 +1,5 @@ | |||
1 | AUDIO_ENABLE ?= no # Audio output on port C6 | ||
2 | |||
3 | ifndef QUANTUM_DIR | ||
4 | include ../../../Makefile | ||
5 | endif \ No newline at end of file | ||
diff --git a/keyboards/planck/rev4/Makefile b/keyboards/planck/rev4/Makefile index ed09f85a4..191c6bb66 100644 --- a/keyboards/planck/rev4/Makefile +++ b/keyboards/planck/rev4/Makefile | |||
@@ -1,5 +1,3 @@ | |||
1 | AUDIO_ENABLE ?= yes # Audio output on port C6 | 1 | ifndef MAKEFILE_INCLUDED |
2 | |||
3 | ifndef QUANTUM_DIR | ||
4 | include ../../../Makefile | 2 | include ../../../Makefile |
5 | endif \ No newline at end of file | 3 | endif \ No newline at end of file |
diff --git a/keyboards/planck/rev4/rules.mk b/keyboards/planck/rev4/rules.mk new file mode 100644 index 000000000..ed09f85a4 --- /dev/null +++ b/keyboards/planck/rev4/rules.mk | |||
@@ -0,0 +1,5 @@ | |||
1 | AUDIO_ENABLE ?= yes # Audio output on port C6 | ||
2 | |||
3 | ifndef QUANTUM_DIR | ||
4 | include ../../../Makefile | ||
5 | endif \ No newline at end of file | ||