rules.mk 1.5 KB

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