aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/ports/ARMCAx-TZ
diff options
context:
space:
mode:
authorgdisirio <gdisirio@110e8d01-0319-4d1e-a829-52ad28d1bb01>2018-12-16 08:35:02 +0000
committergdisirio <gdisirio@110e8d01-0319-4d1e-a829-52ad28d1bb01>2018-12-16 08:35:02 +0000
commit0ea08f4a96ca331276fa6162d6eb4335d9805ae4 (patch)
tree1c3ca88e8d507929c8dfc74af48916bcc33f7986 /os/common/ports/ARMCAx-TZ
parentec272fe9bab0c2e679833e84c942e81618ccaf76 (diff)
downloadChibiOS-0ea08f4a96ca331276fa6162d6eb4335d9805ae4.tar.gz
ChibiOS-0ea08f4a96ca331276fa6162d6eb4335d9805ae4.tar.bz2
ChibiOS-0ea08f4a96ca331276fa6162d6eb4335d9805ae4.zip
Added extern "C" declarations to IRQ macros.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12475 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/common/ports/ARMCAx-TZ')
-rw-r--r--os/common/ports/ARMCAx-TZ/chcore.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/os/common/ports/ARMCAx-TZ/chcore.h b/os/common/ports/ARMCAx-TZ/chcore.h
index d31f0f736..67f6395f9 100644
--- a/os/common/ports/ARMCAx-TZ/chcore.h
+++ b/os/common/ports/ARMCAx-TZ/chcore.h
@@ -297,8 +297,11 @@ struct port_context {
* @note @p id can be a function name or a vector number depending on the
* port implementation.
*/
-#define PORT_IRQ_HANDLER(id) \
- bool id(void)
+#ifdef __cplusplus
+#define PORT_IRQ_HANDLER(id) extern "C" bool id(void)
+#else
+#define PORT_IRQ_HANDLER(id) bool id(void)
+#endif
/**
* @brief Fast IRQ handler function declaration.