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
This commit is contained in:
parent
ec272fe9ba
commit
0ea08f4a96
|
@ -332,7 +332,11 @@ struct port_context {
|
||||||
* @note @p id can be a function name or a vector number depending on the
|
* @note @p id can be a function name or a vector number depending on the
|
||||||
* port implementation.
|
* port implementation.
|
||||||
*/
|
*/
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#define PORT_IRQ_HANDLER(id) extern "C" bool id(void)
|
||||||
|
#else
|
||||||
#define PORT_IRQ_HANDLER(id) bool id(void)
|
#define PORT_IRQ_HANDLER(id) bool id(void)
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Fast IRQ handler function declaration.
|
* @brief Fast IRQ handler function declaration.
|
||||||
|
|
|
@ -297,8 +297,11 @@ struct port_context {
|
||||||
* @note @p id can be a function name or a vector number depending on the
|
* @note @p id can be a function name or a vector number depending on the
|
||||||
* port implementation.
|
* port implementation.
|
||||||
*/
|
*/
|
||||||
#define PORT_IRQ_HANDLER(id) \
|
#ifdef __cplusplus
|
||||||
bool id(void)
|
#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.
|
* @brief Fast IRQ handler function declaration.
|
||||||
|
|
|
@ -269,14 +269,22 @@ struct port_intctx {
|
||||||
* @note @p id can be a function name or a vector number depending on the
|
* @note @p id can be a function name or a vector number depending on the
|
||||||
* port implementation.
|
* port implementation.
|
||||||
*/
|
*/
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#define PORT_IRQ_HANDLER(id) extern "C" void id(void)
|
||||||
|
#else
|
||||||
#define PORT_IRQ_HANDLER(id) void id(void)
|
#define PORT_IRQ_HANDLER(id) void id(void)
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Fast IRQ handler function declaration.
|
* @brief Fast IRQ handler function declaration.
|
||||||
* @note @p id can be a function name or a vector number depending on the
|
* @note @p id can be a function name or a vector number depending on the
|
||||||
* port implementation.
|
* 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)
|
#define PORT_FAST_IRQ_HANDLER(id) void id(void)
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Performs a context switch between two threads.
|
* @brief Performs a context switch between two threads.
|
||||||
|
|
|
@ -435,14 +435,22 @@ struct port_intctx {
|
||||||
* @note @p id can be a function name or a vector number depending on the
|
* @note @p id can be a function name or a vector number depending on the
|
||||||
* port implementation.
|
* port implementation.
|
||||||
*/
|
*/
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#define PORT_IRQ_HANDLER(id) extern "C" void id(void)
|
||||||
|
#else
|
||||||
#define PORT_IRQ_HANDLER(id) void id(void)
|
#define PORT_IRQ_HANDLER(id) void id(void)
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Fast IRQ handler function declaration.
|
* @brief Fast IRQ handler function declaration.
|
||||||
* @note @p id can be a function name or a vector number depending on the
|
* @note @p id can be a function name or a vector number depending on the
|
||||||
* port implementation.
|
* 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)
|
#define PORT_FAST_IRQ_HANDLER(id) void id(void)
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Performs a context switch between two threads.
|
* @brief Performs a context switch between two threads.
|
||||||
|
|
|
@ -266,14 +266,22 @@ struct port_context {
|
||||||
* @note @p id can be a function name or a vector number depending on the
|
* @note @p id can be a function name or a vector number depending on the
|
||||||
* port implementation.
|
* port implementation.
|
||||||
*/
|
*/
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#define PORT_IRQ_HANDLER(id) extern "C" void id(void)
|
||||||
|
#else
|
||||||
#define PORT_IRQ_HANDLER(id) void id(void)
|
#define PORT_IRQ_HANDLER(id) void id(void)
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Fast IRQ handler function declaration.
|
* @brief Fast IRQ handler function declaration.
|
||||||
* @note @p id can be a function name or a vector number depending on the
|
* @note @p id can be a function name or a vector number depending on the
|
||||||
* port implementation.
|
* 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)
|
#define PORT_FAST_IRQ_HANDLER(id) void id(void)
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* External declarations. */
|
/* External declarations. */
|
||||||
|
|
|
@ -403,14 +403,22 @@ struct port_context {
|
||||||
* @note @p id can be a function name or a vector number depending on the
|
* @note @p id can be a function name or a vector number depending on the
|
||||||
* port implementation.
|
* port implementation.
|
||||||
*/
|
*/
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#define PORT_IRQ_HANDLER(id) extern "C" void id(void)
|
||||||
|
#else
|
||||||
#define PORT_IRQ_HANDLER(id) void id(void)
|
#define PORT_IRQ_HANDLER(id) void id(void)
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Fast IRQ handler function declaration.
|
* @brief Fast IRQ handler function declaration.
|
||||||
* @note @p id can be a function name or a vector number depending on the
|
* @note @p id can be a function name or a vector number depending on the
|
||||||
* port implementation.
|
* 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)
|
#define PORT_FAST_IRQ_HANDLER(id) void id(void)
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Priority level verification macro.
|
* @brief Priority level verification macro.
|
||||||
|
|
|
@ -248,14 +248,22 @@ struct port_context {
|
||||||
* @note @p id can be a function name or a vector number depending on the
|
* @note @p id can be a function name or a vector number depending on the
|
||||||
* port implementation.
|
* port implementation.
|
||||||
*/
|
*/
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#define PORT_IRQ_HANDLER(id) extern "C" void id(void)
|
||||||
|
#else
|
||||||
#define PORT_IRQ_HANDLER(id) void id(void)
|
#define PORT_IRQ_HANDLER(id) void id(void)
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Fast IRQ handler function declaration.
|
* @brief Fast IRQ handler function declaration.
|
||||||
* @note @p id can be a function name or a vector number depending on the
|
* @note @p id can be a function name or a vector number depending on the
|
||||||
* port implementation.
|
* 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)
|
#define PORT_FAST_IRQ_HANDLER(id) void id(void)
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Performs a context switch between two threads.
|
* @brief Performs a context switch between two threads.
|
||||||
|
|
Loading…
Reference in New Issue