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
10 lines
223 B
Text
10 lines
223 B
Text
#
|
|
# Modbus configuration
|
|
#
|
|
CONFIG_MB_COMM_MODE_ASCII=y
|
|
CONFIG_MB_SLAVE_ADDR=1
|
|
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
|