[rtems commit] bsp/mpc55xx: New define MPC55XX_PERIPHERAL_CLOCK

Sebastian Huber sebh at rtems.org
Mon Apr 8 14:37:39 UTC 2013


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Apr  5 16:05:30 2013 +0200

bsp/mpc55xx: New define MPC55XX_PERIPHERAL_CLOCK

---

 c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h b/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h
index fd44fd1..70dbea7 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h
@@ -31,6 +31,9 @@
 
 #define BSP_FEATURE_IRQ_EXTENSION
 
+#define MPC55XX_PERIPHERAL_CLOCK \
+  (MPC55XX_SYSTEM_CLOCK / MPC55XX_SYSTEM_CLOCK_DIVIDER)
+
 #ifndef ASM
 
 #include <rtems.h>




More information about the vc mailing list