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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. SRC += protocol/ps2_io_avr.c
  10. OPT_DEFS += -DPS2_USE_BUSYWAIT
  11. endif
  12. ifdef PS2_USE_INT
  13. SRC += protocol/ps2_interrupt.c
  14. OPT_DEFS += -DPS2_USE_INT
  15. endif
  16. ifdef PS2_USE_USART
  17. SRC += protocol/ps2_usart.c
  18. OPT_DEFS += -DPS2_USE_USART
  19. endif
  20. ifdef SERIAL_MOUSE_MICROSOFT_ENABLE
  21. SRC += $(PROTOCOL_DIR)/serial_mouse_microsoft.c
  22. OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MICROSOFT \
  23. -DMOUSE_ENABLE
  24. endif
  25. ifdef SERIAL_MOUSE_MOUSESYSTEMS_ENABLE
  26. SRC += $(PROTOCOL_DIR)/serial_mouse_mousesystems.c
  27. OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MOUSESYSTEMS \
  28. -DMOUSE_ENABLE
  29. endif
  30. ifdef SERIAL_MOUSE_USE_SOFT
  31. SRC += $(PROTOCOL_DIR)/serial_soft.c
  32. endif
  33. ifdef SERIAL_MOUSE_USE_UART
  34. SRC += $(PROTOCOL_DIR)/serial_uart.c
  35. endif
  36. # Search Path
  37. VPATH += $(TOP_DIR)/protocol