Changeset 95c274e in rtems


Ignore:
Timestamp:
Sep 8, 2008, 9:53:40 AM (11 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, 4.9, master
Children:
663e529
Parents:
b06d0552
Message:

corrected parameters for done signalling

Location:
c/src/lib/libcpu/m68k/mcf5206
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/m68k/mcf5206/include/mcfmbus.h

    rb06d0552 r95c274e  
    3939    rtems_id               sema; /* MBUS semaphore */
    4040    i2c_transfer_done      done; /* Transfer done function */
    41     uint32_t         done_arg; /* Done function argument */
     41    uint32_t       done_arg_ptr; /* Done function argument ptr */
    4242} mcfmbus;
    4343
     
    8181 *     msg - pointer to messages array
    8282 *     done - function which is called when transfer is finished
    83  *     done_arg - arbitrary argument passed to done funciton
     83 *     done_arg_ptr - arbitrary argument ptr passed to done funciton
    8484 *
    8585 * RETURNS:
     
    8989rtems_status_code
    9090mcfmbus_i2c_transfer(mcfmbus *bus, int nmsg, i2c_message *msg,
    91                      i2c_transfer_done done, uint32_t   done_arg);
     91                     i2c_transfer_done done, void *done_arg_ptr);
    9292
    9393/* mcfmbus_i2c_done --
  • c/src/lib/libcpu/m68k/mcf5206/mbus/mcfmbus.c

    rb06d0552 r95c274e  
    190190                        bus->msg = bus->cmsg = NULL;
    191191                        bus->nmsg = bus->byte = 0;
    192                         bus->done(bus->done_arg);
     192                        bus->done(bus->done_arg_ptr);
    193193                        break;
    194194                    }
     
    554554 *     msg - pointer to messages array
    555555 *     done - function which is called when transfer is finished
    556  *     done_arg - arbitrary argument passed to done funciton
     556 *     done_arg_ptr - arbitrary argument ptr passed to done funciton
    557557 *
    558558 * RETURNS:
     
    562562rtems_status_code
    563563mcfmbus_i2c_transfer(mcfmbus *bus, int nmsg, i2c_message *msg,
    564                      i2c_transfer_done done, uint32_t   done_arg)
     564                     i2c_transfer_done done, void *done_arg_ptr)
    565565{
    566566    if (bus != mbus)
     
    568568   
    569569    bus->done = done;
    570     bus->done_arg = done_arg;
     570    bus->done_arg_ptr = done_arg_ptr;
    571571    bus->cmsg = bus->msg = msg;
    572572    bus->nmsg = nmsg;
Note: See TracChangeset for help on using the changeset viewer.