summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-23 14:38:13 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-23 14:38:13 +0000
commit7866bca6aac68f69426b9433fa5c972b5143dde1 (patch)
treec6824d3be2f29e4996ca87ddee70422dc028a151 /nuttx/include
parentf663a4a46924f3082d33a39a5872e90f2aff9eb0 (diff)
downloadpx4-nuttx-7866bca6aac68f69426b9433fa5c972b5143dde1.tar.gz
px4-nuttx-7866bca6aac68f69426b9433fa5c972b5143dde1.tar.bz2
px4-nuttx-7866bca6aac68f69426b9433fa5c972b5143dde1.zip
Add single-wire UART support to STM32 serial driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5552 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/serial/tioctl.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/nuttx/include/nuttx/serial/tioctl.h b/nuttx/include/nuttx/serial/tioctl.h
index b309ff37c..a98b487a6 100644
--- a/nuttx/include/nuttx/serial/tioctl.h
+++ b/nuttx/include/nuttx/serial/tioctl.h
@@ -1,7 +1,7 @@
/********************************************************************************************
* include/nuttx/serial/tioctl.h
*
- * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2011-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -165,16 +165,23 @@
#define TIOCSRS485 _TIOC(0x002a) /* Set RS485 mode, arg: pointer to struct serial_rs485 */
#define TIOCGRS485 _TIOC(0x002b) /* Get RS485 mode, arg: pointer to struct serial_rs485 */
-/* Debugging */
+/* Definitions for flags used in struct serial_rs485 (Linux compatible) */
+
+# define SER_RS485_ENABLED (1 << 0) /* Enable/disble RS-485 support */
+# define SER_RS485_RTS_ON_SEND (1 << 1) /* Logic level for RTS pin when sending */
+# define SER_RS485_RTS_AFTER_SEND (1 << 2) /* Logic level for RTS pin after sent */
+# define SER_RS485_RX_DURING_TX (1 << 4)
+
+/* Single-wire UART support */
-#define TIOCSERGSTRUCT _TIOC(0x002c) /* Get device TTY structure */
+#define TIOCSSINGLEWIRE _TIOC(0x002c) /* Set single-wire mode */
+#define TIOCGSINGLEWIRE _TIOC(0x002d) /* Get single-wire mode */
-/* Definitions used in struct serial_rs485 (Linux compatible) */
+# define SER_SINGLEWIRE_ENABLED (1 << 0) /* Enable/disable single-wire support */
+
+/* Debugging */
-#define SER_RS485_ENABLED (1 << 0) /* Enable/disble RS-485 support */
-#define SER_RS485_RTS_ON_SEND (1 << 1) /* Logic level for RTS pin when sending */
-#define SER_RS485_RTS_AFTER_SEND (1 << 2) /* Logic level for RTS pin after sent */
-#define SER_RS485_RX_DURING_TX (1 << 4)
+#define TIOCSERGSTRUCT _TIOC(0x002e) /* Get device TTY structure */
/********************************************************************************************
* Public Type Definitions