aboutsummaryrefslogtreecommitdiff
path: root/keyboards/minidox
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/minidox
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/minidox')
-rw-r--r--keyboards/minidox/rev1/rules.mk2
-rw-r--r--keyboards/minidox/rules.mk56
2 files changed, 13 insertions, 45 deletions
diff --git a/keyboards/minidox/rev1/rules.mk b/keyboards/minidox/rev1/rules.mk
index f84561674..7b30c0bef 100644
--- a/keyboards/minidox/rev1/rules.mk
+++ b/keyboards/minidox/rev1/rules.mk
@@ -1 +1 @@
BACKLIGHT_ENABLE = no \ No newline at end of file BACKLIGHT_ENABLE = no
diff --git a/keyboards/minidox/rules.mk b/keyboards/minidox/rules.mk
index bcd74bcde..dd2affb3f 100644
--- a/keyboards/minidox/rules.mk
+++ b/keyboards/minidox/rules.mk
@@ -1,52 +1,16 @@
1SRC += matrix.c \
2 i2c.c \
3 split_util.c \
4 serial.c
5
6# MCU name 1# MCU name
7MCU = atmega32u4 2MCU = atmega32u4
8 3
9# Processor frequency. 4# Bootloader selection
10# This will define a symbol, F_CPU, in all source code files equal to the 5# Teensy halfkay
11# processor frequency in Hz. You can then use this symbol in your source code to 6# Pro Micro caterina
12# calculate timings. Do NOT tack on a 'UL' at the end, this will be done 7# Atmel DFU atmel-dfu
13# automatically to create a 32-bit value in your source code. 8# LUFA DFU lufa-dfu
14# 9# QMK DFU qmk-dfu
15# This will be an integer division of F_USB below, as it is sourced by 10# ATmega32A bootloadHID
16# F_USB after it has run through any CPU prescalers. Note that this value 11# ATmega328P USBasp
17# does not *change* the processor frequency - it should merely be updated to
18# reflect the processor speed set externally so that the code can use accurate
19# software delays.
20F_CPU = 16000000
21
22#
23# LUFA specific
24#
25# Target architecture (see library "Board Types" documentation).
26ARCH = AVR8
27
28# Input clock frequency.
29# This will define a symbol, F_USB, in all source code files equal to the
30# input clock frequency (before any prescaling is performed) in Hz. This value may
31# differ from F_CPU if prescaling is used on the latter, and is required as the
32# raw input clock is fed directly to the PLL sections of the AVR for high speed
33# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
34# at the end, this will be done automatically to create a 32-bit value in your
35# source code.
36#
37# If no clock division is performed on the input clock inside the AVR (via the
38# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
39F_USB = $(F_CPU)
40
41# Bootloader
42# This definition is optional, and if your keyboard supports multiple bootloaders of
43# different sizes, comment this out, and the correct address will be loaded
44# automatically (+60). See bootloader.mk for all options.
45BOOTLOADER = caterina 12BOOTLOADER = caterina
46 13
47# Interrupt driven control endpoint task(+60)
48OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
49
50# Build Options 14# Build Options
51# change to "no" to disable the options, or define them in the Makefile in 15# change to "no" to disable the options, or define them in the Makefile in
52# the appropriate keymap folder that will get included automatically 16# the appropriate keymap folder that will get included automatically
@@ -68,5 +32,9 @@ USE_I2C ?= no
68SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend 32SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend
69 33
70CUSTOM_MATRIX = yes 34CUSTOM_MATRIX = yes
35SRC += matrix.c \
36 i2c.c \
37 split_util.c \
38 serial.c
71 39
72DEFAULT_FOLDER = minidox/rev1 40DEFAULT_FOLDER = minidox/rev1