2023-01-16 23:02:14 +08:00
|
|
|
# We are using a Splinky RP2040 as a drop-in replacement controller
|
|
|
|
CONVERT_TO = promicro_rp2040
|
|
|
|
|
|
|
|
# Bootloader selection
|
|
|
|
BOOTLOADER = rp2040
|
|
|
|
|
2023-02-19 17:51:22 +08:00
|
|
|
# Default features
|
2023-01-16 23:02:14 +08:00
|
|
|
LTO_ENABLE = yes
|
2023-01-29 08:43:50 +08:00
|
|
|
OLED_DRIVER = SSD1306
|
2023-01-16 23:02:14 +08:00
|
|
|
|
2023-02-19 17:51:22 +08:00
|
|
|
# Toggleable through keymap
|
|
|
|
AUTO_SHIFT_ENABLE = yes
|
|
|
|
AUTOCORRECT_ENABLE = yes
|
2023-01-16 23:02:14 +08:00
|
|
|
CAPS_WORD_ENABLE = yes
|
2023-02-19 17:51:22 +08:00
|
|
|
|
|
|
|
# Optional features
|
|
|
|
OLED_ENABLE = yes
|
2023-01-16 23:02:14 +08:00
|
|
|
COMBO_ENABLE = yes
|
2023-02-19 17:51:22 +08:00
|
|
|
TAP_DANCE_ENABLE = yes
|
2023-01-16 23:02:14 +08:00
|
|
|
LEADER_ENABLE = yes
|
2023-02-19 17:51:22 +08:00
|
|
|
# Only required if OLED_ENABLE = yes
|
2023-02-03 22:03:06 +08:00
|
|
|
WPM_ENABLE = yes
|
2023-01-16 23:02:14 +08:00
|
|
|
|
2023-02-19 17:51:22 +08:00
|
|
|
# Source required c files
|
|
|
|
SRC += ./process_record.c
|
|
|
|
|
|
|
|
# Contitionally source optional c files
|
|
|
|
ifeq ($(OLED_ENABLE),yes)
|
|
|
|
SRC += ./oled.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(COMBO_ENABLE),yes)
|
|
|
|
VPATH += keyboards/gboards
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(TAP_DANCE_ENABLE),yes)
|
|
|
|
SRC += ./tapdance.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(LEADER_ENABLE),yes)
|
|
|
|
SRC += ./leader.c
|
|
|
|
endif
|