From ccc570f0c1bc36248e28d6a580001da7be6cbc6a Mon Sep 17 00:00:00 2001 From: Guillaume Gautier Date: Wed, 29 May 2024 11:30:24 +0200 Subject: [PATCH] boards: st: nucleo f1,f3: add adc prescaler values Add ADC prescaler values in the RCC nodes to check that compilation with these properties works. The values set in the dts are the default values of the registers. Signed-off-by: Guillaume Gautier --- boards/st/nucleo_f103rb/nucleo_f103rb.dts | 1 + boards/st/nucleo_f303k8/nucleo_f303k8.dts | 1 + boards/st/nucleo_f303re/nucleo_f303re.dts | 2 ++ 3 files changed, 4 insertions(+) diff --git a/boards/st/nucleo_f103rb/nucleo_f103rb.dts b/boards/st/nucleo_f103rb/nucleo_f103rb.dts index 1f225b41312..53b9089e554 100644 --- a/boards/st/nucleo_f103rb/nucleo_f103rb.dts +++ b/boards/st/nucleo_f103rb/nucleo_f103rb.dts @@ -69,6 +69,7 @@ ahb-prescaler = <1>; apb1-prescaler = <2>; apb2-prescaler = <1>; + adc-prescaler = <2>; }; &usart1 { diff --git a/boards/st/nucleo_f303k8/nucleo_f303k8.dts b/boards/st/nucleo_f303k8/nucleo_f303k8.dts index 1090ae23ab2..efdf58a848f 100644 --- a/boards/st/nucleo_f303k8/nucleo_f303k8.dts +++ b/boards/st/nucleo_f303k8/nucleo_f303k8.dts @@ -63,6 +63,7 @@ ahb-prescaler = <1>; apb1-prescaler = <2>; apb2-prescaler = <1>; + adc12-prescaler = <0>; }; &timers2 { diff --git a/boards/st/nucleo_f303re/nucleo_f303re.dts b/boards/st/nucleo_f303re/nucleo_f303re.dts index af1bea6d92a..efa840c140a 100644 --- a/boards/st/nucleo_f303re/nucleo_f303re.dts +++ b/boards/st/nucleo_f303re/nucleo_f303re.dts @@ -69,6 +69,8 @@ ahb-prescaler = <1>; apb1-prescaler = <2>; apb2-prescaler = <1>; + adc12-prescaler = <0>; + adc34-prescaler = <0>; }; &usart2 {