aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/ports/e200
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/e200
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/e200')
-rw-r--r--os/common/ports/e200/chcore.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/os/common/ports/e200/chcore.h b/os/common/ports/e200/chcore.h
index aabe70fee..dd6861fd2 100644
--- a/os/common/ports/e200/chcore.h
+++ b/os/common/ports/e200/chcore.h
@@ -403,14 +403,22 @@ struct port_context {
* @note @p id can be a function name or a vector number depending on the
* port implementation.
*/
+#ifdef __cplusplus
+#define PORT_IRQ_HANDLER(id) extern "C" void id(void)
+#else
#define PORT_IRQ_HANDLER(id) void id(void)
+#endif
/**
* @brief Fast IRQ handler function declaration.
* @note @p id can be a function name or a vector number depending on the
* port implementation.
*/
+#ifdef __cplusplus
+#define PORT_FAST_IRQ_HANDLER(id) extern "C" void id(void)
+#else
#define PORT_FAST_IRQ_HANDLER(id) void id(void)
+#endif
/**
* @brief Priority level verification macro.