Remove unused _BOOTLOADER defines
[jackhill/qmk/firmware.git] / keyboards / meira / rules.mk
1 SRC += matrix.c TWIlib.c issi.c lighting.c
2
3 # MCU name
4 MCU = atmega32u4
5
6
7 #
8 # LUFA specific
9 #
10 # Target architecture (see library "Board Types" documentation).
11 ARCH = 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.
24 F_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.
30 BOOTLOADER = caterina
31
32 # Interrupt driven control endpoint task(+60)
33 OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
34
35 # Bootloader selection
36 # Teensy halfkay
37 # Pro Micro caterina
38 # Atmel DFU atmel-dfu
39 # LUFA DFU lufa-dfu
40 # QMK DFU qmk-dfu
41 # atmega32a bootloadHID
42 BOOTLOADER = caterina
43
44 # Build Options
45 # change yes to no to disable
46 #
47 BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
48 MOUSEKEY_ENABLE = no # Mouse keys(+4700)
49 EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
50 CONSOLE_ENABLE = no # Console for debug(+400)
51 COMMAND_ENABLE = no # Commands for debug and configuration
52 # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
53 SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
54 # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
55 NKRO_ENABLE = no # USB Nkey Rollover
56 MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
57 UNICODE_ENABLE = no # Unicode
58 BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
59 AUDIO_ENABLE = no # Audio output on port C6
60 RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
61 FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
62 BACKLIGHT_CUSTOM_DRIVER = yes
63 BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality, also set ISSI_ENABLE below for Miera
64 ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled
65
66 CUSTOM_MATRIX = yes
67
68 #ifeq ($(strip $(ISSI_ENABLE)), yes)
69 # TMK_COMMON_DEFS += -DISSI_ENABLE
70 #endif
71 #
72 #ifeq ($(strip $(WATCHDOG_ENABLE)), yes)
73 # TMK_COMMON_DEFS += -DWATCHDOG_ENABLE
74 #endif
75
76 DEFAULT_FOLDER = meira/promicro
77 LAYOUTS = ortho_4x12