summaryrefslogtreecommitdiffstats
path: root/platforms
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-10-05 11:36:20 +1100
committerGitHub <noreply@github.com>2022-10-05 11:36:20 +1100
commit4d6fab1cfa4c16831cbd9727efddec654ca0460e (patch)
treec3a8f62b70cb6c4c0ea334522b6eb8722727e1fe /platforms
parent64b1ed45507a15d5594b1f90b936c2096918f5a4 (diff)
onekey: Enable ADC for STM32F072 Discovery (#18592)
Diffstat (limited to 'platforms')
-rw-r--r--platforms/chibios/boards/GENERIC_STM32_F072XB/configs/mcuconf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/platforms/chibios/boards/GENERIC_STM32_F072XB/configs/mcuconf.h b/platforms/chibios/boards/GENERIC_STM32_F072XB/configs/mcuconf.h
index 32b2777a81..9d26849dff 100644
--- a/platforms/chibios/boards/GENERIC_STM32_F072XB/configs/mcuconf.h
+++ b/platforms/chibios/boards/GENERIC_STM32_F072XB/configs/mcuconf.h
@@ -80,6 +80,7 @@
#define STM32_ADC_ADC1_DMA_PRIORITY 2
#define STM32_ADC_IRQ_PRIORITY 2
#define STM32_ADC_ADC1_DMA_IRQ_PRIORITY 2
+#define STM32_ADC_ADC1_DMA_STREAM STM32_DMA_STREAM_ID(1, 1)
/*
* GPT driver system settings.