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:
Joel Sherrill
2009-08-04 11:59:20 +00:00
parent 88a8702db7
commit 389afd914e
2 changed files with 7 additions and 2 deletions

View File

@@ -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>
* Makefile.am: Removed references to deleted file

View File

@@ -40,7 +40,7 @@ static void clock_isr_on(const rtems_irq_connect_data *unused)
/* enable timer interrupt */
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;
}
@@ -90,7 +90,7 @@ rtems_irq_connect_data clock_isr_data = {
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;
}