aboutsummaryrefslogtreecommitdiff
path: root/keyboards/hhkb/ansi/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/hhkb/ansi/rules.mk')
-rw-r--r--keyboards/hhkb/ansi/rules.mk71
1 files changed, 71 insertions, 0 deletions
diff --git a/keyboards/hhkb/ansi/rules.mk b/keyboards/hhkb/ansi/rules.mk
new file mode 100644
index 000000000..a367ef48d
--- /dev/null
+++ b/keyboards/hhkb/ansi/rules.mk
@@ -0,0 +1,71 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5# Teensy halfkay
6# Pro Micro caterina
7# Atmel DFU atmel-dfu
8# LUFA DFU lufa-dfu
9# QMK DFU qmk-dfu
10# ATmega32A bootloadHID
11# ATmega328P USBasp
12BOOTLOADER = atmel-dfu
13
14# Build Options
15# comment out to disable the options.
16#
17BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
18MOUSEKEY_ENABLE = yes # Mouse keys
19EXTRAKEY_ENABLE = yes # Audio control and System control
20CONSOLE_ENABLE = yes # Console for debug
21COMMAND_ENABLE = yes # Commands for debug and configuration
22CUSTOM_MATRIX = yes # Custom matrix file for the HHKB
23# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
24# SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
25# NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
26# BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
27# MIDI_ENABLE = yes # MIDI controls
28# UNICODE_ENABLE = yes # Unicode
29# BLUETOOTH_ENABLE = yes # Enable Bluetooth with the Adafruit EZ-Key HID
30
31
32# HHKB_RN42_ENABLE = yes # Enable support for hasu's BT alt controller -- code borrowed from tmk source tree.
33
34# Either uncomment the HHKB_RN42_ENABLE line above, or run make enabling the
35# feature. Be sure to clean any existing build before trying to enable rn42
36# support. For example:
37#
38# make hhkb-keymap-clean
39# make hhkb-keymap-dfu HHKB_RN42_ENABLE=yes
40
41# project specific files
42SRC = matrix.c
43
44ifeq ($(strip $(HHKB_RN42_ENABLE)), yes)
45
46OPT_DEFS += -DHHKB_RN42_ENABLE
47
48# Support for the RN42 Bluetooth module. This is the BT module in Hasu's BT
49# HHKB Alt controller.
50RN42_DIR = ../rn42
51
52SRC += serial_uart.c \
53 ../rn42/suart.S \
54 ../rn42/rn42.c \
55 ../rn42/rn42_task.c \
56 ../rn42/battery.c \
57 ../rn42/main.c
58
59VPATH += $(RN42_DIR)
60
61endif
62
63
64# debug-on: EXTRAFLAGS += -DDEBUG -DDEBUG_ACTION
65# debug-on: all
66
67# debug-off: EXTRAFLAGS += -DNO_DEBUG -DNO_PRINT
68# debug-off: OPT_DEFS := $(filter-out -DCONSOLE_ENABLE,$(OPT_DEFS))
69# debug-off: all
70
71LAYOUTS = 60_hhkb