diff options
| author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-07-27 17:07:26 +0200 |
|---|---|---|
| committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-07-27 17:38:31 +0200 |
| commit | 7dde35d4f7cc3cc1569a31e752ea4043133b1a72 (patch) | |
| tree | 9c91ff60feb667492d76ecfe086849e6fba18b68 /protocol.mk | |
| parent | 388fe60c67dbc4232a979d3de3b3b161a67871e2 (diff) | |
| download | qmk_firmware-7dde35d4f7cc3cc1569a31e752ea4043133b1a72.tar.gz qmk_firmware-7dde35d4f7cc3cc1569a31e752ea4043133b1a72.zip | |
integrated serial mouse drivers as a feature into the firmware architecture
* can be enabled by defining Makefile macro SERIAL_MOUSE_MICROSOFT_ENABLE or
SERIAL_MOUSE_MOUSESYSTEMS_ENABLE.
* Serial implementation can be chosen via SERIAL_MOUSE_USE_SOFT and
SERIAL_MOUSE_USE_UART macros
* UART configuration still has to be done in config.h: I added working clauses
for both mouse protocols to ps2_usb's config.h
Diffstat (limited to 'protocol.mk')
| -rw-r--r-- | protocol.mk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/protocol.mk b/protocol.mk index 7f561e62d..de7014e86 100644 --- a/protocol.mk +++ b/protocol.mk | |||
| @@ -23,5 +23,25 @@ ifdef PS2_USE_USART | |||
| 23 | endif | 23 | endif |
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | ifdef SERIAL_MOUSE_MICROSOFT_ENABLE | ||
| 27 | SRC += $(PROTOCOL_DIR)/serial_mouse_microsoft.c | ||
| 28 | OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MICROSOFT \ | ||
| 29 | -DMOUSE_ENABLE | ||
| 30 | endif | ||
| 31 | |||
| 32 | ifdef SERIAL_MOUSE_MOUSESYSTEMS_ENABLE | ||
| 33 | SRC += $(PROTOCOL_DIR)/serial_mouse_mousesystems.c | ||
| 34 | OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MOUSESYSTEMS \ | ||
| 35 | -DMOUSE_ENABLE | ||
| 36 | endif | ||
| 37 | |||
| 38 | ifdef SERIAL_MOUSE_USE_SOFT | ||
| 39 | SRC += $(PROTOCOL_DIR)/serial_soft.c | ||
| 40 | endif | ||
| 41 | |||
| 42 | ifdef SERIAL_MOUSE_USE_UART | ||
| 43 | SRC += $(PROTOCOL_DIR)/serial_uart.c | ||
| 44 | endif | ||
| 45 | |||
| 26 | # Search Path | 46 | # Search Path |
| 27 | VPATH += $(TOP_DIR)/protocol | 47 | VPATH += $(TOP_DIR)/protocol |
