aboutsummaryrefslogtreecommitdiff
path: root/keyboards/meira
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 /keyboards/meira
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
Diffstat (limited to 'keyboards/meira')
-rw-r--r--keyboards/meira/featherble/rules.mk4
-rw-r--r--keyboards/meira/promicro/rules.mk13
-rw-r--r--keyboards/meira/rules.mk35
3 files changed, 6 insertions, 46 deletions
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