summaryrefslogtreecommitdiff
path: root/nuttx/arch/sh
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-05-08 09:00:33 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-05-08 09:00:33 -0600
commit3c423e7dff566512144a1ce15501512ad5426360 (patch)
tree84b7f36b211209c04986941e0a408105d7381cf9 /nuttx/arch/sh
parent8b312b8c3a30807a4633943c31f154e496fe6de8 (diff)
downloadnuttx-3c423e7dff566512144a1ce15501512ad5426360.tar.gz
nuttx-3c423e7dff566512144a1ce15501512ad5426360.tar.bz2
nuttx-3c423e7dff566512144a1ce15501512ad5426360.zip
Add serial method so that lower half driver can provide RX flow control information. From Jussi Kivilinna
Diffstat (limited to 'nuttx/arch/sh')
-rw-r--r--nuttx/arch/sh/src/m16c/m16c_serial.c3
-rw-r--r--nuttx/arch/sh/src/sh1/sh1_serial.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/arch/sh/src/m16c/m16c_serial.c b/nuttx/arch/sh/src/m16c/m16c_serial.c
index b0afc22fe..4bfeb1194 100644
--- a/nuttx/arch/sh/src/m16c/m16c_serial.c
+++ b/nuttx/arch/sh/src/m16c/m16c_serial.c
@@ -292,6 +292,9 @@ static const struct uart_ops_s g_uart_ops =
.receive = up_receive,
.rxint = up_rxint,
.rxavailable = up_rxavailable,
+#ifdef CONFIG_SERIAL_IFLOWCONTROL
+ .rxflowcontrol = NULL,
+#endif
.send = up_send,
.txint = up_txint,
.txready = up_txready,
diff --git a/nuttx/arch/sh/src/sh1/sh1_serial.c b/nuttx/arch/sh/src/sh1/sh1_serial.c
index 3719e0d5f..2c8d64888 100644
--- a/nuttx/arch/sh/src/sh1/sh1_serial.c
+++ b/nuttx/arch/sh/src/sh1/sh1_serial.c
@@ -180,6 +180,9 @@ struct uart_ops_s g_sci_ops =
.receive = up_receive,
.rxint = up_rxint,
.rxavailable = up_rxavailable,
+#ifdef CONFIG_SERIAL_IFLOWCONTROL
+ .rxflowcontrol = NULL,
+#endif
.send = up_send,
.txint = up_txint,
.txready = up_txready,