diff options
author | gdisirio <gdisirio@110e8d01-0319-4d1e-a829-52ad28d1bb01> | 2018-12-16 08:35:02 +0000 |
---|---|---|
committer | gdisirio <gdisirio@110e8d01-0319-4d1e-a829-52ad28d1bb01> | 2018-12-16 08:35:02 +0000 |
commit | 0ea08f4a96ca331276fa6162d6eb4335d9805ae4 (patch) | |
tree | 1c3ca88e8d507929c8dfc74af48916bcc33f7986 /os/common/ports/e200 | |
parent | ec272fe9bab0c2e679833e84c942e81618ccaf76 (diff) | |
download | ChibiOS-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.h | 8 |
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.
|