Changeset 256e083f in rtems


Ignore:
Timestamp:
Apr 10, 2017, 5:07:04 PM (3 years ago)
Author:
Martin Aberg <maberg@…>
Branches:
master
Children:
8927c0f
Parents:
6234abe
git-author:
Martin Aberg <maberg@…> (04/10/17 17:07:04)
git-committer:
Daniel Hellstrom <daniel@…> (05/02/17 10:34:49)
Message:

leon, gptimer: fixed probing separate interrupts

Probing of separate interrupts was done by storing the GPTIMER_CFG_SI bit. But
it was never actually stored since it is bit 8 and the datatype is 8-bit. Now
store the AND result as boolean value instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/timer/gptimer.c

    r6234abe r256e083f  
    294294         *        BASE_IRQ + timer_index
    295295         */
    296         priv->separate_interrupt = regs->cfg & GPTIMER_CFG_SI;
     296        priv->separate_interrupt = (regs->cfg & GPTIMER_CFG_SI) != 0;
    297297
    298298        return DRVMGR_OK;
Note: See TracChangeset for help on using the changeset viewer.