mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
2011-07-21 Jorge Lopez <jorge.lopez.trescastro@esa.int>
PR 1766/bsps * clock/ckinit.c: Add missing read of Timer_Counter_1.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2011-07-21 Jorge Lopez <jorge.lopez.trescastro@esa.int>
|
||||
|
||||
PR 1766/bsps
|
||||
* clock/ckinit.c: Add missing read of Timer_Counter_1.
|
||||
|
||||
2011-04-25 Jennifer Averett <jennifer.averett@OARcorp.com>
|
||||
|
||||
PR 1783/bsps
|
||||
|
||||
@@ -64,6 +64,8 @@ uint32_t bsp_clock_nanoseconds_since_last_tick(void)
|
||||
{
|
||||
uint32_t clicks;
|
||||
uint32_t usecs;
|
||||
clicks = LEON_REG.Timer_Counter_1;
|
||||
|
||||
|
||||
if ( LEON_Is_interrupt_pending( LEON_INTERRUPT_TIMER1 ) ) {
|
||||
clicks = LEON_REG.Timer_Counter_1;
|
||||
|
||||
Reference in New Issue
Block a user