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:
Anas Nashif 2021-02-25 15:33:15 -05:00
commit 9c1efe6b4b
33 changed files with 171 additions and 168 deletions

View file

@ -34,7 +34,7 @@ static void litex_timer_irq_handler(const void *device)
int key = irq_lock();
sys_write8(TIMER_EV, TIMER_EV_PENDING_ADDR);
z_clock_announce(1);
sys_clock_announce(1);
irq_unlock(key);
}
@ -54,12 +54,12 @@ uint32_t z_timer_cycle_get_32(void)
}
/* tickless kernel is not supported */
uint32_t z_clock_elapsed(void)
uint32_t sys_clock_elapsed(void)
{
return 0;
}
int z_clock_driver_init(const struct device *device)
int sys_clock_driver_init(const struct device *device)
{
ARG_UNUSED(device);
IRQ_CONNECT(TIMER_IRQ, DT_INST_IRQ(0, priority),