]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/plaid/rules.mk
[Keyboard] Plaid - Add compatibility for LAYOUTS = planck_mit planck_grid (#5591)
[qmk_firmware.git] / keyboards / plaid / rules.mk
1 # MCU name
2 #MCU = at90usb1286
3 MCU = atmega328p
4 PROTOCOL = 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.
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 # 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
63 OPT_DEFS += -DBOOTLOADER_SIZE=2048
64
65 # Flash program via avrdude, but default command is not suitable.
66 # You can use plaid:default:program
67 PROGRAM_CMD = avrdude -c usbasp -p m328p -U flash:w:$(BUILD_DIR)/$(TARGET).hex
68
69
70 # disable debug code
71 OPT_DEFS = -DDEBUG_LEVEL=0
72
73
74 # Build Options
75 #   change yes to no to disable
76 #
77 BOOTMAGIC_ENABLE = no      # Virtual DIP switch configuration(+1000)
78 MOUSEKEY_ENABLE = yes       # Mouse keys(+4700)
79 EXTRAKEY_ENABLE = yes       # Audio control and System control(+450)
80 CONSOLE_ENABLE = no        # Console for debug(+400)
81 COMMAND_ENABLE = no        # Commands for debug and configuration
82 # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
83 SLEEP_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
85 NKRO_ENABLE = no            # USB Nkey Rollover
86 BACKLIGHT_ENABLE = no       # Enable keyboard backlight functionality on B7 by default
87 RGBLIGHT_ENABLE = no        # Enable keyboard RGB underglow
88 MIDI_ENABLE = no            # MIDI support (+2400 to 4200, depending on config)
89 UNICODE_ENABLE = no         # Unicode
90 BLUETOOTH_ENABLE = no       # Enable Bluetooth with the Adafruit EZ-Key HID
91 AUDIO_ENABLE = no           # Audio output on port C6
92 FAUXCLICKY_ENABLE = no      # Use buzzer to emulate clicky switches
93 HD44780_ENABLE = no             # Enable support for HD44780 based LCDs (+400)
94
95 # unsupported features for now
96 NO_UART = yes
97 NO_SUSPEND_POWER_DOWN = yes
98
99
100 LAYOUTS = ortho_4x12 planck_mit
101 LAYOUTS_HAS_RGB = no