arch/arm/src/stm32f7/stm32_serial.c: This adds the ability to invert and swap RX/TX on STM32F7 UARTs. I added the TIOCGINVERT as well to reserve the IOCTL number, but did not implement it. This is the same as for TIOCGSINGLEWIRE.

This commit is contained in:
Beat Küng
2019-07-03 09:23:18 -06:00
committed by Gregory Nutt
parent 118d0f8f1f
commit 1395938260
3 changed files with 138 additions and 6 deletions
+15
View File
@@ -190,6 +190,21 @@
#define TIOCSERGSTRUCT _TIOC(0x0032) /* Get device TTY structure */
/* Inversion Support */
#define TIOCSINVERT _TIOC(0x0033) /* Set Singal Inversion */
#define TIOCGINVERT _TIOC(0x0034) /* Get Singal Inversion */
#define SER_INVERT_ENABLED_RX (1 << 0) /* Enable/disable signal inversion for RX */
#define SER_INVERT_ENABLED_TX (1 << 1) /* Enable/disable signal inversion for TX */
/* RX/TX Swap Support */
#define TIOCSSWAP _TIOC(0x0035) /* Set RX/TX Swap */
#define TIOCGSWAP _TIOC(0x0036) /* Get RX/TX Swap */
#define SER_SWAP_ENABLED (1 << 0) /* Enable/disable RX/TX swap */
/********************************************************************************************
* Public Type Definitions
********************************************************************************************/