aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-01-19 15:10:41 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-01-19 15:10:41 +0000
commit79089d6352e01e1e7c6c3f0a88266abbc9af6abb (patch)
tree0ad16ec06bc8f671018a82fb2360f0eefac1ca24 /src
parent0810f1daac3c33d194d573d82ec436021e3e7255 (diff)
downloadChibiOS-79089d6352e01e1e7c6c3f0a88266abbc9af6abb.tar.gz
ChibiOS-79089d6352e01e1e7c6c3f0a88266abbc9af6abb.tar.bz2
ChibiOS-79089d6352e01e1e7c6c3f0a88266abbc9af6abb.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@644 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src')
-rw-r--r--src/include/sys.h6
-rw-r--r--src/templates/chcore.h6
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" {