diff options
author | Thomas Weißschuh <[email protected]> | 2022-02-04 23:25:57 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-02-04 22:25:57 +0000 |
commit | f1cd2a5a89454ee11f71bd4c71807e7bb041b202 (patch) | |
tree | 5b9df171669cf2d873a160b4a739fc499c9ade7d /tmk_core/protocol.mk | |
parent | 5b31e97187e4f0bd4389d7e657c9ce5b43658fca (diff) | |
download | qmk_firmware-f1cd2a5a89454ee11f71bd4c71807e7bb041b202.tar.gz qmk_firmware-f1cd2a5a89454ee11f71bd4c71807e7bb041b202.zip |
ChibiOS: add support for HID Programmable Buttons (#15787)
* ChibiOS: add support for HID Programmable Buttons
Fixes #15596
* Enable SHARED_ENDPOINT when PROGRAMMABLE_BUTTON is enabled
The Programmable Button driver expects the shared EP to be enabled.
So enforce this invariant.
Diffstat (limited to 'tmk_core/protocol.mk')
-rw-r--r-- | tmk_core/protocol.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tmk_core/protocol.mk b/tmk_core/protocol.mk index 31a6de76f1..19fd7d2425 100644 --- a/tmk_core/protocol.mk +++ b/tmk_core/protocol.mk @@ -28,6 +28,11 @@ ifeq ($(strip $(EXTRAKEY_ENABLE)), yes) SHARED_EP_ENABLE = yes endif +ifeq ($(strip $(PROGRAMMABLE_BUTTON_ENABLE)), yes) + TMK_COMMON_DEFS += -DPROGRAMMABLE_BUTTON_ENABLE + SHARED_EP_ENABLE = yes +endif + ifeq ($(strip $(RAW_ENABLE)), yes) TMK_COMMON_DEFS += -DRAW_ENABLE endif |