From b4ece24c7dfa741ddef70a92166cd21930df55fd Mon Sep 17 00:00:00 2001
From: Less/Rikki <86894501+lesshonor@users.noreply.github.com>
Date: Sun, 22 Dec 2024 16:03:03 -0500
Subject: move ymdk/id75 to revision (#24590)
---
keyboards/ymdk/id75/f103/board.h | 22 ++++++++++++++++++++++
keyboards/ymdk/id75/f103/config.h | 23 +++++++++++++++++++++++
keyboards/ymdk/id75/f103/halconf.h | 21 +++++++++++++++++++++
keyboards/ymdk/id75/f103/keyboard.json | 13 +++++++++++++
keyboards/ymdk/id75/f103/mcuconf.h | 25 +++++++++++++++++++++++++
keyboards/ymdk/id75/f103/rules.mk | 5 +++++
6 files changed, 109 insertions(+)
create mode 100644 keyboards/ymdk/id75/f103/board.h
create mode 100644 keyboards/ymdk/id75/f103/config.h
create mode 100644 keyboards/ymdk/id75/f103/halconf.h
create mode 100644 keyboards/ymdk/id75/f103/keyboard.json
create mode 100644 keyboards/ymdk/id75/f103/mcuconf.h
create mode 100644 keyboards/ymdk/id75/f103/rules.mk
(limited to 'keyboards/ymdk/id75/f103')
diff --git a/keyboards/ymdk/id75/f103/board.h b/keyboards/ymdk/id75/f103/board.h
new file mode 100644
index 0000000000..49270b36a0
--- /dev/null
+++ b/keyboards/ymdk/id75/f103/board.h
@@ -0,0 +1,22 @@
+/* Copyright 2022 JasonRen(biu)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+#pragma once
+
+#include_next
+
+#undef STM32_HSECLK
+#define STM32_HSECLK 16000000
diff --git a/keyboards/ymdk/id75/f103/config.h b/keyboards/ymdk/id75/f103/config.h
new file mode 100644
index 0000000000..cb5ac78304
--- /dev/null
+++ b/keyboards/ymdk/id75/f103/config.h
@@ -0,0 +1,23 @@
+/* Copyright 2021 MT
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+#pragma once
+
+#define WS2812_PWM_DRIVER PWMD4
+#define WS2812_PWM_CHANNEL 4
+#define WS2812_PWM_PAL_MODE 2
+#define WS2812_PWM_DMA_STREAM STM32_DMA1_STREAM7
+#define WS2812_PWM_DMA_CHANNEL 7
diff --git a/keyboards/ymdk/id75/f103/halconf.h b/keyboards/ymdk/id75/f103/halconf.h
new file mode 100644
index 0000000000..612ce4fc4a
--- /dev/null
+++ b/keyboards/ymdk/id75/f103/halconf.h
@@ -0,0 +1,21 @@
+/* Copyright 2020 QMK
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+#pragma once
+
+#define HAL_USE_PWM TRUE
+
+#include_next
diff --git a/keyboards/ymdk/id75/f103/keyboard.json b/keyboards/ymdk/id75/f103/keyboard.json
new file mode 100644
index 0000000000..5b1974b3f2
--- /dev/null
+++ b/keyboards/ymdk/id75/f103/keyboard.json
@@ -0,0 +1,13 @@
+{
+ "manufacturer": "YMDK",
+ "bootloader": "uf2boot",
+ "matrix_pins": {
+ "cols": ["A10", "A9", "A8", "B15", "B14", "B13", "B12", "A5", "A6", "A4", "A3", "A2", "A1", "A0", "A15"],
+ "rows": ["B2", "B1", "B0", "A7", "B10"]
+ },
+ "processor": "STM32F103",
+ "ws2812": {
+ "driver": "pwm",
+ "pin": "B9"
+ }
+}
diff --git a/keyboards/ymdk/id75/f103/mcuconf.h b/keyboards/ymdk/id75/f103/mcuconf.h
new file mode 100644
index 0000000000..0d3de3dad5
--- /dev/null
+++ b/keyboards/ymdk/id75/f103/mcuconf.h
@@ -0,0 +1,25 @@
+/* Copyright 2020 QMK
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+#pragma once
+
+#include_next
+
+#undef STM32_PWM_USE_TIM4
+#define STM32_PWM_USE_TIM4 TRUE
+
+#undef STM32_PLLXTPRE
+#define STM32_PLLXTPRE STM32_PLLXTPRE_DIV2
diff --git a/keyboards/ymdk/id75/f103/rules.mk b/keyboards/ymdk/id75/f103/rules.mk
new file mode 100644
index 0000000000..dbee20ab05
--- /dev/null
+++ b/keyboards/ymdk/id75/f103/rules.mk
@@ -0,0 +1,5 @@
+# Configure for 128K flash
+MCU_LDSCRIPT = STM32F103xB
+
+# Wildcard to allow APM32 MCU
+DFU_SUFFIX_ARGS = -p FFFF -v FFFF
--
cgit v1.2.3