diff options
author | tmk <hasu@tmk-kbd.com> | 2015-04-10 01:32:04 +0900 |
---|---|---|
committer | tmk <hasu@tmk-kbd.com> | 2015-04-10 01:32:04 +0900 |
commit | 1a02ebcc612e9a9c0d87e02295c7258de3a70ccc (patch) | |
tree | e517f3c70bb2d542797e57d13e9023c84af230fb /tmk_core/protocol.mk | |
parent | 6746e37088ce8ba03529c1226bd216705edb2b1f (diff) | |
parent | a074364c3731d66b56d988c8a6c960a83ea0e0a1 (diff) | |
download | qmk_firmware-1a02ebcc612e9a9c0d87e02295c7258de3a70ccc.tar.gz qmk_firmware-1a02ebcc612e9a9c0d87e02295c7258de3a70ccc.zip |
Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core'
Diffstat (limited to 'tmk_core/protocol.mk')
-rw-r--r-- | tmk_core/protocol.mk | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/tmk_core/protocol.mk b/tmk_core/protocol.mk new file mode 100644 index 000000000..726f658a0 --- /dev/null +++ b/tmk_core/protocol.mk | |||
@@ -0,0 +1,50 @@ | |||
1 | PROTOCOL_DIR = protocol | ||
2 | |||
3 | |||
4 | ifdef PS2_MOUSE_ENABLE | ||
5 | SRC += $(PROTOCOL_DIR)/ps2_mouse.c | ||
6 | OPT_DEFS += -DPS2_MOUSE_ENABLE | ||
7 | OPT_DEFS += -DMOUSE_ENABLE | ||
8 | endif | ||
9 | |||
10 | ifdef PS2_USE_BUSYWAIT | ||
11 | SRC += protocol/ps2_busywait.c | ||
12 | SRC += protocol/ps2_io_avr.c | ||
13 | OPT_DEFS += -DPS2_USE_BUSYWAIT | ||
14 | endif | ||
15 | |||
16 | ifdef PS2_USE_INT | ||
17 | SRC += protocol/ps2_interrupt.c | ||
18 | SRC += protocol/ps2_io_avr.c | ||
19 | OPT_DEFS += -DPS2_USE_INT | ||
20 | endif | ||
21 | |||
22 | ifdef PS2_USE_USART | ||
23 | SRC += protocol/ps2_usart.c | ||
24 | SRC += protocol/ps2_io_avr.c | ||
25 | OPT_DEFS += -DPS2_USE_USART | ||
26 | endif | ||
27 | |||
28 | |||
29 | ifdef SERIAL_MOUSE_MICROSOFT_ENABLE | ||
30 | SRC += $(PROTOCOL_DIR)/serial_mouse_microsoft.c | ||
31 | OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MICROSOFT \ | ||
32 | -DMOUSE_ENABLE | ||
33 | endif | ||
34 | |||
35 | ifdef SERIAL_MOUSE_MOUSESYSTEMS_ENABLE | ||
36 | SRC += $(PROTOCOL_DIR)/serial_mouse_mousesystems.c | ||
37 | OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MOUSESYSTEMS \ | ||
38 | -DMOUSE_ENABLE | ||
39 | endif | ||
40 | |||
41 | ifdef SERIAL_MOUSE_USE_SOFT | ||
42 | SRC += $(PROTOCOL_DIR)/serial_soft.c | ||
43 | endif | ||
44 | |||
45 | ifdef SERIAL_MOUSE_USE_UART | ||
46 | SRC += $(PROTOCOL_DIR)/serial_uart.c | ||
47 | endif | ||
48 | |||
49 | # Search Path | ||
50 | VPATH += $(TMK_DIR)/protocol | ||