2007-12-10 Till Straumann <strauman@slac.stanford.edu>

* shared/openpic/openpic.c: fixed wrong register
	address in openpic_gettimer().
This commit is contained in:
Till Straumann
2007-12-11 06:37:19 +00:00
parent b8982b581b
commit ccd92869b8
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* shared/openpic/openpic.c: fixed wrong register
address in openpic_gettimer().
2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* shared/motorola/vpd.c, shared/motorola/vpd.h:

View File

@@ -511,7 +511,7 @@ void openpic_settimer(unsigned int timer, unsigned int base_count, int irq_enabl
unsigned int openpic_gettimer(unsigned int timer)
{
check_arg_timer(timer);
return (openpic_read(&OpenPIC->Global.Timer[timer]) & ~OPENPIC_MASK);
return (openpic_read(&OpenPIC->Global.Timer[timer].Current_Count) & ~OPENPIC_MASK);
}
/* -------- Interrupt Sources ---------------------------------------------- */