Changeset 0a49929 in rtems


Ignore:
Timestamp:
Jan 18, 2018, 12:13:10 PM (21 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
a5b4db4b
Parents:
ac0e0208
git-author:
Sebastian Huber <sebastian.huber@…> (01/18/18 12:13:10)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/18/18 12:15:27)
Message:

bsp/leon3: Fix interrupt timestamp timecounter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/leon3/clock/ckinit.c

    rac0e0208 r0a49929  
    1414 *  Gaisler Research.
    1515 *
    16  *  Copyright (c) 2014, 2016 embedded brains GmbH
     16 *  Copyright (c) 2014, 2018 embedded brains GmbH
    1717 *
    1818 *  The license and distribution terms for this file may be
     
    230230    leon3_tc.tc.tc_quality = RTEMS_TIMECOUNTER_QUALITY_CLOCK_DRIVER;
    231231    leon3_tc_tick = leon3_tc_tick_irqmp_timestamp_init;
     232
     233    /*
     234     * At least one TSISEL field must be non-zero to enable the timestamp
     235     * counter.  Use an arbitrary interrupt source.
     236     */
     237    irqmp_ts->control = 0x1;
     238
    232239    rtems_timecounter_install(&leon3_tc.tc);
    233240  } else {
Note: See TracChangeset for help on using the changeset viewer.