aboutsummaryrefslogtreecommitdiff
path: root/platforms/chibios/chibios_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'platforms/chibios/chibios_config.h')
-rw-r--r--platforms/chibios/chibios_config.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/platforms/chibios/chibios_config.h b/platforms/chibios/chibios_config.h
index ad2f808a9..4e3573660 100644
--- a/platforms/chibios/chibios_config.h
+++ b/platforms/chibios/chibios_config.h
@@ -51,6 +51,18 @@
51# endif 51# endif
52#endif 52#endif
53 53
54// WB32 compatibility
55#if defined(MCU_WB32)
56# define CPU_CLOCK WB32_MAINCLK
57
58# if defined(WB32F3G71xx)
59# define PAL_OUTPUT_TYPE_OPENDRAIN PAL_WB32_OTYPE_OPENDRAIN
60# define PAL_OUTPUT_TYPE_PUSHPULL PAL_WB32_OTYPE_PUSHPULL
61# define PAL_OUTPUT_SPEED_HIGHEST PAL_WB32_OSPEED_HIGH
62# define PAL_PUPDR_FLOATING PAL_WB32_PUPDR_FLOATING
63# endif
64#endif
65
54#if defined(GD32VF103) 66#if defined(GD32VF103)
55/* This chip has the same API as STM32F103, but uses different names for literally the same thing. 67/* This chip has the same API as STM32F103, but uses different names for literally the same thing.
56 * As of 4.7.2021 QMK is tailored to use STM32 defines/names, for compatibility sake 68 * As of 4.7.2021 QMK is tailored to use STM32 defines/names, for compatibility sake