diff options
Diffstat (limited to 'c/src/lib/libbsp/m68k/mcf5235/startup/bspgetcpuclockspeed.c')
-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); +} |