aboutsummaryrefslogtreecommitdiff
path: root/keyboards/plaid/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/plaid/rules.mk')
-rw-r--r--keyboards/plaid/rules.mk101
1 files changed, 101 insertions, 0 deletions
diff --git a/keyboards/plaid/rules.mk b/keyboards/plaid/rules.mk
new file mode 100644
index 000000000..3d66334b3
--- /dev/null
+++ b/keyboards/plaid/rules.mk
@@ -0,0 +1,101 @@
1# MCU name
2#MCU = at90usb1286
3MCU = atmega328p
4PROTOCOL = VUSB
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
43# Bootloader selection
44# Teensy halfkay
45# Pro Micro caterina
46# Atmel DFU atmel-dfu
47# LUFA DFU lufa-dfu
48# QMK DFU qmk-dfu
49# atmega32a bootloadHID
50#
51# This uses usbaspbootloader
52# BOOTLOADER = atmel-dfu
53
54
55# If you don't know the bootloader type, then you can specify the
56# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line
57# Teensy halfKay 512
58# Teensy++ halfKay 1024
59# Atmel DFU loader 4096
60# LUFA bootloader 4096
61# USBaspLoader 2048
62# OPT_DEFS += -DBOOTLOADER_SIZE=4096
63OPT_DEFS += -DBOOTLOADER_SIZE=2048
64
65# Flash program via avrdude, but default command is not suitable.
66# You can use plaid:default:program
67PROGRAM_CMD = avrdude -c usbasp -p m328p -U flash:w:$(BUILD_DIR)/$(TARGET).hex
68
69
70# disable debug code
71OPT_DEFS = -DDEBUG_LEVEL=0
72
73
74# Build Options
75# change yes to no to disable
76#
77BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
78MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
79EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
80CONSOLE_ENABLE = no # Console for debug(+400)
81COMMAND_ENABLE = no # Commands for debug and configuration
82# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
83SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
84# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
85NKRO_ENABLE = no # USB Nkey Rollover
86BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
87RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
88MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
89UNICODE_ENABLE = no # Unicode
90BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
91AUDIO_ENABLE = no # Audio output on port C6
92FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
93HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400)
94
95# unsupported features for now
96NO_UART = yes
97NO_SUSPEND_POWER_DOWN = yes
98
99
100LAYOUTS = ortho_4x12 planck_mit planck_grid
101LAYOUTS_HAS_RGB = no