kernel: add architecture interface headers
include/sys/arch_inlines.h will contain all architecture APIs that are used by public inline functions and macros, with implementations deriving from include/arch/cpu.h. kernel/include/arch_interface.h will contain everything else, with implementations deriving from arch/*/include/kernel_arch_func.h. Instances of duplicate documentation for these APIs have been removed; implementation details have been left in place. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
33e6384e48
commit
8ffff144ea
37 changed files with 925 additions and 960 deletions
|
@ -50,6 +50,10 @@ extern "C" {
|
|||
#define IRQ_CONNECT(irq_p, priority_p, isr_p, isr_param_p, flags_p) \
|
||||
Z_ARCH_IRQ_CONNECT(irq_p, priority_p, isr_p, isr_param_p, flags_p)
|
||||
|
||||
extern int z_arch_irq_connect_dynamic(unsigned int irq, unsigned int priority,
|
||||
void (*routine)(void *parameter), void *parameter,
|
||||
u32_t flags);
|
||||
|
||||
/**
|
||||
* Configure a dynamic interrupt.
|
||||
*
|
||||
|
@ -63,10 +67,6 @@ extern "C" {
|
|||
*
|
||||
* @return The vector assigned to this interrupt
|
||||
*/
|
||||
extern int z_arch_irq_connect_dynamic(unsigned int irq, unsigned int priority,
|
||||
void (*routine)(void *parameter), void *parameter,
|
||||
u32_t flags);
|
||||
|
||||
static inline int
|
||||
irq_connect_dynamic(unsigned int irq, unsigned int priority,
|
||||
void (*routine)(void *parameter), void *parameter,
|
||||
|
@ -187,6 +187,7 @@ irq_connect_dynamic(unsigned int irq, unsigned int priority,
|
|||
|
||||
/**
|
||||
* @brief Lock interrupts.
|
||||
* @def irq_lock()
|
||||
*
|
||||
* This routine disables all interrupts on the CPU. It returns an unsigned
|
||||
* integer "lock-out key", which is an architecture-dependent indicator of
|
||||
|
@ -214,7 +215,8 @@ irq_connect_dynamic(unsigned int irq, unsigned int priority,
|
|||
* The lock-out key should never be used to manually re-enable interrupts
|
||||
* or to inspect or manipulate the contents of the CPU's interrupt bits.
|
||||
*
|
||||
* @return Lock-out key.
|
||||
* @return An architecture-dependent lock-out key representing the
|
||||
* "interrupt disable state" prior to the call.
|
||||
*/
|
||||
#ifdef CONFIG_SMP
|
||||
unsigned int z_smp_global_lock(void);
|
||||
|
@ -225,6 +227,7 @@ unsigned int z_smp_global_lock(void);
|
|||
|
||||
/**
|
||||
* @brief Unlock interrupts.
|
||||
* @def irq_unlock()
|
||||
*
|
||||
* This routine reverses the effect of a previous call to irq_lock() using
|
||||
* the associated lock-out key. The caller must call the routine once for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue