53 lines
1.6 KiB
Makefile
53 lines
1.6 KiB
Makefile
# MCU name
|
|
MCU = RP2040
|
|
|
|
# Bootloader selection
|
|
BOOTLOADER = rp2040
|
|
|
|
# LTO must be disabled for RP2040 builds
|
|
LTO_ENABLE = no
|
|
|
|
# Build Options
|
|
# change yes to no to disable
|
|
#
|
|
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
|
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
|
CONSOLE_ENABLE = no # Console for debug
|
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
|
NKRO_ENABLE = no # USB Nkey Rollover
|
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
|
MOUSEKEY_ENABLE = yes
|
|
|
|
# Either do RGBLIGHT_ENABLE or RGB_MATRIX_ENABLE and RGB_MATRIX_DRIVER
|
|
RGBLIGHT_ENABLE = no
|
|
RGB_MATRIX_ENABLE ?= yes
|
|
RGB_MATRIX_DRIVER = ws2812
|
|
|
|
MIDI_ENABLE = no # MIDI support
|
|
UNICODE_ENABLE = no # Unicode
|
|
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
|
AUDIO_ENABLE = no # Audio output on port C6
|
|
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
|
ENCODER_ENABLE = no
|
|
# EXTRAFLAGS += -flto # macros disabled, if you need the extra space
|
|
MOUSEKEY_ENABLE = no
|
|
|
|
AUDIO_ENABLE ?= yes
|
|
AUDIO_DRIVER = pwm_hardware
|
|
|
|
# PIO serial/WS2812 drivers must be used on RP2040
|
|
SERIAL_DRIVER = vendor
|
|
WS2812_DRIVER = vendor
|
|
|
|
ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
|
|
RGB_MATRIX_CUSTOM_KB = yes
|
|
OPT_DEFS += -DRGB_MATRIX_CUSTOM_KB
|
|
endif
|
|
|
|
VIK_ENABLE = yes
|
|
|
|
include keyboards/fingerpunch/src/rules.mk
|