summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/onekey/bluepill_f103c6
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/bluepill_f103c6
parentdef966cd663494f07a16b95ace8d9fd982bc4746 (diff)
onekey: enable ADC for Bluepill and Blackpill (#18545)
Diffstat (limited to 'keyboards/handwired/onekey/bluepill_f103c6')
-rw-r--r--keyboards/handwired/onekey/bluepill_f103c6/halconf.h2
-rw-r--r--keyboards/handwired/onekey/bluepill_f103c6/mcuconf.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/keyboards/handwired/onekey/bluepill_f103c6/halconf.h b/keyboards/handwired/onekey/bluepill_f103c6/halconf.h
index 923b4e52d2..dbc3e82a79 100644
--- a/keyboards/handwired/onekey/bluepill_f103c6/halconf.h
+++ b/keyboards/handwired/onekey/bluepill_f103c6/halconf.h
@@ -21,6 +21,8 @@
#pragma once
+#define HAL_USE_ADC TRUE
+
#define HAL_USE_PWM TRUE
#include_next <halconf.h>
diff --git a/keyboards/handwired/onekey/bluepill_f103c6/mcuconf.h b/keyboards/handwired/onekey/bluepill_f103c6/mcuconf.h
index 5e94a97e21..39834c135b 100644
--- a/keyboards/handwired/onekey/bluepill_f103c6/mcuconf.h
+++ b/keyboards/handwired/onekey/bluepill_f103c6/mcuconf.h
@@ -23,6 +23,9 @@
#include_next <mcuconf.h>
+#undef STM32_ADC_USE_ADC1
+#define STM32_ADC_USE_ADC1 TRUE
+
#undef STM32_PWM_USE_TIM2
#define STM32_PWM_USE_TIM2 TRUE