]> git.gir.st - tmk_keyboard.git/blob - protocol.mk
Merge branch 'usb_usb_hub'
[tmk_keyboard.git] / protocol.mk
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 OPT_DEFS += -DPS2_USE_INT
19 endif
20
21 ifdef PS2_USE_USART
22 SRC += protocol/ps2_usart.c
23 OPT_DEFS += -DPS2_USE_USART
24 endif
25
26
27 ifdef SERIAL_MOUSE_MICROSOFT_ENABLE
28 SRC += $(PROTOCOL_DIR)/serial_mouse_microsoft.c
29 OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MICROSOFT \
30 -DMOUSE_ENABLE
31 endif
32
33 ifdef SERIAL_MOUSE_MOUSESYSTEMS_ENABLE
34 SRC += $(PROTOCOL_DIR)/serial_mouse_mousesystems.c
35 OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MOUSESYSTEMS \
36 -DMOUSE_ENABLE
37 endif
38
39 ifdef SERIAL_MOUSE_USE_SOFT
40 SRC += $(PROTOCOL_DIR)/serial_soft.c
41 endif
42
43 ifdef SERIAL_MOUSE_USE_UART
44 SRC += $(PROTOCOL_DIR)/serial_uart.c
45 endif
46
47 # Search Path
48 VPATH += $(TOP_DIR)/protocol
Imprint / Impressum