summaryrefslogtreecommitdiff
path: root/keyboards/binepad/bn009/r2
diff options
context:
space:
mode:
authorVino Rodrigues <366673+vinorodrigues@users.noreply.github.com>2023-03-21 16:13:44 +1100
committerGitHub <noreply@github.com>2023-03-20 22:13:44 -0700
commitbb53e9d5394fb59469b9e23ce4ed26dfdc4c6248 (patch)
tree68927450df46e377eeb1a39098691e0ee584f17a /keyboards/binepad/bn009/r2
parentdff7b3688f642dd75afd36b720946efda1386f91 (diff)
[Keyboard] Consolidate Binepad BN009 R1 and R2 (#20113)
Diffstat (limited to 'keyboards/binepad/bn009/r2')
-rw-r--r--keyboards/binepad/bn009/r2/config.h12
-rw-r--r--keyboards/binepad/bn009/r2/info.json13
-rw-r--r--keyboards/binepad/bn009/r2/readme.md3
-rw-r--r--keyboards/binepad/bn009/r2/rules.mk1
4 files changed, 29 insertions, 0 deletions
diff --git a/keyboards/binepad/bn009/r2/config.h b/keyboards/binepad/bn009/r2/config.h
new file mode 100644
index 0000000000..45b63ec105
--- /dev/null
+++ b/keyboards/binepad/bn009/r2/config.h
@@ -0,0 +1,12 @@
+// Copyright 2023 Binepad (@binepad)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+
+/*
+ * Wear Leveling EEPROM Emulation
+ */
+
+#define WEAR_LEVELING_LOGICAL_SIZE 2048 // Number of bytes "exposed" to the rest of QMK and denotes the size of the usable EEPROM.
+#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2) // Number of bytes used by the wear-leveling algorithm for its underlying storage, and needs to be a multiple of the logical size.
diff --git a/keyboards/binepad/bn009/r2/info.json b/keyboards/binepad/bn009/r2/info.json
new file mode 100644
index 0000000000..c011fe0e32
--- /dev/null
+++ b/keyboards/binepad/bn009/r2/info.json
@@ -0,0 +1,13 @@
+{
+ "keyboard_name": "BN009 R2",
+ "bootloader": "stm32duino",
+ "diode_direction": "COL2ROW",
+ "matrix_pins": {
+ "cols": ["A1", "A2", "A6"],
+ "rows": ["B6", "B7", "B2"]
+ },
+ "processor": "STM32F103",
+ "usb": {
+ "device_version": "2.0.0"
+ }
+}
diff --git a/keyboards/binepad/bn009/r2/readme.md b/keyboards/binepad/bn009/r2/readme.md
new file mode 100644
index 0000000000..eee6d1608c
--- /dev/null
+++ b/keyboards/binepad/bn009/r2/readme.md
@@ -0,0 +1,3 @@
+# BINEPAD BN009 R2
+
+* Hardware Supported: BN009 *(ft. STM32F103)*
diff --git a/keyboards/binepad/bn009/r2/rules.mk b/keyboards/binepad/bn009/r2/rules.mk
new file mode 100644
index 0000000000..837f4bffb5
--- /dev/null
+++ b/keyboards/binepad/bn009/r2/rules.mk
@@ -0,0 +1 @@
+# This file is intentionally left blank