clock: remove z_ from semi-public APIs
The clock/timer APIs are not application facing APIs, however, similar to arch_ and a few other APIs they are available to implement drivers and add support for new hardware and are documented and available to be used outside of the clock/kernel subsystems. Remove the leading z_ and provide them as clock_* APIs for someone writing a new timer driver to use. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
f943a5581d
commit
9c1efe6b4b
33 changed files with 171 additions and 168 deletions
|
@ -50,10 +50,10 @@ static void lptmr_irq_handler(const struct device *unused)
|
|||
|
||||
SYSTEM_TIMER_INSTANCE->CSR |= LPTMR_CSR_TCF(1); /* Rearm timer. */
|
||||
cycle_count += CYCLES_PER_TICK; /* Track cycles. */
|
||||
z_clock_announce(1); /* Poke the scheduler. */
|
||||
sys_clock_announce(1); /* Poke the scheduler. */
|
||||
}
|
||||
|
||||
int z_clock_driver_init(const struct device *unused)
|
||||
int sys_clock_driver_init(const struct device *unused)
|
||||
{
|
||||
uint32_t csr, psr, sircdiv; /* LPTMR registers */
|
||||
|
||||
|
@ -139,7 +139,7 @@ uint32_t z_timer_cycle_get_32(void)
|
|||
/*
|
||||
* Since we're not tickless, this is identically zero.
|
||||
*/
|
||||
uint32_t z_clock_elapsed(void)
|
||||
uint32_t sys_clock_elapsed(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue