kernel: add flexibility to k_cycle_get_32() definition
Some arches may want to define this as an inline function, or define in core arch code instead of timer driver code. Unfortunately, this means we need to remove from the footprint tests, but this is not typically a large function. Issue: ZEP-1546 Change-Id: Ic0d7a33507da855995838f4703d872cd613a2ca2 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
09648cf8ec
commit
e08d07c97d
18 changed files with 28 additions and 12 deletions
|
@ -557,7 +557,7 @@ int _sys_clock_driver_init(struct device *device)
|
|||
* systick counter is a 24-bit down counter which is reset to "reload" value
|
||||
* once it reaches 0.
|
||||
*/
|
||||
uint32_t k_cycle_get_32(void)
|
||||
uint32_t _timer_cycle_get_32(void)
|
||||
{
|
||||
return clock_accumulated_count + (SysTick->LOAD - SysTick->VAL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue