modbus expose port headers

This commit is contained in:
aleks
2023-09-18 12:56:42 +02:00
committed by Alex Lisitsyn
parent 087909c26e
commit bc2c08ad94
4 changed files with 6 additions and 8 deletions

View File

@ -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)

View File

@ -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

View File

@ -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 );

View File

@ -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" {