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.
ls
1 parent 54d7d7e commit 13dff4ae3d34bdcd24ffbb143041f9682d61b92f
@Przemyslaw Stekiel Przemyslaw Stekiel authored on 2 Aug 2019
Showing 1 changed file
View
hal/us_ticker_api.h