[rtems commit] ARMv7-M Systick API change

Sebastian Huber sebh at rtems.org
Sat Feb 11 20:09:17 UTC 2012


Module:    rtems
Branch:    master
Commit:    d6f947ebc353319063e02fbd7e916bd3221ca1c1
Changeset: http://git.rtems.org/rtems/commit/?id=d6f947ebc353319063e02fbd7e916bd3221ca1c1

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Feb  7 22:09:45 2012 +0100

ARMv7-M Systick API change

---

 c/src/lib/libbsp/arm/lm3s69xx/clock/clock-config.c |    2 +-
 cpukit/score/cpu/arm/rtems/score/armv7m.h          |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/arm/lm3s69xx/clock/clock-config.c b/c/src/lib/libbsp/arm/lm3s69xx/clock/clock-config.c
index a1aeb62..909fcee 100644
--- a/c/src/lib/libbsp/arm/lm3s69xx/clock/clock-config.c
+++ b/c/src/lib/libbsp/arm/lm3s69xx/clock/clock-config.c
@@ -48,7 +48,7 @@ static void _ARMV7M_Systick_handler_install(void)
 static void _ARMV7M_Systick_initialize(void)
 {
   volatile ARMV7M_Systick *systick = _ARMV7M_Systick;
-  uint64_t frequency = ARMV7M_SYSTICK_CALIB_TENMS(systick->calib) * 100ULL;
+  uint64_t frequency = ARMV7M_SYSTICK_CALIB_TENMS_GET(systick->calib) * 100ULL;
   uint64_t us_per_tick = rtems_configuration_get_microseconds_per_tick();
   uint64_t interval = (frequency * us_per_tick) / 1000000ULL;
 
diff --git a/cpukit/score/cpu/arm/rtems/score/armv7m.h b/cpukit/score/cpu/arm/rtems/score/armv7m.h
index 1005b23..2e11924 100644
--- a/cpukit/score/cpu/arm/rtems/score/armv7m.h
+++ b/cpukit/score/cpu/arm/rtems/score/armv7m.h
@@ -84,7 +84,7 @@ typedef struct {
 
 #define ARMV7M_SYSTICK_CALIB_NOREF (1U << 31)
 #define ARMV7M_SYSTICK_CALIB_SKEW (1U << 30)
-#define ARMV7M_SYSTICK_CALIB_TENMS(reg) ((reg) & 0xffffffU)
+#define ARMV7M_SYSTICK_CALIB_TENMS_GET(reg) ((reg) & 0xffffffU)
   uint32_t calib;
 } ARMV7M_Systick;
 




More information about the vc mailing list