diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/include/sys.h | 6 | ||||
-rw-r--r-- | src/templates/chcore.h | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/include/sys.h b/src/include/sys.h index 29f049f47..0e08452d9 100644 --- a/src/include/sys.h +++ b/src/include/sys.h @@ -156,9 +156,11 @@ #define CH_IRQ_EPILOGUE() PORT_IRQ_EPILOGUE()
/**
- * Standard modifier for IRQ handler functions. + * Standard IRQ handler declaration. + * @note @p id can be a function name or a vector number depending on the
+ * port implementation.
*/
-#define CH_IRQ_HANDLER PORT_IRQ_HANDLER
+#define CH_IRQ_HANDLER(id) PORT_IRQ_HANDLER(id)
#ifdef __cplusplus
extern "C" {
diff --git a/src/templates/chcore.h b/src/templates/chcore.h index 7c3fe4f0d..97f3f05e7 100644 --- a/src/templates/chcore.h +++ b/src/templates/chcore.h @@ -122,9 +122,11 @@ struct context { #define PORT_IRQ_EPILOGUE()
/**
- * IRQ handler function modifier. + * IRQ handler function declaration.
+ * @note @p id can be a function name or a vector number depending on the
+ * port implementation. */
-#define PORT_IRQ_HANDLER
+#define PORT_IRQ_HANDLER(id) void id(void)
#ifdef __cplusplus
extern "C" {
|