[rtems commit] powerpc/shared/flash/intelFlash.c: Do not use rtems_clock_get()

Joel Sherril joel at rtems.org
Tue Mar 17 15:05:23 UTC 2015


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

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Sat Mar 14 10:59:52 2015 -0500

powerpc/shared/flash/intelFlash.c: Do not use rtems_clock_get()

---

 c/src/lib/libbsp/powerpc/shared/flash/intelFlash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/c/src/lib/libbsp/powerpc/shared/flash/intelFlash.c b/c/src/lib/libbsp/powerpc/shared/flash/intelFlash.c
index 10eb665..9e949e7 100644
--- a/c/src/lib/libbsp/powerpc/shared/flash/intelFlash.c
+++ b/c/src/lib/libbsp/powerpc/shared/flash/intelFlash.c
@@ -62,7 +62,7 @@
 
 #include <rtems.h>
 #define TIMEOUT_US       1000
-#define CLOCKRATE_GET(p) rtems_clock_get( RTEMS_CLOCK_GET_TICKS_PER_SECOND, p )
+#define CLOCKRATE_GET(p) p = rtems_clock_get_ticks_per_second()
 
 #endif
 



More information about the vc mailing list