Changeset fec25de in rtems


Ignore:
Timestamp:
Jan 4, 2005, 11:29:24 PM (16 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
3d5f97f
Parents:
a4d3eb0d
Message:

2005-01-04 Joel Sherrill <joel@…>

  • console/config.c: Remove warnings.
Location:
c/src/lib/libbsp/powerpc/ppcn_60x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/ppcn_60x/ChangeLog

    ra4d3eb0d rfec25de  
     12005-01-04      Joel Sherrill <joel@OARcorp.com>
     2
     3        * console/config.c: Remove warnings.
     4
    152005-01-02      Ralf Corsepius <ralf.corsepius@rtems.org>
    26
  • c/src/lib/libbsp/powerpc/ppcn_60x/console/config.c

    ra4d3eb0d rfec25de  
    282282        uint8_t   ucBusNumber, ucSlotNumber, ucChannel;
    283283        uint8_t   ucIntLine;
    284         uint32_t   ulPortBase, ulMemBase, ulDeviceID;
     284        uint32_t   ulPortBase, ulMemBase, ulDeviceID, ulTemp;
    285285        uint8_t   *pucSIO_cir, *pucUart_int_sr, *pucUartDevIntReg;
    286286        PSP_WRITE_REGISTERS     pNS16550Write;
     
    437437         * 1382400 baud (RS422 only).
    438438         */
     439
     440        ulTemp = (uint32_t)Console_Port_Tbl[minor].pDeviceParams
    439441#if 1
    440442        /*
    441443         * Scale requested baud rate for 16 MHz clock
    442444         */
    443         (uint32_t)Console_Port_Tbl[minor].pDeviceParams*=7373;
    444         (uint32_t)Console_Port_Tbl[minor].pDeviceParams/=16000;
     445        ulTemp *= 7373;
     446        ulTemp /= 16000;
    445447#else
    446448        /*
    447449         * Scale requested baud rate for 22.1184 MHz clock
    448450         */
    449         (uint32_t)Console_Port_Tbl[minor].pDeviceParams/=3;
     451        ulTemp /= 3;
    450452#endif
     453
    451454        /*
    452455         * In order to maintain maximum data rate accuracy, we will
    453456         * apply a div 4 here rather than in hardware (using MCR bit 7).
    454457         */
    455         (uint32_t)Console_Port_Tbl[minor].pDeviceParams/=4;
     458        ultemp /= 4;
     459
     460        Console_Port_Tbl[minor].pDeviceParams = (void *)ulTemp;
    456461
    457462        return(TRUE);
Note: See TracChangeset for help on using the changeset viewer.