mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 01:03:34 +08:00
Don't use strerror in apps/modbus; Add CONFIG_MB_TERMIOS to enable/suppress use of termios.h interfaces
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4968 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -24,6 +24,15 @@ config MB_TCP_ENABLED
|
||||
depends on MODBUS
|
||||
default y
|
||||
|
||||
config MB_TERMIOS
|
||||
bool "Driver TERMIOS supported"
|
||||
depends on MB_ASCII_ENABLED || MB_RTU_ENABLED
|
||||
default n
|
||||
---help---
|
||||
Serial driver supports termios.h interfaces (tcsetattr, tcflush, etc.).
|
||||
If this is not defined, then the terminal settings (baud, parity, etc).
|
||||
are not configurable at runtime; serial streams will not be flushed when closed.
|
||||
|
||||
config MB_ASCII_TIMEOUT_SEC
|
||||
int "Character timeout"
|
||||
depends on MB_ASCII_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user