aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/ports
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-07-17 10:03:21 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-07-17 10:03:21 +0000
commit6fd6d0670e8e639eb1909ccdb8e1d509db02d6f7 (patch)
treeb97e05eca5439bb88d7816178a13c908fd9fb148 /os/rt/ports
parent1272fdce1e9e8d55e5fddf3ae79019ca7836c770 (diff)
downloadChibiOS-6fd6d0670e8e639eb1909ccdb8e1d509db02d6f7.tar.gz
ChibiOS-6fd6d0670e8e639eb1909ccdb8e1d509db02d6f7.tar.bz2
ChibiOS-6fd6d0670e8e639eb1909ccdb8e1d509db02d6f7.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7039 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/ports')
-rw-r--r--os/rt/ports/e200/chcore.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/os/rt/ports/e200/chcore.h b/os/rt/ports/e200/chcore.h
index 6251005bb..70c936928 100644
--- a/os/rt/ports/e200/chcore.h
+++ b/os/rt/ports/e200/chcore.h
@@ -61,6 +61,11 @@
#else
#error "unsupported compiler"
#endif
+
+/**
+ * @brief This port supports a realtime counter.
+ */
+#define PORT_SUPPORTS_RT FALSE
/** @} */
/**
@@ -106,6 +111,16 @@
#endif
/**
+ * @brief Enables an alternative timer implementation.
+ * @details Usually the port uses a timer interface defined in the file
+ * @p nilcore_timer.h, if this option is enabled then the file
+ * @p nilcore_timer_alt.h is included instead.
+ */
+#if !defined(PORT_USE_ALT_TIMER)
+#define PORT_USE_ALT_TIMER FALSE
+#endif
+
+/**
* @brief Use VLE instruction set.
* @note This parameter is usually set in the Makefile.
*/
@@ -545,6 +560,22 @@ static inline rtcnt_t port_rt_get_counter_value(void) {
#endif /* !defined(_FROM_ASM_) */
+/*===========================================================================*/
+/* Module late inclusions. */
+/*===========================================================================*/
+
+#if !defined(_FROM_ASM_)
+
+#if CH_CFG_ST_TIMEDELTA > 0
+#if !PORT_USE_ALT_TIMER
+#include "chcore_timer.h"
+#else /* PORT_USE_ALT_TIMER */
+#include "chcore_timer_alt.h"
+#endif /* PORT_USE_ALT_TIMER */
+#endif /* CH_CFG_ST_TIMEDELTA > 0 */
+
+#endif /* !defined(_FROM_ASM_) */
+
#endif /* _CHCORE_H_ */
/** @} */