diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-19 15:49:28 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-19 15:49:28 +0000 |
commit | 2fbe159e9ace91a32649683c97f729c4d40c5b7d (patch) | |
tree | 36a246c26ac972581661494e9f5b31bf4e160244 /c/src/lib/libbsp/m68k/mcf5235/startup/bspgetcpuclockspeed.c | |
parent | 2008-09-18 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-2fbe159e9ace91a32649683c97f729c4d40c5b7d.tar.bz2 |
2008-09-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, startup/bspstart.c: Split out bspstart contents. Move
cache code to libcpu.
* startup/bspgetcpuclockspeed.c: New file.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/m68k/mcf5235/startup/bspgetcpuclockspeed.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/m68k/mcf5235/startup/bspgetcpuclockspeed.c b/c/src/lib/libbsp/m68k/mcf5235/startup/bspgetcpuclockspeed.c new file mode 100644 index 0000000000..347d6b019d --- /dev/null +++ b/c/src/lib/libbsp/m68k/mcf5235/startup/bspgetcpuclockspeed.c @@ -0,0 +1,20 @@ +/* + * COPYRIGHT (c) 1989-2008. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + */ + +#include <bsp.h> + +extern char _CPUClockSpeed[]; + +uint32_t get_CPU_clock_speed(void) +{ + return( (uint32_t)_CPUClockSpeed); +} |