Changeset df8341a in rtems


Ignore:
Timestamp:
Jun 23, 2015, 12:20:11 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
a3fc33f
Parents:
cdf30f05
git-author:
Sebastian Huber <sebastian.huber@…> (06/23/15 12:20:11)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/24/15 06:46:32)
Message:

bsp/gen5200: Simplify interrupt write support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/gen5200/console/console.c

    rcdf30f05 rdf8341a  
    328328    channel_info[minor].tx_interrupts++;
    329329
    330     /*
    331      * mask interrupt
    332      */
    333     psc->isr_imr = channel_info[minor].shadow_imr &= ~(IMR_TX_RDY);
    334 
    335330    if (ttyp[minor] != NULL) {
    336331      #ifndef SINGLE_CHAR_MODE
     
    582577)
    583578{
     579  struct mpc5200_psc *psc =
     580    (struct mpc5200_psc *)(&mpc5200.psc[psc_minor_to_regset[minor]]);
     581
    584582  if (len > 0) {
    585583    int frame_len = len;
    586584    const char *frame_buf = buf;
    587     struct mpc5200_psc *psc =
    588       (struct mpc5200_psc *)(&mpc5200.psc[psc_minor_to_regset[minor]]);
    589585
    590586   /*
     
    610606    */
    611607    psc->isr_imr = channel_info[minor].shadow_imr |= IMR_TX_RDY;
     608  } else {
     609    /*
     610     * mask interrupt
     611     */
     612    psc->isr_imr = channel_info[minor].shadow_imr &= ~(IMR_TX_RDY);
    612613  }
    613614
Note: See TracChangeset for help on using the changeset viewer.