-
Notifications
You must be signed in to change notification settings - Fork 8.2k
tests/drivers/counter/counter_basic_api for rtc and timer counters #56466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
erwango
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment on commit "tests: drivers: counter running on stm32 timer-counter instances"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is enabling support of counter API on the SoC, this should be moved to dts/st/.... to be fully portable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The compatible = "st,stm32-counter"; is moved to .dtsi file of each soc by commit df324cc583cc7c5dd470b19daead4d09b716fcd1
0d8a23e to
55e0985
Compare
f675079 to
5d80baa
Compare
|
Rebase on 81872eb |
bef4108 to
65e1d26
Compare
Adapt the stm32 counter-timer driver to the stm32_ll function prototype. Some stm32 families have LL_TIM_OC_GetCompareCHx(TIM_TypeDef some others have LL_TIM_OC_GetCompareCHx(const TIM_TypeDef. This will fix compilation warning. Adds the macro for stm32L0 16bit timers. Signed-off-by: Francois Ramu <[email protected]>
The stm32f4 and stm32f7 serie has to compile the stm32_ll_rcc layer to get the LL_RCC_GetSystemClocksFreq function. Signed-off-by: Francois Ramu <[email protected]>
Add the counter compatibility for each timer of the stm32 mcus. Signed-off-by: Francois Ramu <[email protected]>
Add the counter to the yaml of more stm32 target boards That will let the counter testing run on those platforms. Signed-off-by: Francois Ramu <[email protected]>
Defines the overlay to Use the stm32 counter-timer in addition to the rtc (if enabled) to pass the tests/drivers/counter/counter_basic_api/ Enable all the possible timer nodes on each board. Signed-off-by: Francois Ramu <[email protected]>
|
rebase on 63ed1d9 after updating the modules/hal/stm32 |
When testing the tests/drivers/counter/counter_basic_api on stm32 boards when RTC is enabled,
it is also possible to run the test on timer counter.
This is done when also enabling all the timer counter on stm32 boards in each board overlay file: