rules.mk 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. OLED_ENABLE = yes
  11. OLED_DRIVER = SSD1306
  12. LOCAL_GLCDFONT = yes
  13. #Debug options
  14. VERBOSE = yes
  15. DEBUG_MATRIX_SCAN_RATE = no
  16. DEBUG_BALLER = no
  17. DEBUG_MATRIX = yes
  18. # A bunch of stuff that you shouldn't touch unless you
  19. # know what you're doing.
  20. #
  21. # No touchy, capiche?
  22. ifneq ($(strip $(BALLSTEP)),)
  23. OPT_DEFS += -DTRKSTEP=$(strip $(BALLSTEP))
  24. endif
  25. ifneq ($(strip $(SCROLLSTEP)),)
  26. OPT_DEFS += -DSCROLLSTEP=$(strip $(SCROLLSTEP))
  27. endif
  28. ifeq ($(strip $(BALLER)), yes)
  29. POINTING_DEVICE_ENABLE = yes
  30. POINTING_DEVICE_DRIVER = custom
  31. OPT_DEFS += -DBALLER
  32. endif
  33. ifeq ($(strip $(DEBUG_BALLER)), yes)
  34. OPT_DEFS += -DDEBUG_BALLER
  35. endif
  36. ifeq ($(strip $(DEBUG_MATRIX)), yes)
  37. OPT_DEFS += -DDEBUG_MATRIX
  38. endif