* console.c: Flow control is optional.
This commit is contained in:
Sebastian Huber
2011-02-01 15:48:26 +00:00
parent c14db0a302
commit cdc056098d
2 changed files with 11 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
2011-02-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
* console.c: Flow control is optional.
2011-01-27 Sebastian Huber <sebastian.huber@embedded-brains.de> 2011-01-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* shared/bspgetworkarea.c: Use BSP_DISABLE_UBOOT_WORK_AREA_CONFIG and * shared/bspgetworkarea.c: Use BSP_DISABLE_UBOOT_WORK_AREA_CONFIG and

View File

@@ -70,8 +70,13 @@ rtems_device_driver console_open(
Callbacks.pollRead = cptr->pDeviceFns->deviceRead; Callbacks.pollRead = cptr->pDeviceFns->deviceRead;
Callbacks.write = cptr->pDeviceFns->deviceWrite; Callbacks.write = cptr->pDeviceFns->deviceWrite;
Callbacks.setAttributes = cptr->pDeviceFns->deviceSetAttributes; Callbacks.setAttributes = cptr->pDeviceFns->deviceSetAttributes;
if (cptr->pDeviceFlow != NULL) {
Callbacks.stopRemoteTx = cptr->pDeviceFlow->deviceStopRemoteTx; Callbacks.stopRemoteTx = cptr->pDeviceFlow->deviceStopRemoteTx;
Callbacks.startRemoteTx = cptr->pDeviceFlow->deviceStartRemoteTx; Callbacks.startRemoteTx = cptr->pDeviceFlow->deviceStartRemoteTx;
} else {
Callbacks.stopRemoteTx = NULL;
Callbacks.startRemoteTx = NULL;
}
Callbacks.outputUsesInterrupts = cptr->pDeviceFns->deviceOutputUsesInterrupts; Callbacks.outputUsesInterrupts = cptr->pDeviceFns->deviceOutputUsesInterrupts;
/* XXX what about /* XXX what about