aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/templates/chcore.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt/templates/chcore.h')
-rw-r--r--os/rt/templates/chcore.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/os/rt/templates/chcore.h b/os/rt/templates/chcore.h
index bdb5dd0b6..71a6eaf2f 100644
--- a/os/rt/templates/chcore.h
+++ b/os/rt/templates/chcore.h
@@ -233,6 +233,10 @@ struct context {
/* External declarations. */
/*===========================================================================*/
+/* The following code is not processed when the file is included from an
+ asm module.*/
+#if !defined(_FROM_ASM_)
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -242,10 +246,16 @@ extern "C" {
}
#endif
+#endif /* !defined(_FROM_ASM_) */
+
/*===========================================================================*/
/* Module inline functions. */
/*===========================================================================*/
+/* The following code is not processed when the file is included from an
+ asm module.*/
+#if !defined(_FROM_ASM_)
+
/**
* @brief Returns a word encoding the current interrupts status.
*
@@ -374,6 +384,8 @@ static inline rtcnt_t port_rt_get_counter_value(void) {
/* Module late inclusions. */
/*===========================================================================*/
+/* The following code is not processed when the file is included from an
+ asm module.*/
#if !defined(_FROM_ASM_)
#if CH_CFG_ST_TIMEDELTA > 0