modbus: Fix compilation issue and advice users about termios
This commit is contained in:
parent
478a7027d9
commit
f9e487ae1d
@ -76,6 +76,10 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
/* Configuration ************************************************************/
|
/* Configuration ************************************************************/
|
||||||
|
|
||||||
|
#ifndef CONFIG_SERIAL_TERMIOS
|
||||||
|
# error "CONFIG_SERIAL_TERMIOS is needed by modbus example"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_EXAMPLES_MODBUS_PORT
|
#ifndef CONFIG_EXAMPLES_MODBUS_PORT
|
||||||
# define CONFIG_EXAMPLES_MODBUS_PORT 0
|
# define CONFIG_EXAMPLES_MODBUS_PORT 0
|
||||||
#endif
|
#endif
|
||||||
|
@ -50,6 +50,10 @@
|
|||||||
|
|
||||||
/* modbus master port */
|
/* modbus master port */
|
||||||
|
|
||||||
|
#ifndef CONFIG_SERIAL_TERMIOS
|
||||||
|
# error "CONFIG_SERIAL_TERMIOS is needed by modbus example"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_EXAMPLES_MODBUSMASTER_PORT
|
#ifdef CONFIG_EXAMPLES_MODBUSMASTER_PORT
|
||||||
# define MBMASTER_PORT CONFIG_EXAMPLES_MODBUSMASTER_PORT
|
# define MBMASTER_PORT CONFIG_EXAMPLES_MODBUSMASTER_PORT
|
||||||
#else
|
#else
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <termios.h>
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Types
|
* Public Types
|
||||||
|
Loading…
x
Reference in New Issue
Block a user