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.

37 lines
1.1 KiB

  1. #----------------------------------------------------------------------------
  2. # make gergo:germ:dfu
  3. # Make sure you have dfu-programmer installed!
  4. #----------------------------------------------------------------------------
  5. # Firmware options
  6. BALLER = no # Enable to ball out
  7. BALLSTEP = 20 # Multiple in px to move, multiplied by layer number
  8. SCROLLSTEP = 1 # Lines to scroll with ball
  9. MOUSEKEY_ENABLE = yes # Mouse keys, needed for baller
  10. #Debug options
  11. VERBOSE = yes
  12. DEBUG_MATRIX_SCAN_RATE = no
  13. DEBUG_BALLER = no
  14. DEBUG_MATRIX = yes
  15. # A bunch of stuff that you shouldn't touch unless you
  16. # know what you're doing.
  17. #
  18. # No touchy, capiche?
  19. SRC += matrix.c i2c_master.c
  20. ifneq ($(strip $(BALLSTEP)),)
  21. OPT_DEFS += -DTRKSTEP=$(strip $(BALLSTEP))
  22. endif
  23. ifneq ($(strip $(SCROLLSTEP)),)
  24. OPT_DEFS += -DSCROLLSTEP=$(strip $(SCROLLSTEP))
  25. endif
  26. ifeq ($(strip $(BALLER)), yes)
  27. POINTING_DEVICE_ENABLE = yes
  28. OPT_DEFS += -DBALLER
  29. endif
  30. ifeq ($(strip $(DEBUG_BALLER)), yes)
  31. OPT_DEFS += -DDEBUG_BALLER
  32. endif
  33. ifeq ($(strip $(DEBUG_MATRIX)), yes)
  34. OPT_DEFS += -DDEBUG_MATRIX
  35. endif