clock: z_clock_isr -> sys_clock_isr
Do not use z_ for internal APIs, z_ is for private APIs within one subsystem only. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
38eca45b32
commit
771cc9705c
4 changed files with 8 additions and 8 deletions
|
@ -73,10 +73,10 @@ SECTION_SUBSEC_FUNC(exc_vector_table,_vector_table_section,_vector_table)
|
|||
.word z_arm_pendsv
|
||||
#if defined(CONFIG_CPU_CORTEX_M_HAS_SYSTICK)
|
||||
#if defined(CONFIG_SYS_CLOCK_EXISTS)
|
||||
/* Install z_clock_isr even if CORTEX_M_SYSTICK is not set
|
||||
/* Install sys_clock_isr even if CORTEX_M_SYSTICK is not set
|
||||
* (e.g. to support out-of-tree SysTick-based timer drivers).
|
||||
*/
|
||||
.word z_clock_isr
|
||||
.word sys_clock_isr
|
||||
#else
|
||||
.word z_arm_exc_spurious
|
||||
#endif /* CONFIG_SYS_CLOCK_EXISTS */
|
||||
|
|
|
@ -35,7 +35,7 @@ static uint32_t last_load;
|
|||
|
||||
/*
|
||||
* This local variable holds the amount of SysTick HW cycles elapsed
|
||||
* and it is updated in z_clock_isr() and sys_clock_set_timeout().
|
||||
* and it is updated in sys_clock_isr() and sys_clock_set_timeout().
|
||||
*
|
||||
* Note:
|
||||
* At an arbitrary point in time the "current" value of the SysTick
|
||||
|
@ -113,7 +113,7 @@ static uint32_t elapsed(void)
|
|||
}
|
||||
|
||||
/* Callout out of platform assembly, not hooked via IRQ_CONNECT... */
|
||||
void z_clock_isr(void *arg)
|
||||
void sys_clock_isr(void *arg)
|
||||
{
|
||||
ARG_UNUSED(arg);
|
||||
uint32_t dticks;
|
||||
|
|
|
@ -16,9 +16,9 @@
|
|||
#include <init.h>
|
||||
#include <drivers/timer/system_timer.h>
|
||||
|
||||
/* Weak-linked noop defaults for optional driver interfaces: */
|
||||
/* Weak-linked noop defaults for optional driver interfaces*/
|
||||
|
||||
void __weak z_clock_isr(void *arg)
|
||||
void __weak sys_clock_isr(void *arg)
|
||||
{
|
||||
__ASSERT_NO_MSG(false);
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@ extern void z_arm_secure_fault(void);
|
|||
extern void z_arm_svc(void);
|
||||
extern void z_arm_debug_monitor(void);
|
||||
extern void z_arm_pendsv(void);
|
||||
extern void z_clock_isr(void);
|
||||
extern void sys_clock_isr(void);
|
||||
extern void z_arm_exc_spurious(void);
|
||||
|
||||
__imx_boot_ivt_section void (* const image_vector_table[])(void) = {
|
||||
|
@ -87,7 +87,7 @@ __imx_boot_ivt_section void (* const image_vector_table[])(void) = {
|
|||
(void (*)())image_vector_table, /* 0x34, imageLoadAddress. */
|
||||
z_arm_pendsv, /* 0x38 */
|
||||
#if defined(CONFIG_SYS_CLOCK_EXISTS)
|
||||
z_clock_isr, /* 0x3C */
|
||||
sys_clock_isr, /* 0x3C */
|
||||
#else
|
||||
z_arm_exc_spurious,
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue