]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Simplification and code polish on ps2avrGB directory
authorLuiz Ribeiro <luizribeiro@gmail.com>
Sat, 21 Jan 2017 18:44:36 +0000 (13:44 -0500)
committerLuiz Ribeiro <luizribeiro@gmail.com>
Sat, 21 Jan 2017 18:52:23 +0000 (13:52 -0500)
keyboards/ps2avrGB/config.h
keyboards/ps2avrGB/matrix.c
keyboards/ps2avrGB/ps2avrGB.h
keyboards/ps2avrGB/rules.mk

index cd5d1ab5a8be56d6384334670881c2f2978111de..dfaea5979ffbe2a7377c705e4aac2f4a748d13d3 100644 (file)
@@ -18,8 +18,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #ifndef CONFIG_H
 #define CONFIG_H
 
-#include "config_common.h"
-
 #define VENDOR_ID       0x20A0
 #define PRODUCT_ID      0x422D
 // TODO: share these strings with usbconfig.h
index e487ca18231ad53cf69a718a257221433f712d9c..beaa54c400af53d020d382b665a0ddaa8d9a5678 100644 (file)
@@ -100,6 +100,5 @@ inline matrix_row_t matrix_get_row(uint8_t row) {
     return matrix[row];
 }
 
-void matrix_print(void)
-{
+void matrix_print(void) {
 }
index 1da26adb222e169b5fa8662f43aebdf869c4e11e..1527c604e7cdc19ca87e313004697175c52ab0f3 100644 (file)
@@ -17,20 +17,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #ifndef KEYMAP_COMMON_H
 #define KEYMAP_COMMON_H
 
-#include <stdint.h>
-#include <stdbool.h>
 #include "keycode.h"
 #include "action.h"
-#include "action_code.h"
-#include "action_layer.h"
-#include "action_macro.h"
-#include "action_util.h"
-#include "report.h"
-#include "host.h"
-#include "print.h"
-#include "debug.h"
-#include "keymap.h"
-
 
 #define KEYMAP( \
     K05, K25, K35, K45, K55, K06, KA6, KA7, K07, KB5, KC5, KD5, KE5, KD1, KE1, KE2, \
index d747e8929048af5ba26ae5946d3d7771f103c36a..e2b5922ea27e90cd48ed99acc145a9b37dd12a57 100644 (file)
@@ -1,38 +1,43 @@
+# Copyright 2017 Luiz Ribeiro <luizribeiro@gmail.com>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 # MCU name
 MCU = atmega32a
-
 PROTOCOL = VUSB
 
-# disable UART since atmega32a apparently doesn't have it
+# unsupported features for now
 NO_UART = yes
-# this simplifies things for now
 NO_SUSPEND_POWER_DOWN = yes
+BACKLIGHT_ENABLE = no
 
-# 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.
+# processor frequency
 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
+# build options
+BOOTMAGIC_ENABLE = yes
+MOUSEKEY_ENABLE = yes
+EXTRAKEY_ENABLE = yes
+CONSOLE_ENABLE = yes
+COMMAND_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 setup
 CUSTOM_MATRIX = yes
 SRC = matrix.c
 
-#---------------- Programming Options --------------------------
+# programming options
 PROGRAM_CMD = ./keyboards/ps2avrGB/program $(TARGET).hex