kernel: add arch abstraction for irq_offload()
This makes it clearer that this is an API that is expected to be implemented at the architecture level. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
0f5d2d323f
commit
89d4c6928e
11 changed files with 16 additions and 11 deletions
|
@ -17,6 +17,8 @@ extern "C" {
|
|||
|
||||
typedef void (*irq_offload_routine_t)(void *parameter);
|
||||
|
||||
void z_arch_irq_offload(irq_offload_routine_t routine, void *parameter);
|
||||
|
||||
/**
|
||||
* @brief Run a function in interrupt context
|
||||
*
|
||||
|
@ -29,7 +31,10 @@ typedef void (*irq_offload_routine_t)(void *parameter);
|
|||
* @param parameter Argument to pass to the function when it is run as an
|
||||
* interrupt
|
||||
*/
|
||||
void irq_offload(irq_offload_routine_t routine, void *parameter);
|
||||
static inline void irq_offload(irq_offload_routine_t routine, void *parameter)
|
||||
{
|
||||
z_arch_irq_offload(routine, parameter);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue