kconfig: replace known integer constants with variables

Make the intent of the value clear and avoid invalid ranges with typos.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-07-05 15:45:46 +02:00 committed by Anas Nashif
commit ad63ca284e
97 changed files with 215 additions and 215 deletions

View file

@ -378,7 +378,7 @@ config BT_MESH_NETWORK_TRANSMIT_INTERVAL
config BT_MESH_MSG_CACHE_SIZE
int "Network message cache size"
default 32
range 2 65535
range 2 $(UINT16_MAX)
help
Number of messages that are cached by the node to avoid acting on the
recently seen duplicate messages. This option is similar to
@ -448,7 +448,7 @@ menu "Transport SAR configuration"
config BT_MESH_TX_SEG_MSG_COUNT
int "Maximum number of simultaneous outgoing segmented messages"
default 1
range 0 255
range 0 $(UINT8_MAX)
help
Maximum number of simultaneous outgoing multi-segment and/or
reliable messages.
@ -460,7 +460,7 @@ config BT_MESH_TX_SEG_MSG_COUNT
config BT_MESH_RX_SEG_MSG_COUNT
int "Maximum number of simultaneous incoming segmented messages"
default 1
range 0 255
range 0 $(UINT8_MAX)
help
Maximum number of simultaneous incoming multi-segment and/or
reliable messages.
@ -665,7 +665,7 @@ menu "Replay Protection List"
config BT_MESH_CRPL
int "Maximum capacity of the replay protection list"
default 10
range 2 65535
range 2 $(UINT16_MAX)
help
This options specifies the maximum capacity of the replay
protection list. This option is similar to the network message
@ -727,7 +727,7 @@ config BT_MESH_COMP_PAGE_1
config BT_MESH_MODEL_EXTENSION_LIST_SIZE
int "Model extensions list size"
depends on BT_MESH_COMP_PAGE_1
range 0 255
range 0 $(UINT8_MAX)
default 0 if !BT_MESH_MODEL_EXTENSIONS
default 10
help
@ -963,8 +963,8 @@ config BT_MESH_DFU_FWID_MAXLEN
config BT_MESH_DFU_METADATA_MAXLEN
int "DFU metadata max length"
default 32
range 18 255 if BT_MESH_DFU_METADATA
range 0 255
range 18 $(UINT8_MAX) if BT_MESH_DFU_METADATA
range 0 $(UINT8_MAX)
help
This value defines the maximum length of an image's metadata.
@ -977,7 +977,7 @@ config BT_MESH_DFU_METADATA
config BT_MESH_DFU_URI_MAXLEN
int "DFU URI max length"
default 32
range 0 255
range 0 $(UINT8_MAX)
help
This value defines the maximum length of an image's URI, not including
a string terminator.
@ -996,7 +996,7 @@ if BT_MESH_DFU_SLOTS
config BT_MESH_DFU_SLOT_CNT
int "Number of firmware image slots"
default 1
range 1 32767
range 1 $(INT16_MAX)
help
This value defines the number of firmware slots the DFU image slot manager
can keep simultaneously.
@ -1022,7 +1022,7 @@ config BT_MESH_DFD_SRV_SLOT_MAX_SIZE
config BT_MESH_DFD_SRV_SLOT_SPACE
int "Total DFU image storage space"
default BT_MESH_DFD_SRV_SLOT_MAX_SIZE
range 0 4294967295
range 0 $(UINT32_MAX)
help
This value defines the total storage space dedicated to storing DFU
images on the Firmware Distribution Server.
@ -1030,7 +1030,7 @@ config BT_MESH_DFD_SRV_SLOT_SPACE
config BT_MESH_DFD_SRV_TARGETS_MAX
int "Maximum Target node count"
default 8
range 1 65535
range 1 $(UINT16_MAX)
help
This value defines the maximum number of Target nodes the Firmware
Distribution Server can target simultaneously.
@ -1078,7 +1078,7 @@ config BT_MESH_RPR_AD_TYPES_MAX
config BT_MESH_RPR_SRV_SCANNED_ITEMS_MAX
int "Max scannable unprovisioned devices for Remote Provisioning Server"
default 4
range 4 255
range 4 $(UINT8_MAX)
help
Max number of unique unprovisioned devices a single Remote
Provisioning Server can hold.
@ -1086,7 +1086,7 @@ config BT_MESH_RPR_SRV_SCANNED_ITEMS_MAX
config BT_MESH_RPR_SRV_AD_DATA_MAX
int "Max additional advertisement data to report"
default 31
range 3 255
range 3 $(UINT8_MAX)
help
Buffer size for the additional advertisement data reported during
extended scanning.
@ -1202,7 +1202,7 @@ config BT_MESH_PROXY_SRPL_SIZE
int "Size of solicitation replay protection list (SRPL)"
depends on BT_MESH_OD_PRIV_PROXY_SRV
default 10
range 1 255
range 1 $(UINT8_MAX)
help
Size of SRPL. The list is used to determine if a received Solicitation PDU
is valid. It is valid when the SSRC field value of the received Solicitation PDU
@ -1271,7 +1271,7 @@ config BT_MESH_PROXY_USE_DEVICE_NAME
config BT_MESH_PROXY_FILTER_SIZE
int "Maximum number of filter entries per Proxy Client"
default 16
range 1 32767
range 1 $(INT16_MAX)
help
This option specifies how many Proxy Filter entries the local
node supports. This helps in reducing unwanted traffic getting sent to
@ -1518,8 +1518,8 @@ config BT_MESH_LPN_MIN_QUEUE_SIZE
config BT_MESH_LPN_RECV_DELAY
int "Receive delay requested by the local node"
range 50 255 if BT_MESH_ADV_LEGACY
range 10 255
range 50 $(UINT8_MAX) if BT_MESH_ADV_LEGACY
range 10 $(UINT8_MAX)
default 100
help
The ReceiveDelay is the time between the Low Power node
@ -1593,8 +1593,8 @@ config BT_MESH_FRIEND_ENABLED
config BT_MESH_FRIEND_RECV_WIN
int "Friend Receive Window"
range 1 255
default 255
range 1 $(UINT8_MAX)
default $(UINT8_MAX)
help
Receive Window in milliseconds supported by the Friend node.