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_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
|
||||
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.
|
||||
|
||||
config FMB_FUNC_HANDLERS_MAX
|
||||
int "Number "
|
||||
int "The maximum number of modbus function handlers"
|
||||
range 0 100
|
||||
default 16
|
||||
help
|
||||
Modbus stack event queue timeout in milliseconds. This may help to optimize
|
||||
Modbus stack event processing time.
|
||||
Maximum namber of Modbus function handlers in function handler list.
|
||||
It allows to register additional custom function handlers for master and slave accordingly.
|
||||
|
||||
endmenu
|
||||
|
@ -149,8 +149,6 @@ void vMBPortClose( void );
|
||||
|
||||
void xMBPortSerialClose( void );
|
||||
|
||||
//eMBErrorCode eMBRegisterCB( UCHAR ucFunctionCode, pxMBFunctionHandler pxHandler );
|
||||
|
||||
void vMBPortSerialEnable( BOOL xRxEnable, BOOL xTxEnable );
|
||||
|
||||
BOOL xMBPortSerialGetByte( CHAR * pucByte );
|
||||
|
@ -50,8 +50,8 @@
|
||||
#include "driver/timer.h"
|
||||
#endif
|
||||
|
||||
//#include "mbconfig.h"
|
||||
#include "sdkconfig.h"
|
||||
#include "mbconfig.h"
|
||||
//#include "sdkconfig.h"
|
||||
|
||||
#define INLINE inline
|
||||
#define PR_BEGIN_EXTERN_C extern "C" {
|
||||
|
Reference in New Issue
Block a user