tests: drivers: pwm for stm32l073 and stm32f091 nucleo boards

The overlay are defined to run the tests/drivers pwm_api
on the nucleo_l073rz,nucleo_f091rc.
Note than pwm pb10 is for DTS definition purpose

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2022-03-04 13:06:01 +01:00 committed by Anas Nashif
commit 71f20d8b3e
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,16 @@
/*
* Copyright (c) 2021 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
&timers2 {
st,prescaler = <10000>;
status = "okay";
pwm2: pwm {
status = "okay";
pinctrl-0 = <&tim2_ch3_pb10>;
pinctrl-names = "default";
};
};

View file

@ -0,0 +1,16 @@
/*
* Copyright (c) 2021 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
&timers2 {
st,prescaler = <10000>;
status = "okay";
pwm2: pwm {
status = "okay";
pinctrl-0 = <&tim2_ch3_pb10>;
pinctrl-names = "default";
};
};