summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2011-02-01 15:48:26 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2011-02-01 15:48:26 +0000
commitcdc056098d77a003e870174951b69f044344c075 (patch)
treec8374478a3f2d8abc492d34ea4d115cd596a898b /c
parent2011-02-01 Ralf Corsepius <ralf.corsepius@rtems.org> (diff)
downloadrtems-cdc056098d77a003e870174951b69f044344c075.tar.bz2
2011-02-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
* console.c: Flow control is optional.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/shared/ChangeLog4
-rw-r--r--c/src/lib/libbsp/shared/console.c9
2 files changed, 11 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/shared/ChangeLog b/c/src/lib/libbsp/shared/ChangeLog
index c053e98aff..7505578a4a 100644
--- a/c/src/lib/libbsp/shared/ChangeLog
+++ b/c/src/lib/libbsp/shared/ChangeLog
@@ -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>
* shared/bspgetworkarea.c: Use BSP_DISABLE_UBOOT_WORK_AREA_CONFIG and
diff --git a/c/src/lib/libbsp/shared/console.c b/c/src/lib/libbsp/shared/console.c
index 440a2cb293..31cc1704da 100644
--- a/c/src/lib/libbsp/shared/console.c
+++ b/c/src/lib/libbsp/shared/console.c
@@ -70,8 +70,13 @@ rtems_device_driver console_open(
Callbacks.pollRead = cptr->pDeviceFns->deviceRead;
Callbacks.write = cptr->pDeviceFns->deviceWrite;
Callbacks.setAttributes = cptr->pDeviceFns->deviceSetAttributes;
- Callbacks.stopRemoteTx = cptr->pDeviceFlow->deviceStopRemoteTx;
- Callbacks.startRemoteTx = cptr->pDeviceFlow->deviceStartRemoteTx;
+ if (cptr->pDeviceFlow != NULL) {
+ Callbacks.stopRemoteTx = cptr->pDeviceFlow->deviceStopRemoteTx;
+ Callbacks.startRemoteTx = cptr->pDeviceFlow->deviceStartRemoteTx;
+ } else {
+ Callbacks.stopRemoteTx = NULL;
+ Callbacks.startRemoteTx = NULL;
+ }
Callbacks.outputUsesInterrupts = cptr->pDeviceFns->deviceOutputUsesInterrupts;
/* XXX what about