| * Copyright (c) 2015 Intel corporation |
| * SPDX-License-Identifier: Apache-2.0 |
| * @brief IRQ Offload interface |
| #ifndef ZEPHYR_INCLUDE_IRQ_OFFLOAD_H_ |
| #define ZEPHYR_INCLUDE_IRQ_OFFLOAD_H_ |
| typedef void (*irq_offload_routine_t)(void *parameter); |
| * @brief Run a function in interrupt context |
| * This function synchronously runs the provided function in interrupt |
| * context, passing in the supplied parameter. Useful for test code |
| * which needs to show that kernel objects work correctly in interrupt |
| * @param routine The function to run |
| * @param parameter Argument to pass to the function when it is run as an |
| void irq_offload(irq_offload_routine_t routine, void *parameter); |