Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

protocol.mk 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. PROTOCOL_DIR = protocol
  2. ifdef PS2_MOUSE_ENABLE
  3. SRC += $(PROTOCOL_DIR)/ps2_mouse.c
  4. OPT_DEFS += -DPS2_MOUSE_ENABLE
  5. OPT_DEFS += -DMOUSE_ENABLE
  6. endif
  7. ifdef PS2_USE_BUSYWAIT
  8. SRC += protocol/ps2_busywait.c
  9. OPT_DEFS += -DPS2_USE_BUSYWAIT
  10. endif
  11. ifdef PS2_USE_INT
  12. SRC += protocol/ps2_interrupt.c
  13. OPT_DEFS += -DPS2_USE_INT
  14. endif
  15. ifdef PS2_USE_USART
  16. SRC += protocol/ps2_usart.c
  17. OPT_DEFS += -DPS2_USE_USART
  18. endif
  19. ifdef SERIAL_MOUSE_MICROSOFT_ENABLE
  20. SRC += $(PROTOCOL_DIR)/serial_mouse_microsoft.c
  21. OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MICROSOFT \
  22. -DMOUSE_ENABLE
  23. endif
  24. ifdef SERIAL_MOUSE_MOUSESYSTEMS_ENABLE
  25. SRC += $(PROTOCOL_DIR)/serial_mouse_mousesystems.c
  26. OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MOUSESYSTEMS \
  27. -DMOUSE_ENABLE
  28. endif
  29. ifdef SERIAL_MOUSE_USE_SOFT
  30. SRC += $(PROTOCOL_DIR)/serial_soft.c
  31. endif
  32. ifdef SERIAL_MOUSE_USE_UART
  33. SRC += $(PROTOCOL_DIR)/serial_uart.c
  34. endif
  35. # Search Path
  36. VPATH += $(TOP_DIR)/protocol