zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.52k stars 6.45k forks source link

timer_tmr_cmsdk_apb.c and timer_stmr_cmsdk_apb.c are missing counting up flag. #76785

Closed CZKikin closed 2 weeks ago

CZKikin commented 1 month ago

Describe the bug Counter is counting up, but the counter_is_counting_up returns false, because of the missing flag.

Expected behavior counter_is_counting_up should return true.

Impact Every test that is running with --integration and tests this behavior will fail.

Environment (please complete the following information):

Counters are counting up, but do not have the COUNTER_CONFIG_INFO_COUNT_UP flag set. OS: Linux, ms2_an835 on QEMU Commit: eb35143, it's still on main

CZKikin commented 1 month ago

I've created a PR that fixes this: #76786