forked from Imagelibrary/rtems
2009-08-04 Xi Yang <hiyangxi@gmail.com>
* pxa255/clock/clock.c: Move parentheses to improve math. More tests run.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2009-08-04 Xi Yang <hiyangxi@gmail.com>
|
||||||
|
|
||||||
|
* pxa255/clock/clock.c: Move parentheses to improve math. More tests
|
||||||
|
run.
|
||||||
|
|
||||||
2009-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
2009-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||||
|
|
||||||
* Makefile.am: Removed references to deleted file
|
* Makefile.am: Removed references to deleted file
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ static void clock_isr_on(const rtems_irq_connect_data *unused)
|
|||||||
/* enable timer interrupt */
|
/* enable timer interrupt */
|
||||||
XSCALE_OS_TIMER_IER |= 0x1;
|
XSCALE_OS_TIMER_IER |= 0x1;
|
||||||
|
|
||||||
period_num = TIMER_RATE*(Configuration.microseconds_per_tick/10000);
|
period_num = (TIMER_RATE* Configuration.microseconds_per_tick)/10000;
|
||||||
|
|
||||||
XSCALE_OS_TIMER_MR0 = XSCALE_OS_TIMER_TCR + period_num;
|
XSCALE_OS_TIMER_MR0 = XSCALE_OS_TIMER_TCR + period_num;
|
||||||
}
|
}
|
||||||
@@ -90,7 +90,7 @@ rtems_irq_connect_data clock_isr_data = {
|
|||||||
|
|
||||||
void Clock_driver_support_initialize_hardware(void)
|
void Clock_driver_support_initialize_hardware(void)
|
||||||
{
|
{
|
||||||
period_num = TIMER_RATE*(Configuration.microseconds_per_tick/10000);
|
period_num = (TIMER_RATE* Configuration.microseconds_per_tick)/10000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user