rules.mk 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ## Project specific files
  2. SRC= babblePaste.c
  3. ifdef ASTAR
  4. CFLAGS=-D ASTAR
  5. MCU = atmega32u4
  6. SCULPT_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done ; \
  7. avrdude -p $(MCU) -c avr109 -U flash:w:$(TARGET).hex -P $(USB)
  8. else
  9. MCU = at90usb1286
  10. SCULPT_UPLOAD_COMMAND = teensy_loader_cli -w -mmcu=$(MCU) $(TARGET).hex
  11. endif
  12. F_CPU = 16000000
  13. ARCH = AVR8
  14. F_USB = $(F_CPU)
  15. # Bootloader
  16. # This definition is optional, and if your keyboard supports multiple bootloaders of
  17. # different sizes, comment this out, and the correct address will be loaded
  18. # automatically (+60). See bootloader.mk for all options.
  19. ifdef ASTAR
  20. BOOTLOADER = caterina
  21. else
  22. BOOTLOADER = atmel-dfu
  23. endif
  24. # Interrupt driven control endpoint task(+60)
  25. OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
  26. #
  27. BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
  28. MOUSEKEY_ENABLE = no # Mouse keys(+4700)
  29. EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
  30. CONSOLE_ENABLE = yes # Console for debug(+400)
  31. COMMAND_ENABLE = yes # Commands for debug and configuration
  32. # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
  33. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
  34. # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  35. NKRO_ENABLE = no # USB Nkey Rollover
  36. BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
  37. MIDI_ENABLE = no # MIDI controls
  38. UNICODE_ENABLE = no # Unicode
  39. BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
  40. AUDIO_ENABLE = no # Audio output on port C6
  41. USB = /dev/cu.usbmodem14141
  42. # upload: build
  43. # $(SCULPT_UPLOAD_COMMAND)