]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/gh60/Makefile
Renames keyboard folder to keyboards, adds couple of tmk's fixes (#432)
[qmk_firmware.git] / keyboards / gh60 / Makefile
1 \r
2 \r
3 # MCU name\r
4 #MCU = at90usb1287\r
5 MCU = atmega32u4\r
6 \r
7 # Processor frequency.\r
8 #     This will define a symbol, F_CPU, in all source code files equal to the\r
9 #     processor frequency in Hz. You can then use this symbol in your source code to\r
10 #     calculate timings. Do NOT tack on a 'UL' at the end, this will be done\r
11 #     automatically to create a 32-bit value in your source code.\r
12 #\r
13 #     This will be an integer division of F_USB below, as it is sourced by\r
14 #     F_USB after it has run through any CPU prescalers. Note that this value\r
15 #     does not *change* the processor frequency - it should merely be updated to\r
16 #     reflect the processor speed set externally so that the code can use accurate\r
17 #     software delays.\r
18 F_CPU = 16000000\r
19 \r
20 \r
21 #\r
22 # LUFA specific\r
23 #\r
24 # Target architecture (see library "Board Types" documentation).\r
25 ARCH = AVR8\r
26 \r
27 # Input clock frequency.\r
28 #     This will define a symbol, F_USB, in all source code files equal to the\r
29 #     input clock frequency (before any prescaling is performed) in Hz. This value may\r
30 #     differ from F_CPU if prescaling is used on the latter, and is required as the\r
31 #     raw input clock is fed directly to the PLL sections of the AVR for high speed\r
32 #     clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'\r
33 #     at the end, this will be done automatically to create a 32-bit value in your\r
34 #     source code.\r
35 #\r
36 #     If no clock division is performed on the input clock inside the AVR (via the\r
37 #     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.\r
38 F_USB = $(F_CPU)\r
39 \r
40 # Interrupt driven control endpoint task(+60)\r
41 OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT\r
42 \r
43 \r
44 # Boot Section Size in *bytes*\r
45 #   Teensy halfKay   512\r
46 #   Teensy++ halfKay 1024\r
47 #   Atmel DFU loader 4096\r
48 #   LUFA bootloader  4096\r
49 #   USBaspLoader     2048\r
50 OPT_DEFS += -DBOOTLOADER_SIZE=4096\r
51 \r
52 \r
53 # Build Options\r
54 #   comment out to disable the options.\r
55 #\r
56 BOOTMAGIC_ENABLE ?= yes         # Virtual DIP switch configuration(+1000)\r
57 MOUSEKEY_ENABLE ?= yes          # Mouse keys(+4700)\r
58 EXTRAKEY_ENABLE ?= yes          # Audio control and System control(+450)\r
59 # CONSOLE_ENABLE ?= yes         # Console for debug(+400)\r
60 # COMMAND_ENABLE ?= yes         # Commands for debug and configuration\r
61 KEYBOARD_LOCK_ENABLE ?= yes     # Allow locking of keyboard via magic key\r
62 # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE\r
63 # SLEEP_LED_ENABLE ?= yes       # Breathing sleep LED during USB suspend\r
64 NKRO_ENABLE ?= yes                      # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work\r
65 # BACKLIGHT_ENABLE ?= yes       # Enable keyboard backlight functionality\r
66 # MIDI_ENABLE ?= YES                    # MIDI controls\r
67 # UNICODE_ENABLE ?= YES         # Unicode\r
68 # BLUETOOTH_ENABLE ?= yes       # Enable Bluetooth with the Adafruit EZ-Key HID\r
69 \r
70 \r
71 ifndef QUANTUM_DIR\r
72         include ../../Makefile\r
73 endif\r
74 \r