Changeset cdc0560 in rtems


Ignore:
Timestamp:
Feb 1, 2011, 3:48:26 PM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
c52c319
Parents:
c14db0a
Message:

2011-02-01 Sebastian Huber <sebastian.huber@…>

  • console.c: Flow control is optional.
Location:
c/src/lib/libbsp/shared
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/shared/ChangeLog

    rc14db0a rcdc0560  
     12011-02-01      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * console.c: Flow control is optional.
     4
    152011-01-27      Sebastian Huber <sebastian.huber@embedded-brains.de>
    26
  • c/src/lib/libbsp/shared/console.c

    rc14db0a rcdc0560  
    7171  Callbacks.write                = cptr->pDeviceFns->deviceWrite;
    7272  Callbacks.setAttributes        = cptr->pDeviceFns->deviceSetAttributes;
    73   Callbacks.stopRemoteTx         = cptr->pDeviceFlow->deviceStopRemoteTx;
    74   Callbacks.startRemoteTx        = cptr->pDeviceFlow->deviceStartRemoteTx;
     73  if (cptr->pDeviceFlow != NULL) {
     74    Callbacks.stopRemoteTx = cptr->pDeviceFlow->deviceStopRemoteTx;
     75    Callbacks.startRemoteTx = cptr->pDeviceFlow->deviceStartRemoteTx;
     76  } else {
     77    Callbacks.stopRemoteTx = NULL;
     78    Callbacks.startRemoteTx = NULL;
     79  }
    7580  Callbacks.outputUsesInterrupts = cptr->pDeviceFns->deviceOutputUsesInterrupts;
    7681
Note: See TracChangeset for help on using the changeset viewer.