samples/drivers/watchdog: stm32: Configure bus using device tree

Move bus configuration to device tree.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2021-05-05 12:11:48 +02:00 committed by Kumar Gala
commit 37d2227412
4 changed files with 8 additions and 2 deletions

View file

@ -1 +0,0 @@
CONFIG_CLOCK_STM32_APB1_PRESCALER=16

View file

@ -1,3 +1,7 @@
&rcc {
apb1-prescaler = <16>;
};
&wwdg {
status = "okay";
};

View file

@ -1 +0,0 @@
CONFIG_CLOCK_STM32_APB1_PRESCALER=4

View file

@ -4,6 +4,10 @@
* SPDX-License-Identifier: Apache-2.0
*/
&rcc {
apb1-prescaler = <4>;
};
&wwdg {
status = "okay";
};