2 Copyright 2019 Holten Campbell
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #include "config_common.h"
22 /* USB Device descriptor parameter */
23 #define VENDOR_ID 0x5052
24 #define PRODUCT_ID 0x0051
25 #define DEVICE_VER 0x0001
26 #define MANUFACTURER PrimeKB
27 #define PRODUCT Prime_E
28 #define DESCRIPTION Ergo_45
32 #define MATRIX_COLS 13
34 /* Keyboard Matrix Assignments */
35 #define MATRIX_ROW_PINS { E6, C7, B5, B4 }
36 #define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, D6, D4, D5, D3, D2, D1, D0 }
39 /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */
40 #define DIODE_DIRECTION COL2ROW
42 #define BACKLIGHT_PIN B7
43 #define BACKLIGHT_LEVELS 5
46 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
47 #define DEBOUNCING_DELAY 5
49 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
50 #define LOCKING_SUPPORT_ENABLE
51 /* Locking resynchronize hack */
52 #define LOCKING_RESYNC_ENABLE
54 #define DYNAMIC_KEYMAP_LAYER_COUNT 4
58 // TODO: refactor with new user EEPROM code (coming soon)
59 #define EEPROM_MAGIC 0x451F
60 #define EEPROM_MAGIC_ADDR 32
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 34
67 // Dynamic keymap starts after EEPROM version
68 #define DYNAMIC_KEYMAP_EEPROM_ADDR 35
69 // Dynamic macro starts after dynamic keymaps (35+(4*13*4*2)) = (35+416)
70 #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 451
71 #define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 573 // 1024-DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR
72 #define DYNAMIC_KEYMAP_MACRO_COUNT 16