summaryrefslogtreecommitdiff
path: root/keyboards/handwired/onekey/blackpill_f401/mcuconf.h
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-10-01 02:14:41 +1000
committerGitHub <noreply@github.com>2022-09-30 17:14:41 +0100
commite0115caab92167b23ff9dd9d1f68cd03c830bfec (patch)
tree8b3011c1dbfb73bd6081f2ad6eb17d9cd88171af /keyboards/handwired/onekey/blackpill_f401/mcuconf.h
parentdef966cd663494f07a16b95ace8d9fd982bc4746 (diff)
onekey: enable ADC for Bluepill and Blackpill (#18545)
Diffstat (limited to 'keyboards/handwired/onekey/blackpill_f401/mcuconf.h')
-rw-r--r--keyboards/handwired/onekey/blackpill_f401/mcuconf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/keyboards/handwired/onekey/blackpill_f401/mcuconf.h b/keyboards/handwired/onekey/blackpill_f401/mcuconf.h
index e614a9dfa9..1aa0fe4ce7 100644
--- a/keyboards/handwired/onekey/blackpill_f401/mcuconf.h
+++ b/keyboards/handwired/onekey/blackpill_f401/mcuconf.h
@@ -18,6 +18,9 @@
#include_next "mcuconf.h"
+#undef STM32_ADC_USE_ADC1
+#define STM32_ADC_USE_ADC1 TRUE
+
#undef STM32_I2C_USE_I2C1
#define STM32_I2C_USE_I2C1 TRUE