67f62a79c1
add support of modbus master ascii rename base dir name of master and slave example to be mb_slave, mb_master to avoid conflict with sdio/slave example test add Kconfig option to enable ASCII and RTU mode separately update ASCII options + remove cast for errors added baudrate for examples into Kconfig updated magic numbers for timer timeout put ascii private definitions into one file
11 lines
280 B
Text
11 lines
280 B
Text
#
|
|
# Modbus configuration
|
|
#
|
|
CONFIG_MB_COMM_MODE_ASCII=y
|
|
CONFIG_MB_UART_BAUD_RATE=115200
|
|
CONFIG_FMB_TIMER_PORT_ENABLED=y
|
|
CONFIG_FMB_TIMER_GROUP=0
|
|
CONFIG_FMB_TIMER_INDEX=0
|
|
CONFIG_FMB_TIMER_ISR_IN_IRAM=y
|
|
CONFIG_FMB_MASTER_DELAY_MS_CONVERT=200
|
|
CONFIG_FMB_MASTER_TIMEOUT_MS_RESPOND=150
|