rules.mk 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # MCU name
  2. MCU = atmega32a
  3. PROTOCOL = VUSB
  4. # disable UART since atmega32a apparently doesn't have it
  5. NO_UART = yes
  6. # this simplifies things for now
  7. NO_SUSPEND_POWER_DOWN = yes
  8. # Processor frequency.
  9. # Normally the first thing your program should do is set the clock prescaler,
  10. # so your program will run at the correct speed. You should also set this
  11. # variable to same clock speed. The _delay_ms() macro uses this, and many
  12. # examples use this variable to calculate timings. Do not add a "UL" here.
  13. F_CPU = 12000000
  14. # Build Options
  15. # comment out to disable the options.
  16. #
  17. BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
  18. MOUSEKEY_ENABLE = yes # Mouse keys
  19. EXTRAKEY_ENABLE = yes # Audio control and System control
  20. CONSOLE_ENABLE = yes # Console for debug
  21. COMMAND_ENABLE = yes # Commands for debug and configuration
  22. #BACKLIGHT_ENABLE = yes
  23. # V-USB debug level: To use ps2_usart.c level must be 0
  24. # ps2_usart.c requires USART to receive PS/2 signal.
  25. OPT_DEFS = -DDEBUG_LEVEL=0
  26. OPS_DEFS += -DPROTOCOL_VUSB
  27. OPT_DEFS += -DBOOTLOADER_SIZE=2048
  28. CUSTOM_MATRIX = yes
  29. SRC = matrix.c
  30. #---------------- Programming Options --------------------------
  31. PROGRAM_CMD = ./keyboards/ps2avrGB/program $(TARGET).hex