From cea523fdb0cad1ec6422a9b4ea13ba08da0932a1 Mon Sep 17 00:00:00 2001 From: gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> Date: Sat, 27 Jul 2013 18:11:16 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6035 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/ports/GCC/ARMCMx/chcore_v7m.h | 5 +++++ os/ports/GCC/ARMCMx/chtypes.h | 1 + 2 files changed, 6 insertions(+) (limited to 'os/ports') diff --git a/os/ports/GCC/ARMCMx/chcore_v7m.h b/os/ports/GCC/ARMCMx/chcore_v7m.h index 9bf9dafb2..6cd461408 100644 --- a/os/ports/GCC/ARMCMx/chcore_v7m.h +++ b/os/ports/GCC/ARMCMx/chcore_v7m.h @@ -73,6 +73,11 @@ #endif /** @} */ +/** + * @brief This port supports a realtime counter. + */ +#define CH_PORT_SUPPORTS_RT TRUE + /** * @brief Disabled value for BASEPRI register. */ diff --git a/os/ports/GCC/ARMCMx/chtypes.h b/os/ports/GCC/ARMCMx/chtypes.h index 689b8c64d..65f8cafeb 100644 --- a/os/ports/GCC/ARMCMx/chtypes.h +++ b/os/ports/GCC/ARMCMx/chtypes.h @@ -34,6 +34,7 @@ #include <stdbool.h> typedef bool bool_t; /**< Fast boolean type. */ +typedef uint32_t rtcnt_t; /**< Realtime counter. */ typedef uint32_t syssts_t; /**< System status word. */ typedef uint8_t tmode_t; /**< Thread flags. */ typedef uint8_t tstate_t; /**< Thread state. */ -- cgit v1.2.3