From 6fd6d0670e8e639eb1909ccdb8e1d509db02d6f7 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 17 Jul 2014 10:03:21 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7039 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/ports/e200/chcore.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'os/rt') 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 /** @} */ /** @@ -105,6 +110,16 @@ #define PORT_INT_REQUIRED_STACK 256 #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_ */ /** @} */ -- cgit v1.2.3