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:
Benjamin Walsh 2015-08-21 16:57:57 -04:00 committed by Anas Nashif
commit bb2ba33f10
6 changed files with 12 additions and 10 deletions

View file

@ -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)
/**
*