aboutsummaryrefslogtreecommitdiff
path: root/keyboards/xiaomi
diff options
context:
space:
mode:
authorJoel Challis <[email protected]>2024-04-12 04:36:31 +0100
committerGitHub <[email protected]>2024-04-12 04:36:31 +0100
commit45b710f9e16733ab73af5f2ed1b0b13233db49e9 (patch)
tree28ebf0f60fa4a703fee358612197c3d87429945d /keyboards/xiaomi
parent8caa8674d225c1c26403f8c311be6ffbdd9081e1 (diff)
downloadqmk_firmware-45b710f9e16733ab73af5f2ed1b0b13233db49e9.tar.gz
qmk_firmware-45b710f9e16733ab73af5f2ed1b0b13233db49e9.zip
Migrate build target markers to keyboard.json - X (#23460)
Diffstat (limited to 'keyboards/xiaomi')
-rw-r--r--keyboards/xiaomi/mk02/config.h16
-rw-r--r--keyboards/xiaomi/mk02/keyboard.json (renamed from keyboards/xiaomi/mk02/info.json)2
-rw-r--r--keyboards/xiaomi/mk02/rules.mk15
3 files changed, 3 insertions, 30 deletions
diff --git a/keyboards/xiaomi/mk02/config.h b/keyboards/xiaomi/mk02/config.h
index 093618f2b3..fc20837593 100644
--- a/keyboards/xiaomi/mk02/config.h
+++ b/keyboards/xiaomi/mk02/config.h
@@ -18,19 +18,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP FALSE
-
-/*
- * Feature disable options
- * These options are also useful to firmware size reduction.
- */
-
-/* disable debug print */
-//#define NO_DEBUG
-
-/* disable print */
-//#define NO_PRINT
-
-/* disable action features */
-//#define NO_ACTION_LAYER
-//#define NO_ACTION_TAPPING
-//#define NO_ACTION_ONESHOT
diff --git a/keyboards/xiaomi/mk02/info.json b/keyboards/xiaomi/mk02/keyboard.json
index 16cbfd1703..28d5d8a17d 100644
--- a/keyboards/xiaomi/mk02/info.json
+++ b/keyboards/xiaomi/mk02/keyboard.json
@@ -8,6 +8,8 @@
"pid": "0x0B91",
"device_version": "0.0.1"
},
+ "processor": "STM32F072",
+ "bootloader": "custom",
"matrix_pins": {
"cols": ["B13", "B14", "B15", "A15", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "C14", "C15", "B11", "A1", "A2", "B12"],
"rows": ["A3", "A4", "A5", "A6", "A7", "B0"]
diff --git a/keyboards/xiaomi/mk02/rules.mk b/keyboards/xiaomi/mk02/rules.mk
index c20d67dd89..5920e3de5f 100644
--- a/keyboards/xiaomi/mk02/rules.mk
+++ b/keyboards/xiaomi/mk02/rules.mk
@@ -1,19 +1,6 @@
-# MCU name
-MCU = STM32F072
+# custom bootloader
BOARD = ST_STM32F072B_DISCOVERY
MCU_LDSCRIPT = STM32F072_0x2000_bootloader
-# Bootloader selection
-BOOTLOADER = custom
-
DFU_ARGS = -d 0483:df11 -a 0 -s 0x08002000:leave
DFU_SUFFIX_ARGS = -v 0483 -p DF11
-
-BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = no # Mouse keys
-EXTRAKEY_ENABLE = no # Audio control and System control
-CONSOLE_ENABLE = no # Console for debug
-COMMAND_ENABLE = no # Commands for debug and configuration
-NKRO_ENABLE = no # Enable N-Key Rollover
-# BACKLIGHT_ENABLE = yes # This is broken on 072 for some reason
-RGBLIGHT_ENABLE = no