forked from espressif/esp-modbus
modbus expose port headers
This commit is contained in:
@ -43,7 +43,7 @@ set(srcs
|
|||||||
"common/esp_modbus_master_serial.c"
|
"common/esp_modbus_master_serial.c"
|
||||||
"common/esp_modbus_slave_serial.c")
|
"common/esp_modbus_slave_serial.c")
|
||||||
|
|
||||||
set(include_dirs common/include port modbus/include)
|
set(include_dirs common/include modbus/include port) # Add the modbus/include to public include path
|
||||||
|
|
||||||
set(priv_include_dirs common modbus modbus/ascii modbus/functions
|
set(priv_include_dirs common modbus modbus/ascii modbus/functions
|
||||||
modbus/rtu modbus/tcp)
|
modbus/rtu modbus/tcp)
|
||||||
|
6
Kconfig
6
Kconfig
@ -213,11 +213,11 @@ menu "Modbus configuration"
|
|||||||
handler into IRAM to prevent delays related to processing of UART events.
|
handler into IRAM to prevent delays related to processing of UART events.
|
||||||
|
|
||||||
config FMB_FUNC_HANDLERS_MAX
|
config FMB_FUNC_HANDLERS_MAX
|
||||||
int "Number "
|
int "The maximum number of modbus function handlers"
|
||||||
range 0 100
|
range 0 100
|
||||||
default 16
|
default 16
|
||||||
help
|
help
|
||||||
Modbus stack event queue timeout in milliseconds. This may help to optimize
|
Maximum namber of Modbus function handlers in function handler list.
|
||||||
Modbus stack event processing time.
|
It allows to register additional custom function handlers for master and slave accordingly.
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
@ -149,8 +149,6 @@ void vMBPortClose( void );
|
|||||||
|
|
||||||
void xMBPortSerialClose( void );
|
void xMBPortSerialClose( void );
|
||||||
|
|
||||||
//eMBErrorCode eMBRegisterCB( UCHAR ucFunctionCode, pxMBFunctionHandler pxHandler );
|
|
||||||
|
|
||||||
void vMBPortSerialEnable( BOOL xRxEnable, BOOL xTxEnable );
|
void vMBPortSerialEnable( BOOL xRxEnable, BOOL xTxEnable );
|
||||||
|
|
||||||
BOOL xMBPortSerialGetByte( CHAR * pucByte );
|
BOOL xMBPortSerialGetByte( CHAR * pucByte );
|
||||||
|
@ -50,8 +50,8 @@
|
|||||||
#include "driver/timer.h"
|
#include "driver/timer.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//#include "mbconfig.h"
|
#include "mbconfig.h"
|
||||||
#include "sdkconfig.h"
|
//#include "sdkconfig.h"
|
||||||
|
|
||||||
#define INLINE inline
|
#define INLINE inline
|
||||||
#define PR_BEGIN_EXTERN_C extern "C" {
|
#define PR_BEGIN_EXTERN_C extern "C" {
|
||||||
|
Reference in New Issue
Block a user