aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/templates
diff options
context:
space:
mode:
Diffstat (limited to 'os/kernel/templates')
-rw-r--r--os/kernel/templates/chcore.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/os/kernel/templates/chcore.h b/os/kernel/templates/chcore.h
index c91d45b27..bd5d824b6 100644
--- a/os/kernel/templates/chcore.h
+++ b/os/kernel/templates/chcore.h
@@ -146,6 +146,15 @@ struct context {
*/
#define PORT_IRQ_HANDLER(id) void id(void)
+/**
+ * @brief Fast IRQ handler function declaration.
+ * @note @p id can be a function name or a vector number depending on the
+ * port implementation.
+ * @note Not all architectures support fast interrupts, in this case this
+ * macro must be omitted.
+ */
+#define PORT_FAST_IRQ_HANDLER(id) void id(void)
+
#ifdef __cplusplus
extern "C" {
#endif