aboutsummaryrefslogtreecommitdiffstats
path: root/ports/ARM7
diff options
context:
space:
mode:
Diffstat (limited to 'ports/ARM7')
-rw-r--r--ports/ARM7/chcore.h4
-rw-r--r--ports/ARM7/port.dox2
2 files changed, 3 insertions, 3 deletions
diff --git a/ports/ARM7/chcore.h b/ports/ARM7/chcore.h
index 20255d652..1e99f7e16 100644
--- a/ports/ARM7/chcore.h
+++ b/ports/ARM7/chcore.h
@@ -184,9 +184,9 @@ struct context {
#endif /* !THUMB */
/**
- * IRQ handler function modifier.
+ * IRQ handler function declaration.
*/
-#define PORT_IRQ_HANDLER __attribute__((naked))
+#define PORT_IRQ_HANDLER(id) __attribute__((naked)) void id(void)
/**
* This function is empty in this port.
diff --git a/ports/ARM7/port.dox b/ports/ARM7/port.dox
index 9a9f319a6..fce2f9cd7 100644
--- a/ports/ARM7/port.dox
+++ b/ports/ARM7/port.dox
@@ -85,7 +85,7 @@
* registers.<br>
* Example:
* @code
- * CH_IRQ_HANDLER void irq_handler(void) {
+ * CH_IRQ_HANDLER(irq_handler) {
* CH_IRQ_PROLOGUE();
*
* serve_interrupt();