summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-13 10:35:45 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-15 10:27:12 +0200
commita937a5a5347cf945fe7eff17eccd97cc849a5349 (patch)
tree7eb9fbf30f59beef831d681afcb464b20fb76f7d /c
parentlibio: Add rtems_libio_iop_is_no_delay() (diff)
downloadrtems-a937a5a5347cf945fe7eff17eccd97cc849a5349.tar.bz2
libio: Add rtems_libio_iop_is_readable()
Update #3132.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/shared/console.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/shared/console.c b/c/src/lib/libbsp/shared/console.c
index fbeec253e6..6d287c8726 100644
--- a/c/src/lib/libbsp/shared/console.c
+++ b/c/src/lib/libbsp/shared/console.c
@@ -255,7 +255,7 @@ rtems_device_driver console_open(
}
}
- if ( (args->iop->flags&LIBIO_FLAGS_READ) &&
+ if (rtems_libio_iop_is_readable(args->iop) &&
cptr->pDeviceFlow &&
cptr->pDeviceFlow->deviceStartRemoteTx) {
cptr->pDeviceFlow->deviceStartRemoteTx(minor);
@@ -288,7 +288,7 @@ rtems_device_driver console_close(
* Stop only if it's the last one opened.
*/
if ( (current_tty->refcount == 1) ) {
- if ( (args->iop->flags&LIBIO_FLAGS_READ) &&
+ if (rtems_libio_iop_is_readable(args->iop) &&
cptr->pDeviceFlow &&
cptr->pDeviceFlow->deviceStopRemoteTx) {
cptr->pDeviceFlow->deviceStopRemoteTx(minor);