forked from forks/qmk_firmware
7d60a141a2
* move RGB Matrix rules to keyboard level * move PERMISSIVE_HOLD config to keyboard level * annepro2.c: convert tabs to spaces * refactor rules.mk files Reformats each version's `rules.mk` file to be arranged more similarly to those of the rest of the keyboards in QMK. No logic change. * annepro2.c: allow compilation without RGB Matrix Wraps the `led_enabled` definition and the `KC_AP_RGB_*` keycodes in `#ifdef RGB_MATRIX_ENABLE`, allowing successful compilation if the user sets `RGB_MATRIX_ENABLE = no`. * rework readme files Reworks the main `readme.md` file to be more friendly to GitHub viewing, and removes the single-line version-specific readme files (exposes the main readme to QMK Configurator users). * info.json: update maintainer value * info.json: apply friendly formatting
53 lines
1.1 KiB
Makefile
53 lines
1.1 KiB
Makefile
# MCU
|
|
MCU = cortex-m0plus
|
|
ARMV = 6
|
|
USE_FPU = no
|
|
MCU_FAMILY = HT32
|
|
MCU_SERIES = HT32F523xx
|
|
MCU_LDSCRIPT = HT32F52342_ANNEPRO2
|
|
MCU_STARTUP = ht32f523xx
|
|
|
|
BOARD = ANNEPRO2_C18
|
|
|
|
# Bootloader selection
|
|
BOOTLOADER = custom
|
|
PROGRAM_CMD = annepro2_tools --boot $(BUILD_DIR)/$(TARGET).bin
|
|
|
|
# Build Options
|
|
# change yes to no to disable
|
|
#
|
|
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
|
MOUSEKEY_ENABLE = no # Mouse keys
|
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
|
CONSOLE_ENABLE = no # Console for debug
|
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
|
NKRO_ENABLE = no # Enable N-Key Rollover
|
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
|
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
|
AUDIO_ENABLE = no # Audio output
|
|
|
|
# Custom RGB matrix handling
|
|
RGB_MATRIX_ENABLE = yes
|
|
RGB_MATRIX_DRIVER = custom
|
|
|
|
# Keys
|
|
CUSTOM_MATRIX = lite
|
|
KEY_LOCK_ENABLE = no
|
|
|
|
# Other features
|
|
RAW_ENABLE = no
|
|
MIDI_ENABLE = no
|
|
VIRTSER_ENABLE = no
|
|
COMBO_ENABLE = no
|
|
|
|
LAYOUTS = 60_ansi
|
|
|
|
# Anne Pro 2
|
|
SRC = \
|
|
matrix.c \
|
|
annepro2_ble.c \
|
|
ap2_led.c \
|
|
protocol.c \
|
|
rgb_driver.c \
|
|
config_led.c
|