summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/onekey/nucleo_f446re/mcuconf.h
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2023-01-19 12:05:29 +1100
committerGitHub <noreply@github.com>2023-01-19 01:05:29 +0000
commit327f7ee9a74f1740106d46e65e909208a1372ad3 (patch)
tree479d7f9c47454b72717cf10e0e4917979b214211 /keyboards/handwired/onekey/nucleo_f446re/mcuconf.h
parent17c9388af5432f8e6d97828f6772eaf8031a786b (diff)
Fixup ChibiOS header inclusion search ordering. (#19623)
* Add STM32F446-Nucleo onekey. * Fixup onekey build for F446, all keymaps. * Fixup board inclusion search ordering.
Diffstat (limited to 'keyboards/handwired/onekey/nucleo_f446re/mcuconf.h')
-rw-r--r--keyboards/handwired/onekey/nucleo_f446re/mcuconf.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/keyboards/handwired/onekey/nucleo_f446re/mcuconf.h b/keyboards/handwired/onekey/nucleo_f446re/mcuconf.h
new file mode 100644
index 0000000000..701d61d31d
--- /dev/null
+++ b/keyboards/handwired/onekey/nucleo_f446re/mcuconf.h
@@ -0,0 +1,23 @@
+// Copyright 2023 Nick Brassel (@tzarc)
+// SPDX-License-Identifier: GPL-2.0-or-later
+#pragma once
+
+#include_next <mcuconf.h>
+
+#undef STM32_PLLM_VALUE
+#define STM32_PLLM_VALUE 4
+
+#undef STM32_PLLSAIM_VALUE
+#define STM32_PLLSAIM_VALUE 4
+
+#undef STM32_ADC_USE_ADC1
+#define STM32_ADC_USE_ADC1 TRUE
+
+#undef STM32_PWM_USE_TIM4
+#define STM32_PWM_USE_TIM4 TRUE
+
+#undef STM32_I2C_USE_I2C1
+#define STM32_I2C_USE_I2C1 TRUE
+
+#undef STM32_SPI_USE_SPI1
+#define STM32_SPI_USE_SPI1 TRUE