Skip to content

Commit 13dff4a

Browse files
committed
Relax us ticker frequency requirement.
This change is required by the Samsung S111(S5JS100). On this board timer clock used for us ticker operates at 26MHz. According to current requirements, 8 MHz is the top limit for us ticker timer. This change relaxes top limit to 100 MHz, but only for 32-bit timers. Ticker common layer schedules one interrupt per timer rollover to trace elapsed time. We need to ensure that this operation is not performed too frequently. I.e. in case of 16-bit timer at 32 MHz, the timer rollover will happen after ~2 ms. This may cause that there will be no time for other tasks. That is why we increase the top limit, but only for 32-bit timers.
1 parent 54d7d7e commit 13dff4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hal/us_ticker_api.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ extern "C" {
3232
* Low level interface to the microsecond ticker of a target
3333
*
3434
* # Defined behavior
35-
* * Has a reported frequency between 250KHz and 8MHz - Verified by test ::us_ticker_info_test
35+
* * Has a reported frequency between 250KHz and 8MHz for counters which are less than 32 bits wide - Verified by test ::us_ticker_info_test
36+
* * Has a reported frequency up to 100MHz for counters which are 32 bits wide - Verified by test ::us_ticker_info_test
3637
* * Has a counter that is at least 16 bits wide - Verified by test ::us_ticker_info_test
3738
* * All behavior defined by the @ref hal_ticker_shared "ticker specification"
3839
*

0 commit comments

Comments
 (0)