Ignore:
Timestamp:
Sep 9, 2008, 1:18:58 PM (12 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, 4.9, 5, master
Children:
85e87f1
Parents:
ae52c9c
Message:

minor additions
i2c-driver: wait, 'til stop executed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/mpc83xx/i2c/mpc83xx_i2cdrv.c

    rae52c9c r39dfbe16  
    425425#endif
    426426  softc_ptr->reg_ptr->i2ccr &= ~MPC83XX_I2CCR_MSTA;
    427 
     427  /*
     428   * wait, 'til stop has been executed
     429   */
     430  while (0 != (softc_ptr->reg_ptr->i2csr & MPC83XX_I2CSR_MBB)) {
     431    rtems_task_wake_after(RTEMS_YIELD_PROCESSOR);
     432  }
    428433#if defined(DEBUG)
    429434  printk("... exit OK\r\n");
Note: See TracChangeset for help on using the changeset viewer.