aboutsummaryrefslogtreecommitdiff
path: root/keyboards/keychron/c1_pro_v2/mcuconf.h
diff options
context:
space:
mode:
authoradophoxia <100170946+adophoxia@users.noreply.github.com>2025-03-01 16:48:59 -0800
committerGitHub <noreply@github.com>2025-03-01 17:48:59 -0700
commitabea50c26e2bb26977146a1431e458a73bea7f39 (patch)
tree7811fc60ce6c40d528817e0482f644cacad4bf33 /keyboards/keychron/c1_pro_v2/mcuconf.h
parentacec6904d8097a1890df272e424c4d43ad8a6831 (diff)
Add Keychron C1 Pro V2 (#24899)
* Add C1 Pro V2 * Remove default values for f401xC generic board definition * Update clang and copyright years * Add version description
Diffstat (limited to 'keyboards/keychron/c1_pro_v2/mcuconf.h')
-rw-r--r--keyboards/keychron/c1_pro_v2/mcuconf.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/keyboards/keychron/c1_pro_v2/mcuconf.h b/keyboards/keychron/c1_pro_v2/mcuconf.h
new file mode 100644
index 0000000000..ca470fb5b3
--- /dev/null
+++ b/keyboards/keychron/c1_pro_v2/mcuconf.h
@@ -0,0 +1,28 @@
+/* Copyright 2025 @ Keychron (https://www.keychron.com)
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+#include_next <mcuconf.h>
+
+#undef STM32_HSECLK
+#define STM32_HSECLK 16000000U
+
+#undef STM32_PLLM_VALUE
+#define STM32_PLLM_VALUE 8
+
+#undef STM32_I2C_USE_I2C1
+#define STM32_I2C_USE_I2C1 TRUE