You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/08/06 06:04:18 UTC
[incubator-nuttx] 01/11: tioctl:Define SINGLEWIRE PUSHPULL option
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 5a76767cd77c1b8ab7a4a12f90da6d9cce1e37aa
Author: David Sidrane <Da...@NscDg.com>
AuthorDate: Tue Aug 4 04:42:45 2020 -0700
tioctl:Define SINGLEWIRE PUSHPULL option
---
include/nuttx/serial/tioctl.h | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/include/nuttx/serial/tioctl.h b/include/nuttx/serial/tioctl.h
index 1bae0d7..0c146e5 100644
--- a/include/nuttx/serial/tioctl.h
+++ b/include/nuttx/serial/tioctl.h
@@ -32,6 +32,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
********************************************************************************************/
+
/* This function should not be included directly. Rather, it should be included indirectly
* via include/nuttx/fs/ioctl.h.
*/
@@ -190,6 +191,7 @@
# define SER_SINGLEWIRE_PULL_DISABLE (0 << SER_SINGLEWIRE_PULL_SHIFT) /* Float RX/TX Line */
# define SER_SINGLEWIRE_PULLUP (1 << SER_SINGLEWIRE_PULL_SHIFT) /* Enable Pull up the RX/TX Line */
# define SER_SINGLEWIRE_PULLDOWN (2 << SER_SINGLEWIRE_PULL_SHIFT) /* Enable Pull down the RX/TX Line */
+# define SER_SINGLEWIRE_PUSHPULL (1 << 3) /* Use PUSH/PULL not Open Drain with Single wire */
/* Debugging */
@@ -220,8 +222,10 @@ struct winsize
{
uint16_t ws_row;
uint16_t ws_col;
-/* uint16_t ws_xpixel; unused */
-/* uint16_t ws_ypixel; unused */
+
+ /* uint16_t ws_xpixel; unused */
+
+ /* uint16_t ws_ypixel; unused */
};
/* Structure used with TIOCSRS485 and TIOCGRS485 (Linux compatible) */