forked from Imagelibrary/rtems
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:
@@ -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>
|
2007-12-10 Till Straumann <strauman@slac.stanford.edu>
|
||||||
|
|
||||||
* shared/motorola/vpd.c, shared/motorola/vpd.h:
|
* shared/motorola/vpd.c, shared/motorola/vpd.h:
|
||||||
|
|||||||
@@ -511,7 +511,7 @@ void openpic_settimer(unsigned int timer, unsigned int base_count, int irq_enabl
|
|||||||
unsigned int openpic_gettimer(unsigned int timer)
|
unsigned int openpic_gettimer(unsigned int timer)
|
||||||
{
|
{
|
||||||
check_arg_timer(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 ---------------------------------------------- */
|
/* -------- Interrupt Sources ---------------------------------------------- */
|
||||||
|
|||||||
Reference in New Issue
Block a user