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