Correct Kconfigs according to the coding style

* Original commit: espressif/esp-idf@37126d3451
This commit is contained in:
Roland Dobai
2019-01-25 17:10:53 +01:00
committed by aleks
parent 56838197f5
commit 3e2a03d032

View File

@@ -1,6 +1,6 @@
menu "Modbus configuration" menu "Modbus configuration"
config MB_QUEUE_LENGTH config MB_QUEUE_LENGTH
int "Modbus serial task queue length" int "Modbus serial task queue length"
range 0 200 range 0 200
default 20 default 20
@@ -8,7 +8,7 @@ config MB_QUEUE_LENGTH
Modbus serial driver queue length. It is used by event queue task. Modbus serial driver queue length. It is used by event queue task.
See the serial driver API for more information. See the serial driver API for more information.
config MB_SERIAL_TASK_STACK_SIZE config MB_SERIAL_TASK_STACK_SIZE
int "Modbus serial task stack size" int "Modbus serial task stack size"
range 768 8192 range 768 8192
default 2048 default 2048
@@ -16,7 +16,7 @@ config MB_SERIAL_TASK_STACK_SIZE
Modbus serial task stack size for event queue task. Modbus serial task stack size for event queue task.
It may be adjusted when debugging is enabled (for example). It may be adjusted when debugging is enabled (for example).
config MB_SERIAL_BUF_SIZE config MB_SERIAL_BUF_SIZE
int "Modbus serial task RX/TX buffer size" int "Modbus serial task RX/TX buffer size"
range 0 2048 range 0 2048
default 256 default 256
@@ -25,7 +25,7 @@ config MB_SERIAL_BUF_SIZE
This buffer is used for Modbus frame transfer. The Modbus protocol maximum This buffer is used for Modbus frame transfer. The Modbus protocol maximum
frame size is 256 bytes. Bigger size can be used for non standard implementations. frame size is 256 bytes. Bigger size can be used for non standard implementations.
config MB_SERIAL_TASK_PRIO config MB_SERIAL_TASK_PRIO
int "Modbus serial task priority" int "Modbus serial task priority"
range 3 10 range 3 10
default 10 default 10
@@ -33,14 +33,14 @@ config MB_SERIAL_TASK_PRIO
Modbus UART driver event task priority. Modbus UART driver event task priority.
The priority of Modbus controller task is equal to (CONFIG_MB_SERIAL_TASK_PRIO - 1). The priority of Modbus controller task is equal to (CONFIG_MB_SERIAL_TASK_PRIO - 1).
config MB_CONTROLLER_SLAVE_ID_SUPPORT config MB_CONTROLLER_SLAVE_ID_SUPPORT
bool "Modbus controller slave ID support" bool "Modbus controller slave ID support"
default n default n
help help
Modbus slave ID support enable. Modbus slave ID support enable.
When enabled the Modbus <Report Slave ID> command is supported by stack. When enabled the Modbus <Report Slave ID> command is supported by stack.
config MB_CONTROLLER_SLAVE_ID config MB_CONTROLLER_SLAVE_ID
hex "Modbus controller slave ID" hex "Modbus controller slave ID"
range 0 4294967295 range 0 4294967295
default 0x00112233 default 0x00112233
@@ -51,7 +51,7 @@ config MB_CONTROLLER_SLAVE_ID
Most significant byte of ID is used as short device ID and Most significant byte of ID is used as short device ID and
other three bytes used as long ID. other three bytes used as long ID.
config MB_CONTROLLER_NOTIFY_TIMEOUT config MB_CONTROLLER_NOTIFY_TIMEOUT
int "Modbus controller notification timeout (ms)" int "Modbus controller notification timeout (ms)"
range 0 200 range 0 200
default 20 default 20
@@ -59,7 +59,7 @@ config MB_CONTROLLER_NOTIFY_TIMEOUT
Modbus controller notification timeout in milliseconds. Modbus controller notification timeout in milliseconds.
This timeout is used to send notification about accessed parameters. This timeout is used to send notification about accessed parameters.
config MB_CONTROLLER_NOTIFY_QUEUE_SIZE config MB_CONTROLLER_NOTIFY_QUEUE_SIZE
int "Modbus controller notification queue size" int "Modbus controller notification queue size"
range 0 200 range 0 200
default 20 default 20
@@ -67,7 +67,7 @@ config MB_CONTROLLER_NOTIFY_QUEUE_SIZE
Modbus controller notification queue size. Modbus controller notification queue size.
The notification queue is used to get information about accessed parameters. The notification queue is used to get information about accessed parameters.
config MB_CONTROLLER_STACK_SIZE config MB_CONTROLLER_STACK_SIZE
int "Modbus controller stack size" int "Modbus controller stack size"
range 0 8192 range 0 8192
default 4096 default 4096
@@ -75,7 +75,7 @@ config MB_CONTROLLER_STACK_SIZE
Modbus controller task stack size. The Stack size may be adjusted when Modbus controller task stack size. The Stack size may be adjusted when
debug mode is used which requires more stack size (for example). debug mode is used which requires more stack size (for example).
config MB_EVENT_QUEUE_TIMEOUT config MB_EVENT_QUEUE_TIMEOUT
int "Modbus stack event queue timeout (ms)" int "Modbus stack event queue timeout (ms)"
range 0 500 range 0 500
default 20 default 20
@@ -83,14 +83,14 @@ config MB_EVENT_QUEUE_TIMEOUT
Modbus stack event queue timeout in milliseconds. This may help to optimize Modbus stack event queue timeout in milliseconds. This may help to optimize
Modbus stack event processing time. Modbus stack event processing time.
config MB_TIMER_PORT_ENABLED config MB_TIMER_PORT_ENABLED
bool "Modbus stack use timer for 3.5T symbol time measurement" bool "Modbus stack use timer for 3.5T symbol time measurement"
default y default y
help help
If this option is set the Modbus stack uses timer for T3.5 time measurement. If this option is set the Modbus stack uses timer for T3.5 time measurement.
Else the internal UART TOUT timeout is used for 3.5T symbol time measurement. Else the internal UART TOUT timeout is used for 3.5T symbol time measurement.
config MB_TIMER_GROUP config MB_TIMER_GROUP
int "Modbus Timer group number" int "Modbus Timer group number"
range 0 1 range 0 1
depends on MB_TIMER_PORT_ENABLED depends on MB_TIMER_PORT_ENABLED
@@ -98,7 +98,7 @@ config MB_TIMER_GROUP
help help
Modbus Timer group number that is used for timeout measurement. Modbus Timer group number that is used for timeout measurement.
config MB_TIMER_INDEX config MB_TIMER_INDEX
int "Modbus Timer index in the group" int "Modbus Timer index in the group"
range 0 1 range 0 1
depends on MB_TIMER_PORT_ENABLED depends on MB_TIMER_PORT_ENABLED