timer: Rename _sys_clock_cycle_get()
Renames _sys_clock_cycle_get() (provided by the timer driver) to sys_cycle_get_32(). It is the preferred method to read the hardware clock. Change-Id: Ifea5213d8c04a8bf7b9114b048c5db0ccee61549 Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
parent
8fc88dc21f
commit
92b21c7153
13 changed files with 50 additions and 38 deletions
|
@ -174,13 +174,13 @@ int _sys_clock_driver_init(struct device *device)
|
|||
*
|
||||
* @return up counter of elapsed clock cycles
|
||||
*/
|
||||
uint32_t _sys_clock_cycle_get(void)
|
||||
uint32_t sys_cycle_get_32(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);
|
||||
FUNC_ALIAS(sys_cycle_get_32, nano_cycle_get_32, uint32_t);
|
||||
FUNC_ALIAS(sys_cycle_get_32, task_cycle_get_32, uint32_t);
|
||||
|
||||
#if defined(CONFIG_SYSTEM_CLOCK_DISABLE)
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue