summaryrefslogtreecommitdiff
path: root/keyboards/handwired/prime_exl/config.h
diff options
context:
space:
mode:
authorholtenc <holtenc@gmail.com>2019-03-01 21:14:24 -0800
committerDrashna Jaelre <drashna@live.com>2019-03-01 21:14:24 -0800
commit6e48ea082dc27ac25bd0422e974cefe7a00788f6 (patch)
tree28305f2242fea948cd7f873b7980fa80c3e90b83 /keyboards/handwired/prime_exl/config.h
parent681db534f3e0e8efa3a9a03ae11b995e4a443ca9 (diff)
[Keyboard] Initial commit for Prime_E w/ VIA config support (#5285)
* Initial Prime_E commit * Via support for Prime_EXL * Backlight testing * update libs * Clean up and addition of VIA compatibility. * Update keyboards/handwired/prime_exl/keymaps/via/keymap.c Co-Authored-By: holtenc <holtenc@gmail.com> * Update keyboards/handwired/prime_exl/keymaps/via/keymap.c Co-Authored-By: holtenc <holtenc@gmail.com> * Update keyboards/handwired/prime_exl/keymaps/via/keymap.c Co-Authored-By: holtenc <holtenc@gmail.com> * Update keyboards/handwired/prime_exl/keymaps/via/keymap.c Co-Authored-By: holtenc <holtenc@gmail.com> * Update keyboards/primekb/prime_e/keymaps/default/keymap.c Co-Authored-By: holtenc <holtenc@gmail.com> * Update keyboards/primekb/prime_e/keymaps/default/keymap.c Co-Authored-By: holtenc <holtenc@gmail.com> * Update keyboards/primekb/prime_e/keymaps/default/keymap.c Co-Authored-By: holtenc <holtenc@gmail.com> * Update keyboards/handwired/prime_exl/keymaps/via/keymap.c Co-Authored-By: holtenc <holtenc@gmail.com> * Update keyboards/handwired/prime_exl/keymaps/via/keymap.c Co-Authored-By: holtenc <holtenc@gmail.com> * Update keyboards/handwired/prime_exl/keymaps/via/keymap.c Co-Authored-By: holtenc <holtenc@gmail.com> * Update keyboards/handwired/prime_exl/keymaps/via/keymap.c Co-Authored-By: holtenc <holtenc@gmail.com> * Update keyboards/handwired/prime_exl/keymaps/via/keymap.c Co-Authored-By: holtenc <holtenc@gmail.com> * Update keyboards/primekb/prime_e/keymaps/default/keymap.c Co-Authored-By: holtenc <holtenc@gmail.com> * removed IS_COMMAND from config.h. updated GPIO commands * clean up libs
Diffstat (limited to 'keyboards/handwired/prime_exl/config.h')
-rw-r--r--keyboards/handwired/prime_exl/config.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/keyboards/handwired/prime_exl/config.h b/keyboards/handwired/prime_exl/config.h
index 948d6312be..3201a8247a 100644
--- a/keyboards/handwired/prime_exl/config.h
+++ b/keyboards/handwired/prime_exl/config.h
@@ -20,8 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "config_common.h"
/* USB Device descriptor parameter */
-#define VENDOR_ID 0xFEED
-#define PRODUCT_ID 0x4024
+#define VENDOR_ID 0x5052
+#define PRODUCT_ID 0x6578
#define DEVICE_VER 0x0001
#define MANUFACTURER PrimeKB
#define PRODUCT Prime_EXL
@@ -49,3 +49,23 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
+
+#define DYNAMIC_KEYMAP_LAYER_COUNT 4
+
+// EEPROM usage
+
+// TODO: refactor with new user EEPROM code (coming soon)
+#define EEPROM_MAGIC 0x451F
+#define EEPROM_MAGIC_ADDR 32
+// Bump this every time we change what we store
+// This will automatically reset the EEPROM with defaults
+// and avoid loading invalid data from the EEPROM
+#define EEPROM_VERSION 0x08
+#define EEPROM_VERSION_ADDR 34
+
+// Dynamic keymap starts after EEPROM version
+#define DYNAMIC_KEYMAP_EEPROM_ADDR 35
+// Dynamic macro starts after dynamic keymaps (35+(4*10*9*2)) = (35+720)
+#define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 755
+#define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 269 // 1024-DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR
+#define DYNAMIC_KEYMAP_MACRO_COUNT 16 \ No newline at end of file