sys_clock: move [nano|task]_cycle_get_32 to drivers
The drivers provide _sys_clock_cycle_get(): moving the public APIs to the drivers allow them to be aliases of it. Change-Id: Ic5975a048f2b51f94510f0c3cd5e6ab3a8907718 Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
parent
1611816a7d
commit
bb2ba33f10
6 changed files with 12 additions and 10 deletions
|
@ -204,6 +204,9 @@ uint32_t _sys_clock_cycle_get(void)
|
|||
return (clock_accumulated_count + count_get());
|
||||
}
|
||||
|
||||
FUNC_ALIAS(_sys_clock_cycle_get, nano_cycle_get_32, uint32_t);
|
||||
FUNC_ALIAS(_sys_clock_cycle_get, task_cycle_get_32, uint32_t);
|
||||
|
||||
#if defined(CONFIG_SYSTEM_TIMER_DISABLE)
|
||||
/**
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue