forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: drivers: watchdog stm32 wwdg decrease apb clock
The most of the wwdg peripherals requires a reduced apb clock to pass the sample.drivers.watchdog.stm32_wwdg testcase. This apb1 prescaler is added to the overlay file for that particular clock. Specific overlay for the stm32h7 family because of the APB1 bus clock named d2ppre1. Signed-off-by: Francois Ramu <[email protected]>
- Loading branch information
1 parent
21c4bbe
commit 838cd28
Showing
4 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,10 @@ | |
}; | ||
}; | ||
|
||
&rcc { | ||
apb1-prescaler = <16>; | ||
}; | ||
|
||
&wwdg { | ||
status = "okay"; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* | ||
* Copyright (c) 2021 Thomas Stranger | ||
* Copyright (c) 2022 STMicroelectronics | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&rcc { | ||
apb1-prescaler = <8>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright (c) 2021 Thomas Stranger | ||
* Copyright (c) 2022 STMicroelectronics | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
aliases { | ||
watchdog0 = &wwdg; | ||
}; | ||
}; | ||
|
||
&rcc { | ||
d2ppre1 = <16>; | ||
}; | ||
|
||
&wwdg { | ||
status = "okay"; | ||
}; | ||
|
||
&iwdg { | ||
status = "disabled"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters