ibmpc_usb: C++ class for two-interface support

This commit is contained in:
tmk 2021-07-04 22:01:38 +09:00
parent f4f47aaee7
commit e9dab95909
5 changed files with 1538 additions and 30 deletions

View file

@ -69,7 +69,7 @@ OPT_DEFS += -DSUSPEND_MODE_STANDBY
# comment out to disable the options.
#
BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000)
MOUSEKEY_ENABLE ?= no # Mouse keys(+4700)
MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700)
EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450)
CONSOLE_ENABLE ?= yes # Console for debug(+400)
COMMAND_ENABLE ?= yes # Commands for debug and configuration
@ -78,6 +78,10 @@ NKRO_ENABLE ?= yes # USB Nkey Rollover
KEYMAP_SECTION_ENABLE ?= yes
UNIMAP_ENABLE ?= yes
# IBMPC Options
IBMPC_SECONDARY ?= no # enable secondary interface
IBMPC_MOUSE_ENABLE ?= no # enable mouse support
# Optimize size but this may cause error "relocation truncated to fit"
#EXTRALDFLAGS = -Wl,--relax
@ -102,6 +106,16 @@ else
endif
ifeq (yes,$(strip $(IBMPC_SECONDARY)))
OPT_DEFS += -DIBMPC_SECONDARY
endif
ifeq (yes,$(strip $(IBMPC_MOUSE_ENABLE)))
OPT_DEFS += -DIBMPC_MOUSE_ENABLE
OPT_DEFS += -DMOUSE_ENABLE
endif
# Search Path
VPATH += $(TARGET_DIR)
VPATH += $(TMK_DIR)