Changeset 401dbf8 in rtems


Ignore:
Timestamp:
Aug 20, 2008, 6:57:13 AM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
16fa78e
Parents:
752b8951
Message:

2008-08-20 Ralf Corsépius <ralf.corsepius@…>

  • GT64260/MVME5500I2C.c: Once again eliminate u32, unchar. Add CVS Id, fix typo.
Location:
c/src/lib/libbsp/powerpc/mvme5500
Files:
2 edited

Legend:

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

    r752b8951 r401dbf8  
     12008-08-20      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * GT64260/MVME5500I2C.c: Once again eliminate u32, unchar.
     4        Add CVS Id, fix typo.
     5
    162008-05-14      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • c/src/lib/libbsp/powerpc/mvme5500/GT64260/MVME5500I2C.c

    r752b8951 r401dbf8  
    88 * found in the file LICENSE in this distribution.
    99 *
    10  * To read inoformation of the EEPROM via the I2C
     10 * To read information of the EEPROM via the I2C
    1111 *
     12 * $Id$
    1213 */
    1314
    1415#include <rtems/bspIo.h>            /* printk */
     16#include <rtems/stdint.h>           /* uint32_t */
    1517#include "bsp/GT64260TWSI.h"
    1618
    1719/* #define I2C_DEBUG*/
    18 typedef unsigned int u32;
    19 typedef unsigned char unchar;
    2020
    21 unchar I2cAddrPack(unchar busAddr,u32 offset)
     21unsigned char I2cAddrPack(unsigned char busAddr,uint32_t offset)
    2222{
    2323  return(busAddr | ((offset & 0x700) >> 7));
    2424}
    25 unchar I2cDevByteAddr(u32 devA2A1A0, unchar byteNum)
     25unsigned char I2cDevByteAddr(uint32_t devA2A1A0, unsigned char byteNum)
    2626{
    2727  return(( devA2A1A0 >>(byteNum*8)) & 0xff);
     
    3030* I2Cread_eeprom - read EEPROM VPD from the I2C
    3131*/
    32 int I2Cread_eeprom(unchar I2cBusAddr,u32 devA2A1A0,u32 AddrBytes,unchar *pBuff,u32 numBytes)
     32int I2Cread_eeprom(unsigned char I2cBusAddr,uint32_t devA2A1A0,uint32_t AddrBytes,unsigned char *pBuff,uint32_t numBytes)
    3333{
    3434  int status=0, lastByte=0;
Note: See TracChangeset for help on using the changeset viewer.