From 79089d6352e01e1e7c6c3f0a88266abbc9af6abb Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 19 Jan 2009 15:10:41 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@644 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/include/sys.h | 6 ++++-- src/templates/chcore.h | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'src') 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" { -- cgit v1.2.3