Files
ArduinoCore-mbed/patches/0085-Use-ADC-clock-synchronous-with-AHB.patch
Martino Facchin b20c4e0bcf Update patchset
2023-03-01 09:19:18 +01:00

26 lines
1.1 KiB
Diff

From e997bd0ac4e58c0d2b4e857d72dd432790cd4f00 Mon Sep 17 00:00:00 2001
From: giulcioffi <g.cioffi@arduino.cc>
Date: Wed, 13 Oct 2021 10:48:44 +0200
Subject: [PATCH 085/204] Use ADC clock synchronous with AHB
---
targets/TARGET_STM/TARGET_STM32H7/analogin_device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/targets/TARGET_STM/TARGET_STM32H7/analogin_device.c b/targets/TARGET_STM/TARGET_STM32H7/analogin_device.c
index 8851773c13..bdf3277e1c 100644
--- a/targets/TARGET_STM/TARGET_STM32H7/analogin_device.c
+++ b/targets/TARGET_STM/TARGET_STM32H7/analogin_device.c
@@ -89,7 +89,7 @@ void analogin_init(analogin_t *obj, PinName pin)
// Configure ADC object structures
obj->handle.State = HAL_ADC_STATE_RESET;
- obj->handle.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV4;
+ obj->handle.Init.ClockPrescaler = ADC_CLOCK_SYNC_PCLK_DIV4;
obj->handle.Init.Resolution = ADC_RESOLUTION_16B;
obj->handle.Init.ScanConvMode = ADC_SCAN_DISABLE;
obj->handle.Init.EOCSelection = ADC_EOC_SINGLE_CONV;
--
2.39.1