mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 14:53:33 +08:00
Remove BOTHER
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4972 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -491,7 +491,7 @@ examples/modbus
|
||||
that can be downloaded in its entirety from http://developer.berlios.de/project/showfiles.php?group_id=6120.
|
||||
|
||||
CONFIG_EXAMPLES_MODBUS_PORT, Default 0 (for /dev/ttyS0)
|
||||
CONFIG_EXAMPLES_MODBUS_BAUD, Default 38400
|
||||
CONFIG_EXAMPLES_MODBUS_BAUD, Default B38400
|
||||
CONFIG_EXAMPLES_MODBUS_PARITY, Default MB_PAR_EVEN
|
||||
|
||||
CONFIG_EXAMPLES_MODBUS_REG_INPUT_START, Default 1000
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <pthread.h>
|
||||
#include <termios.h>
|
||||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
|
||||
@@ -80,7 +81,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_EXAMPLES_MODBUS_BAUD
|
||||
# define CONFIG_EXAMPLES_MODBUS_BAUD 38400
|
||||
# define CONFIG_EXAMPLES_MODBUS_BAUD B38400
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_EXAMPLES_MODBUS_PARITY
|
||||
@@ -192,7 +193,7 @@ static inline int modbus_initialize(void)
|
||||
* MB_RTU = RTU mode
|
||||
* 0x0a = Slave address
|
||||
* CONFIG_EXAMPLES_MODBUS_PORT = port, default=0 (i.e., /dev/ttyS0)
|
||||
* CONFIG_EXAMPLES_MODBUS_BAUD = baud, default=38400
|
||||
* CONFIG_EXAMPLES_MODBUS_BAUD = baud, default=B38400
|
||||
* CONFIG_EXAMPLES_MODBUS_PARITY = parity, default=MB_PAR_EVEN
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user