clock: rename z_timer_cycle_get_32 -> sys_clock_cycle_get_32

This is another API that is being used in all timer drivers and is not
internal to the clock subsystem. Remove the leading z_ and make promote
it to a cross-subsystem API.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2021-03-12 12:46:52 -05:00
commit 12b53d121e
34 changed files with 49 additions and 49 deletions

View file

@ -59,7 +59,7 @@ static void lptim_irq_handler(const struct device *unused)
LL_LPTIM_ClearFLAG_ARRM(LPTIM1);
/* increase the total nb of autoreload count
* used in the z_timer_cycle_get_32() function.
* used in the sys_clock_cycle_get_32() function.
* Reading the CNT register gives a reliable value
*/
uint32_t autoreload = LL_LPTIM_GetAutoReload(LPTIM1) + 1;
@ -296,7 +296,7 @@ uint32_t sys_clock_elapsed(void)
return (uint32_t)(ret);
}
uint32_t z_timer_cycle_get_32(void)
uint32_t sys_clock_cycle_get_32(void)
{
/* just gives the accumulated count in a number of hw cycles */