get desired clock rate for proper source

This commit is contained in:
Thomas Doerfler
2010-03-27 08:09:33 +00:00
parent f21f9cb4d7
commit 91df983e95
2 changed files with 8 additions and 2 deletions

View File

@@ -1,10 +1,13 @@
2010-03-26 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
* clock/clock.c: get desired clock rate for proper source
2010-02-24 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
* network/network.c: combine all checks for missing MAC address
* startup/bspstart.c: enable FPU, if POSIX init task present
* startup/init548x.c: explicitly disable all edge port interrupts
2009-12-16 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
* console/console.c: adapted to new prototype for *_write

View File

@@ -95,7 +95,10 @@
rtems_interrupt_disable( level ); \
MCF548X_INTC_IMRH &= ~(MCF548X_INTC_IMRH_INT_MASK54); \
rtems_interrupt_enable( level ); \
MCF548X_SLT_SLTCNT0 = get_CPU_clock_speed()/100; \
MCF548X_SLT_SLTCNT0 = get_CPU_clock_speed() \
/ 1000 \
* rtems_configuration_get_microseconds_per_tick() \
/ 1000; \
MCF548X_SLT_SCR0 |= (MCF548X_SLT_SCR_TEN | MCF548X_SLT_SCR_RUN | MCF548X_SLT_SCR_IEN); \
} while (0)