freemodbus: add modbus master ascii

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


* Original commit: espressif/esp-idf@67f62a79c1
This commit is contained in:
Alex Lisitsyn
2019-11-26 13:16:25 +08:00
committed by aleks
parent 236d1dcfa4
commit 9f6f956db8
57 changed files with 2281 additions and 311 deletions
+3 -3
View File
@@ -101,11 +101,11 @@ Application Example
-------------------
The examples below use the FreeModbus library port for slave and master implementation accordingly. The selection of stack is performed through KConfig menu "Selection of Modbus stack support mode" and related configuration keys.
The examples below use the FreeModbus library port for serial slave and master implementation accordingly. The selection of stack is performed through KConfig menu "Selection of Modbus stack support mode" and related configuration keys.
:example:`protocols/modbus_slave`
:example:`protocols/modbus/serial/mb_slave`
:example:`protocols/modbus_master`
:example:`protocols/modbus/serial/mb_master`
Please refer to the specific example README.md for details.