Ignore:
Timestamp:
Feb 13, 2013, 8:46:25 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Parents:
af30847
Message:

Avoid rtems_bsdnet_event_receive()

RTEMS 4.11 will use system events inside the network stack. Use normal
events for CALLOUT(9) and TASKQUEUE(9) implementations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsd_eth_drivers/libbsdport/rtems_callout.c

    raf30847 r28a6f92  
    159159
    160160        while ( 1 ) {
    161                 sc = rtems_bsdnet_event_receive (CALLOUT_EVENT | KILL_EVENT, RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &ev);
     161                rtems_bsdnet_semaphore_release ();
     162                sc = rtems_event_receive (CALLOUT_EVENT | KILL_EVENT, RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &ev);
     163                rtems_bsdnet_semaphore_obtain ();
    162164                if ( RTEMS_SUCCESSFUL != sc ) {
    163165                        rtems_error(sc, "calloutTask: unable to receive event; terminating\n");
Note: See TracChangeset for help on using the changeset viewer.