aboutsummaryrefslogtreecommitdiff
path: root/keyboards/dp60
diff options
context:
space:
mode:
authorWilba <Jason.S.Williams@gmail.com>2020-01-04 07:52:00 +1100
committerDrashna Jaelre <drashna@live.com>2020-01-03 12:52:00 -0800
commit320822d75b785401809f45007320e6fb6885b3fd (patch)
treec511d49a48b953ac29ffb4a51ac928319eb9fde4 /keyboards/dp60
parentb36259566546eb884cc241bcfadb671051e5e75e (diff)
downloadqmk_firmware-320822d75b785401809f45007320e6fb6885b3fd.tar.gz
qmk_firmware-320822d75b785401809f45007320e6fb6885b3fd.zip
VIA Configurator Refactor (#7268)
* VIA Refactor * Remove old code * review changes * review changes * Fix cannonkeys/satisfaction75/prototype:via build * Add via.h to quantum.h * Move backlight init to after backlight config load * Merge branch 'master' into via_refactor_pr * Update user's rules.mk to new way of enabling VIA * Added id_switch_matrix_state * Review changes
Diffstat (limited to 'keyboards/dp60')
-rw-r--r--keyboards/dp60/config.h22
-rw-r--r--keyboards/dp60/keymaps/via/rules.mk40
2 files changed, 3 insertions, 59 deletions
diff --git a/keyboards/dp60/config.h b/keyboards/dp60/config.h
index 87eebbe19..29d5e3c2a 100644
--- a/keyboards/dp60/config.h
+++ b/keyboards/dp60/config.h
@@ -50,24 +50,6 @@
50#define DRIVER_2_LED_TOTAL 36 50#define DRIVER_2_LED_TOTAL 36
51#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 51#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
52 52
53#if defined(RAW_ENABLE) 53#if defined(VIA_ENABLE)
54//VIA 54# define DYNAMIC_KEYMAP_LAYER_COUNT 2
55#define DYNAMIC_KEYMAP_LAYER_COUNT 2
56// EEPROM usage
57
58// TODO: refactor with new user EEPROM code (coming soon)
59#define EEPROM_MAGIC 0x451F
60#define EEPROM_MAGIC_ADDR 34
61// Bump this every time we change what we store
62// This will automatically reset the EEPROM with defaults
63// and avoid loading invalid data from the EEPROM
64#define EEPROM_VERSION 0x08
65#define EEPROM_VERSION_ADDR 36
66
67// Dynamic keymap starts after EEPROM version
68#define DYNAMIC_KEYMAP_EEPROM_ADDR 37
69// Dynamic macro starts after dynamic keymaps (35+(4*10*6*2)) = (35+480)
70#define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 637
71#define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 391 // 1024-DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR
72#define DYNAMIC_KEYMAP_MACRO_COUNT 16
73#endif 55#endif
diff --git a/keyboards/dp60/keymaps/via/rules.mk b/keyboards/dp60/keymaps/via/rules.mk
index 6d2a73864..036bd6d1c 100644
--- a/keyboards/dp60/keymaps/via/rules.mk
+++ b/keyboards/dp60/keymaps/via/rules.mk
@@ -1,39 +1 @@
1# MCU name VIA_ENABLE = yes \ No newline at end of file
2MCU = atmega32u4
3
4# Bootloader selection
5# Teensy halfkay
6# Pro Micro caterina
7# Atmel DFU atmel-dfu
8# LUFA DFU lufa-dfu
9# QMK DFU qmk-dfu
10# ATmega32A bootloadHID
11# ATmega328P USBasp
12BOOTLOADER = atmel-dfu
13
14# Build Options
15# change yes to no to disable
16#
17BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
18MOUSEKEY_ENABLE = no # Mouse keys
19EXTRAKEY_ENABLE = yes # Audio control and System control
20CONSOLE_ENABLE = no # Console for debug
21COMMAND_ENABLE = no # Commands for debug and configuration
22# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
23SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
24# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
25NKRO_ENABLE = no # USB Nkey Rollover
26BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
27MIDI_ENABLE = no # MIDI support
28UNICODE_ENABLE = no # Unicode
29BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
30AUDIO_ENABLE = no # Audio output on port C6
31FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
32RGBLIGHT_ENABLE = yes # Use RGB bottom light
33RGB_MATRIX_ENABLE = yes # Use RGB matrix
34
35RAW_ENABLE = yes
36DYNAMIC_KEYMAP_ENABLE = yes
37
38CUSTOM_MATRIX = yes
39SRC += matrix.c keyboards/wilba_tech/wt_main.c