diff options
author | Luiz Ribeiro <[email protected]> | 2017-01-21 12:30:06 -0500 |
---|---|---|
committer | Luiz Ribeiro <[email protected]> | 2017-01-21 12:55:19 -0500 |
commit | f7462aaa613a08ba4b86dbb912ce26722cfccaff (patch) | |
tree | cd7bd4b109fdb9d6f5253885138e1b34ee277e12 /keyboards/ps2avrGB/rules.mk | |
parent | 10ff9623214ee62935a17b3f68d5180756b7a27b (diff) | |
download | qmk_firmware-f7462aaa613a08ba4b86dbb912ce26722cfccaff.tar.gz qmk_firmware-f7462aaa613a08ba4b86dbb912ce26722cfccaff.zip |
Got ps2avrGB to work with the V-USB protocol
Diffstat (limited to 'keyboards/ps2avrGB/rules.mk')
-rw-r--r-- | keyboards/ps2avrGB/rules.mk | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/keyboards/ps2avrGB/rules.mk b/keyboards/ps2avrGB/rules.mk new file mode 100644 index 0000000000..d747e89290 --- /dev/null +++ b/keyboards/ps2avrGB/rules.mk @@ -0,0 +1,38 @@ +# MCU name +MCU = atmega32a + +PROTOCOL = VUSB + +# disable UART since atmega32a apparently doesn't have it +NO_UART = yes +# this simplifies things for now +NO_SUSPEND_POWER_DOWN = yes + +# Processor frequency. +# Normally the first thing your program should do is set the clock prescaler, +# so your program will run at the correct speed. You should also set this +# variable to same clock speed. The _delay_ms() macro uses this, and many +# examples use this variable to calculate timings. Do not add a "UL" here. +F_CPU = 12000000 + +# Build Options +# comment out to disable the options. +# +BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration +MOUSEKEY_ENABLE = yes # Mouse keys +EXTRAKEY_ENABLE = yes # Audio control and System control +CONSOLE_ENABLE = yes # Console for debug +COMMAND_ENABLE = yes # Commands for debug and configuration +#BACKLIGHT_ENABLE = yes + +# V-USB debug level: To use ps2_usart.c level must be 0 +# ps2_usart.c requires USART to receive PS/2 signal. +OPT_DEFS = -DDEBUG_LEVEL=0 +OPS_DEFS += -DPROTOCOL_VUSB +OPT_DEFS += -DBOOTLOADER_SIZE=2048 + +CUSTOM_MATRIX = yes +SRC = matrix.c + +#---------------- Programming Options -------------------------- +PROGRAM_CMD = ./keyboards/ps2avrGB/program $(TARGET).hex |