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

@ -330,7 +330,7 @@ config ZERO_LATENCY_IRQS
config ZERO_LATENCY_LEVELS
int "Number of interrupt priority levels reserved for zero latency"
depends on ZERO_LATENCY_IRQS
range 1 255
range 1 $(UINT8_MAX)
help
The amount of interrupt priority levels reserved for zero latency
interrupts. Increase this value to reserve more than one priority

View file

@ -205,7 +205,7 @@ config MAX_IRQ_LINES
config IRQ_OFFLOAD_VECTOR
int "IDT vector to use for IRQ offload"
default 33
range 32 255
range 32 $(UINT8_MAX)
depends on IRQ_OFFLOAD
config PIC_DISABLE

View file

@ -42,13 +42,13 @@ config X86_EXCEPTION_STACK_TRACE
config SCHED_IPI_VECTOR
int "IDT vector to use for scheduler IPI"
default 34
range 33 255
range 33 $(UINT8_MAX)
depends on SMP
config TLB_IPI_VECTOR
int "IDT vector to use for TLB shootdown IPI"
default 35
range 33 255
range 33 $(UINT8_MAX)
depends on SMP
# We should really only have to provide one of the following two values,

View file

@ -13,10 +13,10 @@ config BT_BUF_ACL_TX_COUNT
default 14
config BT_BUF_CMD_TX_SIZE
default 255
default $(UINT8_MAX)
config BT_BUF_EVT_RX_SIZE
default 255
default $(UINT8_MAX)
config BT_BUF_ACL_TX_SIZE
default 251

View file

@ -7,7 +7,7 @@ if BOARD_ESP32_DEVKITC_WROOM_ESP32_PROCPU
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -5,7 +5,7 @@ if BOARD_ESP32_DEVKITC_WROVER_ESP32_PROCPU
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -14,7 +14,7 @@ endchoice
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -5,7 +5,7 @@
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -5,7 +5,7 @@
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -7,7 +7,7 @@ if BOARD_ESP32S3_DEVKITC_ESP32S3_PROCPU
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -7,7 +7,7 @@ if BOARD_ESP32S3_DEVKITM_ESP32S3_PROCPU
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -7,7 +7,7 @@ if BOARD_ESP_WROVER_KIT_ESP32_PROCPU
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -20,7 +20,7 @@ endchoice
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -7,7 +7,7 @@ if BOARD_HELTEC_WIFI_LORA32_V2_ESP32_PROCPU
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -8,7 +8,7 @@ if BOARD_HELTEC_WIRELESS_STICK_LITE_V3_ESP32S3_PROCPU
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -5,7 +5,7 @@ if BOARD_KINCONY_KC868_A32_ESP32_PROCPU
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -10,7 +10,7 @@ config ENTROPY_GENERATOR
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -3,7 +3,7 @@
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -5,7 +5,7 @@
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -7,7 +7,7 @@ if BOARD_ESP32S3_LUATOS_CORE_ESP32S3_PROCPU || BOARD_ESP32S3_LUATOS_CORE_ESP32S3
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -7,7 +7,7 @@ if BOARD_M5STACK_ATOM_LITE_ESP32_PROCPU
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -9,7 +9,7 @@ config LV_COLOR_16_SWAP
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -6,7 +6,7 @@ if BOARD_M5STACK_ATOMS3_LITE_ESP32S3_PROCPU
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -7,7 +7,7 @@ if BOARD_M5STACK_CORE2_ESP32_PROCPU
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 65536 if BT
default 4096

View file

@ -6,7 +6,7 @@ if BOARD_M5STACK_STAMPS3_ESP32S3_PROCPU
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -7,7 +7,7 @@ if BOARD_M5STICKC_PLUS_ESP32_PROCPU
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -5,7 +5,7 @@
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -7,7 +7,7 @@ if BOARD_OLIMEX_ESP32_EVB_ESP32_PROCPU
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -3,7 +3,7 @@
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -3,7 +3,7 @@
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -5,7 +5,7 @@ if BOARD_XIAO_ESP32S3_ESP32S3_PROCPU
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -7,7 +7,7 @@ if BOARD_YD_ESP32_ESP32_PROCPU
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -5,7 +5,7 @@ if BOARD_ESP32S3_TOUCH_LCD_1_28_ESP32S3_PROCPU
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT
default $(UINT16_MAX) if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096

View file

@ -199,7 +199,7 @@ config AIROC_CUSTOM_FIRMWARE_HCD_BLOB
# Change size of command lengths. It for vendor commands related to
# firmware downloading.
config BT_BUF_CMD_TX_SIZE
default 255
default $(UINT8_MAX)
endif # BT_AIROC

View file

@ -94,7 +94,7 @@ config CLOCK_CONTROL_NRF_CALIBRATION_PERIOD
config CLOCK_CONTROL_NRF_CALIBRATION_MAX_SKIP
int "Maximum number of calibration skips"
default 1
range 0 255
range 0 $(UINT8_MAX)
help
Calibration is skipped when temperature change since last calibration
was less than configured threshold. If number of consecutive skips

View file

@ -13,7 +13,7 @@ config MICROBIT_DISPLAY
config MICROBIT_DISPLAY_STR_MAX
int "Maximum length of strings that can be shown on the display"
range 3 255
range 3 $(UINT8_MAX)
default 40
depends on MICROBIT_DISPLAY
help

View file

@ -19,7 +19,7 @@ if SSD1306
config SSD1306_DEFAULT_CONTRAST
int "SSD1306 default contrast"
default 128
range 0 255
range 0 $(UINT8_MAX)
help
SSD1306 default contrast.

View file

@ -33,8 +33,8 @@ config ENTROPY_CC13XX_CC26XX_SAMPLES_PER_CYCLE
config ENTROPY_CC13XX_CC26XX_ALARM_THRESHOLD
int "Threshold for detected repeated patterns"
range 0 255
default 255
range 0 $(UINT8_MAX)
default $(UINT8_MAX)
help
The number of samples detected with repeating patterns before an alarm
event is triggered. The associated FRO is automatically shut down.

View file

@ -42,7 +42,7 @@ config ENTROPY_NRF5_THR_POOL_SIZE
config ENTROPY_NRF5_THR_THRESHOLD
int "Thread-mode random number pool low-water threshold"
range 4 255
range 4 $(UINT8_MAX)
help
Low water-mark threshold in bytes to trigger entropy generation for
thread mode consumers. As soon as the number of available bytes in the
@ -60,7 +60,7 @@ config ENTROPY_NRF5_ISR_POOL_SIZE
config ENTROPY_NRF5_ISR_THRESHOLD
int "ISR-mode random number pool low-water threshold"
range 12 255
range 12 $(UINT8_MAX)
help
Low water-mark threshold in bytes to trigger entropy generation for
ISR consumers. As soon as the number of available bytes in the

View file

@ -25,7 +25,7 @@ config ENTROPY_SMARTBOND_THR_POOL_SIZE
config ENTROPY_SMARTBOND_THR_THRESHOLD
int "Thread-mode random number pool low-water threshold"
range 4 255
range 4 $(UINT8_MAX)
help
Low water-mark threshold in bytes to trigger entropy generation for
thread mode consumers. As soon as the number of available bytes in the
@ -43,7 +43,7 @@ config ENTROPY_SMARTBOND_ISR_POOL_SIZE
config ENTROPY_SMARTBOND_ISR_THRESHOLD
int "ISR-mode random number pool low-water threshold"
range 12 255
range 12 $(UINT8_MAX)
help
Low water-mark threshold in bytes to trigger entropy generation for
ISR consumers. As soon as the number of available bytes in the

View file

@ -28,7 +28,7 @@ config ENTROPY_STM32_THR_POOL_SIZE
config ENTROPY_STM32_THR_THRESHOLD
int "Thread-mode random number pool low-water threshold"
range 4 255
range 4 $(UINT8_MAX)
help
Low water-mark threshold in bytes to trigger entropy generation for
thread mode consumers. As soon as the number of available bytes in the
@ -46,7 +46,7 @@ config ENTROPY_STM32_ISR_POOL_SIZE
config ENTROPY_STM32_ISR_THRESHOLD
int "ISR-mode random number pool low-water threshold"
range 12 255
range 12 $(UINT8_MAX)
help
Low water-mark threshold in bytes to trigger entropy generation for
ISR consumers. As soon as the number of available bytes in the

View file

@ -76,7 +76,7 @@ config ETH_NXP_S32_RX_IRQ_PACKET_THRESHOLD
config ETH_NXP_S32_RX_IRQ_TIMER_THRESHOLD
int "RX interrupt coalescing timer threshold"
default 60000
range 1 4294967295
range 1 $(UINT32_MAX)
help
RX interrupt coalescing timer threshold, in units of NETC clock cycles.
This value determines the maximum amount of time allowed between a first

View file

@ -22,7 +22,7 @@ config IEEE802154_DW1000_SNIFF_ONT
config IEEE802154_DW1000_SNIFF_OFFT
int "SNIFF off time"
default 16
range 1 255
range 1 $(UINT8_MAX)
help
SNIFF off time in unit of approximate 1 microsecond.

View file

@ -72,8 +72,8 @@ config IEEE802154_NRF5_FCS_IN_LENGTH
config IEEE802154_NRF5_DELAY_TRX_ACC
int "Clock accuracy for delayed operations"
default CLOCK_CONTROL_NRF_ACCURACY if (CLOCK_CONTROL_NRF && (CLOCK_CONTROL_NRF_ACCURACY < 255))
default 255
default CLOCK_CONTROL_NRF_ACCURACY if (CLOCK_CONTROL_NRF && (CLOCK_CONTROL_NRF_ACCURACY < $(UINT8_MAX)))
default $(UINT8_MAX)
help
Accuracy of the clock used for scheduling radio delayed operations (delayed transmission
or delayed reception), in ppm.

View file

@ -42,7 +42,7 @@ config ADXL367_INACTIVITY_THRESHOLD
config ADXL367_ACTIVITY_TIME
int "Activity time"
range 0 255
range 0 $(UINT8_MAX)
default 100
help
The activity timer implements a robust activity detection that
@ -53,7 +53,7 @@ config ADXL367_ACTIVITY_TIME
config ADXL367_INACTIVITY_TIME
int "In-activity time"
range 0 65535
range 0 $(UINT16_MAX)
default 100
help
The time that all enabled axes must be lower than the inactivity

View file

@ -51,7 +51,7 @@ config ADXL372_INACTIVITY_THRESHOLD
config ADXL372_ACTIVITY_TIME
int "Activity time"
range 0 255
range 0 $(UINT8_MAX)
default 1
help
The activity timer implements a robust activity detection that
@ -63,7 +63,7 @@ config ADXL372_ACTIVITY_TIME
config ADXL372_INACTIVITY_TIME
int "In-activity time"
range 0 255
range 0 $(UINT8_MAX)
default 2
help
The time that all enabled axes must be lower than the inactivity

View file

@ -42,7 +42,7 @@ config UART_$(nrfx_uart_num)_NRF_TX_BUFFER_SIZE
int "Size of RAM buffer"
depends on HAS_HW_NRF_UARTE$(nrfx_uart_num)
depends on UART_NRFX_UARTE_LEGACY_SHIM
range 1 65535
range 1 $(UINT16_MAX)
default 32
help
Size of the transmit buffer for API function: fifo_fill.
@ -97,7 +97,7 @@ config UART_$(nrfx_uart_num)_RX_CACHE_SIZE
depends on !UART_NRFX_UARTE_LEGACY_SHIM
default 32 if UART_$(nrfx_uart_num)_HAS_RX_CACHE_SECTION
default 5
range 5 255
range 5 $(UINT8_MAX)
help
For UARTE, RX cache buffer is used when provided RX buffer is not located
in memory which can be used by the EasyDMA. It is also used to store

View file

@ -15,7 +15,7 @@ config OPTEE
config OPTEE_MAX_NOTIF
int "Max number of OP-TEE notifications"
depends on OPTEE
default 255
default $(UINT8_MAX)
help
Sets the maximum notifications from OP-TEE to the Normal World. OP-TEE using
this mechanism for the synchronization.

View file

@ -53,7 +53,7 @@ if WDT_COUNTER
config WDT_COUNTER_CH_COUNT
int "Maximum number of supported channel"
default 4
range 1 255
range 1 $(UINT8_MAX)
help
Note that actual channel count will be limited to number of channels
supported by the counter device which is used for watchdog.

View file

@ -638,7 +638,7 @@ config TIMESLICING
config TIMESLICE_SIZE
int "Time slice size (in ms)"
default 0
range 0 2147483647
range 0 $(INT32_MAX)
depends on TIMESLICING
help
This option specifies the maximum amount of time a thread can execute

View file

@ -8,7 +8,7 @@ menu "Memory Domains"
config MAX_DOMAIN_PARTITIONS
int "Maximum number of partitions per memory domain"
default 16
range 0 255
range 0 $(UINT8_MAX)
depends on USERSPACE
help
Configure the maximum number of partitions per memory domain.

View file

@ -31,7 +31,7 @@ config MSG_SIZE_MAX
config MQUEUE_NAMELEN_MAX
int "Maximum POSIX message queue name size"
default 16
range 2 255
range 2 $(UINT8_MAX)
help
Mention size of message queue name in number of characters.

View file

@ -11,8 +11,8 @@ if POSIX_SEMAPHORES
config POSIX_SEM_VALUE_MAX
int "Maximum semaphore value"
default 32767
range 1 32767
default $(INT16_MAX)
range 1 $(INT16_MAX)
help
Maximum semaphore count in POSIX compliant Application.
@ -28,7 +28,7 @@ config POSIX_SEM_NSEMS_MAX
config POSIX_SEM_NAMELEN_MAX
int "Maximum semaphore name length"
default 16
range 2 255
range 2 $(UINT8_MAX)
help
Maximum length of name for a named semaphore.
The max value of 255 corresponds to {NAME_MAX}.

View file

@ -66,7 +66,7 @@ config OPENTHREAD_MAX_CHILDREN
config OPENTHREAD_MAX_IP_ADDR_PER_CHILD
int "The maximum number of IPv6 address registrations per child"
range 4 255
range 4 $(UINT8_MAX)
default 6
config OPENTHREAD_CONFIG_PLATFORM_INFO
@ -99,8 +99,8 @@ config OPENTHREAD_MIN_RECEIVE_ON_AFTER
config OPENTHREAD_PLATFORM_CSL_UNCERT
int "CSL uncertainty"
default 255
range 0 255
default $(UINT8_MAX)
range 0 $(UINT8_MAX)
help
The fixed uncertainty of the Device for scheduling CSL Transmissions in units of 10 microseconds.

View file

@ -16,10 +16,10 @@ config BT_BUF_ACL_TX_COUNT
default 4
config BT_BUF_CMD_TX_SIZE
default 255
default $(UINT8_MAX)
config BT_BUF_EVT_RX_SIZE
default 255
default $(UINT8_MAX)
config BT_BUF_ACL_TX_SIZE
default 251

View file

@ -16,10 +16,10 @@ config BT_BUF_ACL_TX_COUNT
default 4
config BT_BUF_CMD_TX_SIZE
default 255
default $(UINT8_MAX)
config BT_BUF_EVT_RX_SIZE
default 255
default $(UINT8_MAX)
config BT_BUF_ACL_TX_SIZE
default 251

View file

@ -52,7 +52,7 @@ config SOC_ATMEL_SAM_PLLA_MULA
config SOC_ATMEL_SAM_PLLA_DIVA
int "PLL DIVA"
default 1
range 1 255
range 1 $(UINT8_MAX)
help
This is the divider (DIVA) used by the PLL.
The processor clock is (MAINCK * (MULA + 1) / DIVA).

View file

@ -45,8 +45,8 @@ config CC13X2_CC26X2_BOOTLOADER_BACKDOOR_ENABLE
config CC13X2_CC26X2_BOOTLOADER_BACKDOOR_PIN
int "ROM bootloader backdoor pin"
depends on CC13X2_CC26X2_BOOTLOADER_BACKDOOR_ENABLE
range 0 255
default 255
range 0 $(UINT8_MAX)
default $(UINT8_MAX)
help
Set the pin that is level checked if the bootloader backdoor is
enabled.

View file

@ -45,8 +45,8 @@ config CC13X2_CC26X2_BOOTLOADER_BACKDOOR_ENABLE
config CC13X2_CC26X2_BOOTLOADER_BACKDOOR_PIN
int "ROM bootloader backdoor pin"
depends on CC13X2_CC26X2_BOOTLOADER_BACKDOOR_ENABLE
range 0 255
default 255
range 0 $(UINT8_MAX)
default $(UINT8_MAX)
help
Set the pin that is level checked if the bootloader backdoor is
enabled.

View file

@ -83,14 +83,14 @@ config BT_ISO_MAX_CHAN
config BT_ISO_TX_BUF_COUNT
int "Number of Isochronous TX buffers"
default 1
range 1 255
range 1 $(UINT8_MAX)
help
Number of buffers available for outgoing Isochronous channel SDUs.
config BT_ISO_TX_FRAG_COUNT
int "Number of ISO TX fragment buffers"
default 2
range 0 255
range 0 $(UINT8_MAX)
help
Number of buffers available for fragments of TX buffers. Warning:
setting this to 0 means that the application must ensure that
@ -114,7 +114,7 @@ config BT_ISO_TX_MTU
config BT_ISO_RX_BUF_COUNT
int "Number of Isochronous RX buffers"
default 1
range 1 255
range 1 $(UINT8_MAX)
help
Number of buffers available for incoming Isochronous channel SDUs.

View file

@ -15,7 +15,7 @@ if BT_ASCS
config BT_ASCS_ASE_SNK_COUNT
int "Number of Audio Stream Endpoint Sink Characteristics"
default 2
range 0 255
range 0 $(UINT8_MAX)
help
An ASE Sink characteristic represents the state of an ASE, which is
coupled to a single direction of a unicast Audio Stream.
@ -23,7 +23,7 @@ config BT_ASCS_ASE_SNK_COUNT
config BT_ASCS_ASE_SRC_COUNT
int "Number of Audio Stream Endpoint Source Characteristics"
default 2
range 0 255
range 0 $(UINT8_MAX)
help
An ASE Source characteristic represents the state of an ASE, which is
coupled to a single direction of a unicast Audio Stream.
@ -41,7 +41,7 @@ config BT_ASCS_ASE_SRC
config BT_ASCS_MAX_ACTIVE_ASES
int "Number of simultaneously supported ASE sessions"
default BT_ISO_MAX_CHAN
range 1 65535
range 1 $(UINT16_MAX)
help
The number of simultanesouly supported active ASEs, in particular
meaning the number of ASEs that are allowed to be in a non-idle state at

View file

@ -40,7 +40,7 @@ config BT_BAP_UNICAST_CLIENT
config BT_AUDIO_CODEC_CFG_MAX_DATA_SIZE
int "Codec Specific Configuration Data Size"
default 19
range 0 255
range 0 $(UINT8_MAX)
help
Number of octets to support for Codec Specific Configuration data.
The default value 19 matches the required fields for the LC3 codec.
@ -48,7 +48,7 @@ config BT_AUDIO_CODEC_CFG_MAX_DATA_SIZE
config BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE
int "Codec Specific Configuration Metadata Size"
default 4
range 0 255
range 0 $(UINT8_MAX)
help
Number of octets to support for Codec Specific Configuration metadata.
@ -65,7 +65,7 @@ config BT_BAP_BASS_MAX_SUBGROUPS
config BT_AUDIO_CODEC_CAP_MAX_DATA_SIZE
int "Codec Capabilities Data Size"
default 19
range 0 255
range 0 $(UINT8_MAX)
help
Number of octets to support for Codec Specific Capabilities data.
The default value 19 matches the required fields for the LC3 codec.
@ -73,7 +73,7 @@ config BT_AUDIO_CODEC_CAP_MAX_DATA_SIZE
config BT_AUDIO_CODEC_CAP_MAX_METADATA_SIZE
int "Codec Capabilities Metadata Size"
default 4
range 0 255
range 0 $(UINT8_MAX)
help
Number of octets to support for Codec Specific Capabilities metadata.
@ -101,7 +101,7 @@ config BT_BAP_UNICAST_CLIENT_GROUP_STREAM_COUNT
config BT_BAP_UNICAST_CLIENT_ASE_SNK_COUNT
int "Basic Audio Profile ASE Sink count"
default 2
range 0 255
range 0 $(UINT8_MAX)
help
This option enables caching a number of Audio Stream Endpoint Sink
instances for Basic Audio Profile on a per connection basis.
@ -109,7 +109,7 @@ config BT_BAP_UNICAST_CLIENT_ASE_SNK_COUNT
config BT_BAP_UNICAST_CLIENT_ASE_SRC_COUNT
int "Basic Audio Profile ASE Source count"
default 2
range 0 255
range 0 $(UINT8_MAX)
help
This option enables caching a number of Audio Stream Endpoint Source
instances for Basic Audio Profile on a per connection basis.
@ -255,7 +255,7 @@ if BT_BAP_BROADCAST_ASSISTANT
config BT_BAP_BROADCAST_ASSISTANT_RECV_STATE_COUNT
int "Broadcast Assistant Max Receive State Count"
default 1
range 1 255
range 1 $(UINT8_MAX)
help
Sets the number of maximum receive stat characteristics that will be
discovered and ready to use. Each characteristic may hold information

View file

@ -37,7 +37,7 @@ config BT_CSIP_SET_MEMBER_ENC_SIRK_SUPPORT
config BT_CSIP_SET_MEMBER_MAX_INSTANCE_COUNT
int "Coordinated Set Identification Profle max service instance count"
default 1
range 1 255
range 1 $(UINT8_MAX)
help
This option sets the maximum number of instances of Coordinated Set
Identification Services. If the service is declared as primary service

View file

@ -23,7 +23,7 @@ config BT_HAS_FEATURES_NOTIFIABLE
config BT_HAS_PRESET_COUNT
int "Preset record list size"
default 2
range 0 255
range 0 $(UINT8_MAX)
help
This option sets the number of Hearing Access Service Presets
that can be registered. Setting this value to 0 disables Presets support.

View file

@ -31,7 +31,7 @@ if BT_MCC
config BT_MCC_MEDIA_PLAYER_NAME_MAX
int "Max length of media player name"
default 20
range 1 255
range 1 $(UINT8_MAX)
help
Sets the maximum number of bytes (including the null termination) of
the name of the media player. If the name is longer, the media
@ -40,7 +40,7 @@ config BT_MCC_MEDIA_PLAYER_NAME_MAX
config BT_MCC_ICON_URL_MAX
int "Max length of media player icon URL"
default 40
range 1 255
range 1 $(UINT8_MAX)
help
Sets the maximum number of bytes (including the null termination) of
the media player icon URL. If the URL is longer, the media control
@ -49,7 +49,7 @@ config BT_MCC_ICON_URL_MAX
config BT_MCC_TRACK_TITLE_MAX
int "Max length of the title of a track"
default 40
range 1 255
range 1 $(UINT8_MAX)
help
Sets the maximum number of bytes (including the null termination) of
the title of any track in the media player. If the title is longer,
@ -58,7 +58,7 @@ config BT_MCC_TRACK_TITLE_MAX
config BT_MCC_SEGMENT_NAME_MAX
int "Max length of the name of a track segment"
default 25
range 1 255
range 1 $(UINT8_MAX)
help
Sets the maximum number of bytes (including the null termination)
of the name of any track segment in the media player. If the name is

View file

@ -27,7 +27,7 @@ config BT_MPL_MEDIA_PLAYER_NAME
config BT_MPL_MEDIA_PLAYER_NAME_MAX
int "Max length of media player name"
default 20
range 1 255
range 1 $(UINT8_MAX)
help
Sets the maximum number of bytes (including the null termination) of
the name of the media player.
@ -41,7 +41,7 @@ config BT_MPL_ICON_URL
config BT_MPL_ICON_URL_MAX
int "Max length of media player icon URL"
default 40
range 1 255
range 1 $(UINT8_MAX)
help
Sets the maximum number of bytes (including the null termination) of
the media player icon URL.
@ -49,7 +49,7 @@ config BT_MPL_ICON_URL_MAX
config BT_MPL_TRACK_TITLE_MAX
int "Max length of the title of a track"
default 40
range 1 255
range 1 $(UINT8_MAX)
help
Sets the maximum number of bytes (including the null termination) of
the title of any track in the media player.
@ -57,7 +57,7 @@ config BT_MPL_TRACK_TITLE_MAX
config BT_MPL_SEGMENT_NAME_MAX
int "Max length of the name of a track segment"
default 25
range 1 255
range 1 $(UINT8_MAX)
help
Sets the maximum number of bytes (including the null termination)
of the name of any track segment in the media player.
@ -65,7 +65,7 @@ config BT_MPL_SEGMENT_NAME_MAX
config BT_MPL_GROUP_TITLE_MAX
int "Max length of the title of a group of tracks"
default BT_MPL_TRACK_TITLE_MAX
range 1 255
range 1 $(UINT8_MAX)
help
Sets the maximum number of bytes (including the null termination) of
the title of any group in the media player.

View file

@ -67,7 +67,7 @@ config BT_TBS_URI_SCHEMES_LIST
config BT_TBS_SIGNAL_STRENGTH_INTERVAL
int "Telephone Bearer Service Signal Strength Reporting Interval"
default 0
range 0 255
range 0 $(UINT8_MAX)
help
Sets the interval of reporting the signal strength in seconds.
If the value is 0, the signal will not be reported.
@ -101,7 +101,7 @@ config BT_TBS_MAX_CALLS
config BT_TBS_BEARER_COUNT
int "How many bearer instances the device instantiates"
default 1
range 1 255
range 1 $(UINT8_MAX)
help
Sets the number of TBS instances that are instantiated

View file

@ -8,7 +8,7 @@ menu "Bluetooth buffer configuration"
config BT_BUF_ACL_TX_SIZE
int "Maximum supported ACL size for outgoing data"
range 27 65535
range 27 $(UINT16_MAX)
default 37 if BT_MESH_GATT
default 27
help
@ -36,7 +36,7 @@ config BT_BUF_ACL_TX_COUNT
default 7 if BT_HCI_RAW
default 4 if BT_MESH_GATT
default 3
range 1 255
range 1 $(UINT8_MAX)
help
Number of outgoing ACL data buffers sent from the Host to the
Controller. This determines the maximum amount of data packets the
@ -55,9 +55,9 @@ config BT_BUF_ACL_RX_SIZE
default 69 if BT_SMP
default 37 if BT_MESH_GATT
default 27
range 70 65535 if BT_EATT
range 69 65535 if BT_SMP
range 27 65535
range 70 $(UINT16_MAX) if BT_EATT
range 69 $(UINT16_MAX) if BT_SMP
range 27 $(UINT16_MAX)
help
Maximum support ACL size of data packets sent from the Controller to
the Host. This value does not include the HCI ACL header.
@ -100,10 +100,10 @@ config BT_BUF_ACL_RX_COUNT
config BT_BUF_EVT_RX_SIZE
int "Maximum supported HCI Event buffer length"
default 255 if (BT_EXT_ADV && BT_OBSERVER) || BT_PER_ADV_SYNC || BT_DF_CONNECTION_CTE_RX || BT_CLASSIC
default $(UINT8_MAX) if (BT_EXT_ADV && BT_OBSERVER) || BT_PER_ADV_SYNC || BT_DF_CONNECTION_CTE_RX || BT_CLASSIC
# LE Read Supported Commands command complete event.
default 68
range 68 255
range 68 $(UINT8_MAX)
help
Maximum supported HCI event buffer size. This value does not include
the HCI Event header.
@ -117,17 +117,17 @@ config BT_BUF_EVT_RX_COUNT
int "Number of HCI Event buffers"
default 20 if (BT_MESH && !(BT_BUF_EVT_DISCARDABLE_COUNT > 0))
default 10
range 2 255
range 2 $(UINT8_MAX)
help
Number of buffers available for incoming HCI events from the
Controller.
config BT_BUF_EVT_DISCARDABLE_SIZE
int "Maximum supported discardable HCI Event buffer length"
range 43 255 if !BT_EXT_ADV
range 58 255 if BT_EXT_ADV
range 43 $(UINT8_MAX) if !BT_EXT_ADV
range 58 $(UINT8_MAX) if BT_EXT_ADV
# LE Extended Advertising Report event
default 255 if BT_CLASSIC
default $(UINT8_MAX) if BT_CLASSIC
# Le Advertising Report event
default 43 if !BT_EXT_ADV
default 58 if BT_EXT_ADV
@ -140,7 +140,7 @@ config BT_BUF_EVT_DISCARDABLE_SIZE
config BT_BUF_EVT_DISCARDABLE_COUNT
int "Number of discardable HCI Event buffers"
range 1 255
range 1 $(UINT8_MAX)
default 20 if BT_MESH
default 3
depends on !BT_HCI_RAW
@ -154,13 +154,13 @@ config BT_BUF_EVT_DISCARDABLE_COUNT
config BT_BUF_CMD_TX_SIZE
int "Maximum support HCI Command buffer length"
default 255 if (BT_EXT_ADV || BT_CLASSIC || BT_ISO_CENTRAL)
default $(UINT8_MAX) if (BT_EXT_ADV || BT_CLASSIC || BT_ISO_CENTRAL)
# LE Set Connection CTE Receive Parameters. Value required to store max allowed number
# of antenna ids for platforms other than Nordic.
default 83 if (!BT_EXT_ADV && !BT_CLASSIC && BT_CTLR_DF && BT_CTLR_DF_CONN_CTE_REQ && !SOC_COMPATIBLE_NRF)
# LE Generate DHKey v2 command
default 65
range 65 255
range 65 $(UINT8_MAX)
help
Maximum data size for each HCI Command buffer. This value does not
include the HCI Command header.

View file

@ -214,7 +214,7 @@ config BT_CTLR_ISO_RX_BUFFERS
config BT_CTLR_ISO_TX_BUFFERS
int "Number of Isochronous Tx buffers"
depends on BT_CTLR_ADV_ISO || BT_CTLR_CONN_ISO
range 1 255
range 1 $(UINT8_MAX)
default BT_ISO_TX_BUF_COUNT if BT_ISO
default 3
help
@ -225,7 +225,7 @@ config BT_CTLR_ISO_TX_BUFFER_SIZE
int "Isochronous Tx buffer size"
depends on BT_CTLR_ADV_ISO || BT_CTLR_CONN_ISO
range 9 4103 if BT_LL_SW_SPLIT
range 1 65535
range 1 $(UINT16_MAX)
default 9 if BT_LL_SW_SPLIT
default 1
help
@ -750,7 +750,7 @@ config BT_CTLR_SYNC_PERIODIC_ADV_LIST
config BT_CTLR_SYNC_PERIODIC_ADV_LIST_SIZE
int "LE Periodic Advertiser List size"
depends on BT_CTLR_SYNC_PERIODIC_ADV_LIST
range 1 255
range 1 $(UINT8_MAX)
default 8
help
Set Periodic Advertiser List size, this will be return in the HCI LE
@ -987,8 +987,8 @@ config BT_CTLR_CONN_ISO_STREAMS_MAX_NSE
config BT_CTLR_CONN_ISO_STREAMS_MAX_FT
int "LE Connected Isochronous Streams max flush timeout"
depends on BT_CTLR_CONN_ISO
range 1 255
default 255
range 1 $(UINT8_MAX)
default $(UINT8_MAX)
help
Maximum number of CIS flush timeout events.

View file

@ -196,9 +196,9 @@ if BT_CTLR_ADV_EXT
config BT_CTLR_ADV_EXT_RX_PDU_LEN_MAX
int "Maximum Advertising Extensions Receive PDU Length"
depends on BT_OBSERVER
range 255 255 if BT_HCI_RAW
range 31 255
default 255
range $(UINT8_MAX) $(UINT8_MAX) if BT_HCI_RAW
range 31 $(UINT8_MAX)
default $(UINT8_MAX)
help
Maximum Advertising Extensions Receive PDU Length.
@ -714,7 +714,7 @@ config BT_CTLR_CENTRAL_SPACING
int "Central Connection Spacing"
depends on BT_CTLR_SCHED_ADVANCED
default 0
range 0 65535
range 0 $(UINT16_MAX)
help
The preferred connection spacing between multiple simultaneous central
roles in microseconds. The Controller will calculate the required time
@ -895,7 +895,7 @@ config BT_CTLR_LLCP_PER_CONN_TX_CTRL_BUF_NUM
config BT_CTLR_LLCP_COMMON_TX_CTRL_BUF_NUM
int "Number of tx control buffers to be available across all connections"
default 0
range 0 255
range 0 $(UINT8_MAX)
help
Set the number control buffers that is to be available for tx.
This defines the size of the pool of tx buffers available
@ -908,7 +908,7 @@ config BT_CTLR_LLCP_LOCAL_PROC_CTX_BUF_NUM
default 6 if (BT_AUTO_PHY_UPDATE=y || BT_AUTO_DATA_LEN_UPDATE=y) && BT_CTLR_LLCP_CONN < 4
default 2 if BT_CTLR_LLCP_CONN = 1
default BT_CTLR_LLCP_CONN if BT_CTLR_LLCP_CONN > 1
range 2 255
range 2 $(UINT8_MAX)
help
Set the number control procedure contexts that is to be available.
This defines the size of the pool of control procedure contexts available
@ -918,7 +918,7 @@ config BT_CTLR_LLCP_LOCAL_PROC_CTX_BUF_NUM
config BT_CTLR_LLCP_REMOTE_PROC_CTX_BUF_NUM
int "Number of remote control procedure contexts to be available across all connections"
default BT_CTLR_LLCP_CONN
range 1 255
range 1 $(UINT8_MAX)
help
Set the number control procedure contexts that is to be available.
This defines the size of the pool of control procedure contexts available
@ -952,7 +952,7 @@ config BT_CTLR_THROUGHPUT
config BT_CTLR_FORCE_MD_COUNT
int "Forced MD bit count" if !BT_CTLR_FORCE_MD_AUTO
depends on !BT_CTLR_LOW_LAT_ULL
range 0 255
range 0 $(UINT8_MAX)
default 1 if BT_CTLR_FORCE_MD_AUTO
default 0
help
@ -1226,7 +1226,7 @@ config BT_RX_USER_PDU_LEN
int "Maximum supported proprietary PDU buffer length"
depends on BT_CTLR_USER_EXT
default 2
range 2 255
range 2 $(UINT8_MAX)
help
Maximum data size for each proprietary PDU. This size includes link layer
header and payload. It does not account for HCI event headers as these

View file

@ -287,7 +287,7 @@ if BT_CONN
config BT_CONN_TX_MAX
int "Maximum number of pending TX buffers with a callback"
default BT_BUF_ACL_TX_COUNT
range BT_BUF_ACL_TX_COUNT 255
range BT_BUF_ACL_TX_COUNT $(UINT8_MAX)
help
Maximum number of pending TX buffers that have an associated
callback. Normally this can be left to the default value, which
@ -457,7 +457,7 @@ config BT_RPA_TIMEOUT
int "Resolvable Private Address timeout"
depends on BT_PRIVACY
default 900
range 1 65535
range 1 $(UINT16_MAX)
help
This option defines how often resolvable private address is rotated.
Value is provided in seconds and defaults to 900 seconds (15 minutes).
@ -719,7 +719,7 @@ config BT_CREATE_CONN_TIMEOUT
config BT_CONN_PARAM_UPDATE_TIMEOUT
int "Peripheral connection parameter update timeout in milliseconds"
default 5000
range 0 65535
range 0 $(UINT16_MAX)
help
The value is a timeout used by peripheral device to wait until it
starts the first connection parameters update procedure after a
@ -735,7 +735,7 @@ config BT_CONN_PARAM_UPDATE_TIMEOUT
config BT_CONN_PARAM_RETRY_COUNT
int "Peripheral connection parameter update retry attempts"
default 3
range 0 255
range 0 $(UINT8_MAX)
help
This value corresponds to number of times to retry connection
parameter update to attain the preferred value set in GATT
@ -744,7 +744,7 @@ config BT_CONN_PARAM_RETRY_COUNT
config BT_CONN_PARAM_RETRY_TIMEOUT
int "Peripheral connection parameter update retry timeout in milliseconds"
default 5000
range 0 65535
range 0 $(UINT16_MAX)
help
The value is a timeout used by peripheral device to wait until retry
to attempt requesting again the preferred connection parameters.
@ -836,7 +836,7 @@ config BT_DEVICE_APPEARANCE_GATT_WRITABLE
config BT_DEVICE_APPEARANCE
int "Bluetooth device appearance"
range 0 65535
range 0 $(UINT16_MAX)
default 0
help
Bluetooth device appearance. For the list of possible values please

View file

@ -17,7 +17,7 @@ config BT_ATT_TX_COUNT
int "Number of ATT buffers"
default BT_BUF_ACL_TX_COUNT
default 3
range 1 255
range 1 $(UINT8_MAX)
help
These buffers are only used for sending anything over ATT.
Requests, responses, indications, confirmations, notifications.
@ -231,14 +231,14 @@ if BT_GAP_PERIPHERAL_PREF_PARAMS
config BT_PERIPHERAL_PREF_MIN_INT
int "Peripheral preferred minimum connection interval in 1.25ms units"
default 24
range 6 65535 if !BT_CONN_PARAM_ANY
range 6 $(UINT16_MAX) if !BT_CONN_PARAM_ANY
help
Range 3200 to 65534 is invalid. 65535 represents no specific value.
config BT_PERIPHERAL_PREF_MAX_INT
int "Peripheral preferred maximum connection interval in 1.25ms units"
default 40
range 6 65535 if !BT_CONN_PARAM_ANY
range 6 $(UINT16_MAX) if !BT_CONN_PARAM_ANY
help
Range 3200 to 65534 is invalid. 65535 represents no specific value.
@ -250,7 +250,7 @@ config BT_PERIPHERAL_PREF_LATENCY
config BT_PERIPHERAL_PREF_TIMEOUT
int "Peripheral preferred supervision timeout in 10ms units"
default 42
range 10 65535 if !BT_CONN_PARAM_ANY
range 10 $(UINT16_MAX) if !BT_CONN_PARAM_ANY
help
It is up to user to provide valid timeout which pass required minimum
value: in milliseconds it shall be larger than

View file

@ -9,14 +9,14 @@ menu "L2CAP Options"
config BT_L2CAP_TX_BUF_COUNT
int "Number of L2CAP TX buffers"
default BT_BUF_ACL_TX_COUNT
range 2 255
range 2 $(UINT8_MAX)
help
Number of buffers available for outgoing L2CAP packets.
config BT_L2CAP_TX_FRAG_COUNT
int "Number of L2CAP TX fragment buffers"
default 2
range 0 255
range 0 $(UINT8_MAX)
help
Number of buffers available for fragments of TX buffers. Warning:
setting this to 0 means that the application must ensure that

View file

@ -36,7 +36,7 @@ config BT_RFCOMM_L2CAP_MTU
int "L2CAP MTU for RFCOMM frames"
depends on BT_RFCOMM
default BT_BUF_ACL_RX_SIZE
range 23 32767
range 23 $(INT16_MAX)
help
Maximum size of L2CAP PDU for RFCOMM frames.
RX MTU will be truncated to account for the L2CAP PDU header.
@ -44,7 +44,7 @@ config BT_RFCOMM_L2CAP_MTU
config BT_RFCOMM_TX_MAX
int "Maximum number of pending TX buffers for RFCOMM"
default BT_CONN_TX_MAX
range BT_CONN_TX_MAX 255
range BT_CONN_TX_MAX $(UINT8_MAX)
help
Maximum number of pending TX buffers that have an associated
sending buf. Normally this can be left to the default value, which
@ -82,7 +82,7 @@ if BT_HFP_AG
config BT_HFP_AG_TX_BUF_COUNT
int "Maximum number of TX buffers for HFP AG [EXPERIMENTAL]"
default BT_RFCOMM_TX_MAX
range BT_RFCOMM_TX_MAX 255
range BT_RFCOMM_TX_MAX $(UINT8_MAX)
help
Maximum number of pending TX buffers that have an associated
sending buf. Normally this can be left to the default value, which
@ -129,7 +129,7 @@ config BT_HFP_AG_ALERTING_TIMEOUT
config BT_HFP_AG_PHONE_NUMBER_MAX_LEN
int "Supported max length of phone number for HFP AG [EXPERIMENTAL]"
default 32
range 1 255
range 1 $(UINT8_MAX)
help
Supported max length of phone number for HFP AG.

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.

View file

@ -13,7 +13,7 @@ if DAP
config CMSIS_DAP_PACKET_COUNT
int "Maximum packet buffers for request and response data."
default 4
range 1 255
range 1 $(UINT8_MAX)
help
Maximum packet buffers for request and response data.

View file

@ -135,8 +135,8 @@ config FS_FATFS_FF_USE_LFN
config FS_FATFS_MAX_LFN
int "Max filename length"
range 12 255
default 255
range 12 $(UINT8_MAX)
default $(UINT8_MAX)
help
The working buffer occupies (FS_FATFS_MAX_LFN + 1) * 2 bytes and
additional 608 bytes at exFAT enabled.

View file

@ -5,8 +5,8 @@ if IPC_SERVICE_BACKEND_ICMSG_ME_INITIATOR || IPC_SERVICE_BACKEND_ICMSG_ME_FOLLOW
config IPC_SERVICE_BACKEND_ICMSG_ME_SEND_BUF_SIZE
int "Size of sending buffer size"
range 1 65535
default 255
range 1 $(UINT16_MAX)
default $(UINT8_MAX)
help
Size of a static buffer used for preparring data to send in sending
function. If you are sure that your application never sends data

View file

@ -75,7 +75,7 @@ config MCUMGR_TRANSPORT_BT_CONN_PARAM_CONTROL_TIMEOUT
config MCUMGR_TRANSPORT_BT_CONN_PARAM_CONTROL_RESTORE_TIME
int "Connection parameters restore time in milliseconds"
default 5000
range 1000 65535
range 1000 $(UINT16_MAX)
help
The value is a time of inactivity on the SMP characteristic after which
connection parameters are restored to peripheral preferred values

View file

@ -59,14 +59,14 @@ config OSDP_PD_ID_VENDOR_CODE
config OSDP_PD_ID_MODEL
int "PD Product Model Number"
default 1
range 0 255
range 0 $(UINT8_MAX)
help
Manufacturer's model number. Least 8 bits are valid.
config OSDP_PD_ID_VERSION
int "PD Product Version"
default 1
range 0 255
range 0 $(UINT8_MAX)
help
Manufacturer's version of this product. Least 8 bits are valid.

View file

@ -14,7 +14,7 @@ if NET_IPV4
config NET_INITIAL_TTL
int "Initial IPv4 time to live value for unicast packets"
default 64
range 0 255
range 0 $(UINT8_MAX)
help
The value should normally be > 0. The device receiving the IPv4
packet will decrement the value and will drop the packet if the TTL
@ -24,7 +24,7 @@ config NET_INITIAL_TTL
config NET_INITIAL_MCAST_TTL
int "Initial IPv4 time to live value for multicast packets"
default 1
range 0 255
range 0 $(UINT8_MAX)
help
The value should normally be > 0. The device receiving the IPv4
packet will decrement the value and will drop the packet if the TTL

View file

@ -49,7 +49,7 @@ config NET_IPV6_MTU
config NET_INITIAL_HOP_LIMIT
int "Initial IPv6 hop limit value for unicast packets"
default 64
range 0 255
range 0 $(UINT8_MAX)
help
The value should normally be > 0. The device receiving the IPv6
packet will decrement the value and will drop the packet if the hop
@ -59,7 +59,7 @@ config NET_INITIAL_HOP_LIMIT
config NET_INITIAL_MCAST_HOP_LIMIT
int "Initial IPv6 hop limit value for multicast packets"
default 1
range 0 255
range 0 $(UINT8_MAX)
help
The value should normally be > 0. The device receiving the IPv6
packet will decrement the value and will drop the packet if the hop

View file

@ -69,7 +69,7 @@ config NET_TCP_ACK_TIMEOUT
int "[DEPRECATED] How long to wait for ACK (in milliseconds)"
depends on NET_TCP
default 1000
range 1 2147483647
range 1 $(INT32_MAX)
help
Deprecated. Use CONFIG_NET_TCP_INIT_RETRANSMISSION_TIMEOUT and
CONFIG_NET_TCP_RETRY_COUNT to control the total timeout at the TCP
@ -119,7 +119,7 @@ config NET_TCP_MAX_SEND_WINDOW_SIZE
int "Maximum sending window size to use"
depends on NET_TCP
default 0
range 0 65535
range 0 $(UINT16_MAX)
help
This value affects how the TCP selects the maximum sending window
size. The default value 0 lets the TCP stack select the value
@ -129,7 +129,7 @@ config NET_TCP_MAX_RECV_WINDOW_SIZE
int "Maximum receive window size to use"
depends on NET_TCP
default 0
range 0 65535
range 0 $(UINT16_MAX)
help
This value defines the maximum TCP receive window size. Increasing
this value can improve connection throughput, but requires more

View file

@ -33,7 +33,7 @@ config NET_VLAN
config NET_VLAN_COUNT
int "Max VLAN tags supported in the system"
default 1
range 1 255
range 1 $(UINT8_MAX)
depends on NET_VLAN
help
How many VLAN tags can be configured.

View file

@ -183,8 +183,8 @@ config NET_GPTP_PATH_TRACE_ELEMENTS
config NET_GPTP_BMCA_PRIORITY1
int "BMCA priority1 value"
default 248 if NET_GPTP_GM_CAPABLE
default 255
range 0 255
default $(UINT8_MAX)
range 0 $(UINT8_MAX)
help
The priority1 attribute of the local clock. It is used in the
Best Master Clock selection Algorithm (BMCA), lower values take
@ -197,7 +197,7 @@ config NET_GPTP_BMCA_PRIORITY1
config NET_GPTP_BMCA_PRIORITY2
int "BMCA priority2 value"
default 248
range 0 255
range 0 $(UINT8_MAX)
help
The priority2 attribute of the local clock. It is used in the BMCA
(Best Master Clock selection Algorithm), lower values take

View file

@ -13,14 +13,14 @@ if NET_L2_PPP
config NET_L2_PPP_TIMEOUT
int "Maximum timeout in ms for Configure-Req"
default 3000
range 1 4294967295
range 1 $(UINT32_MAX)
help
How long to wait Configure-Req.
config NET_L2_PPP_MAX_CONFIGURE_REQ_RETRANSMITS
int "Maximum number of Configure-Req retransmits"
default 10
range 0 4294967295
range 0 $(UINT32_MAX)
help
How many times to resend Configure-Req messages before deciding the
link is not working properly.
@ -28,7 +28,7 @@ config NET_L2_PPP_MAX_CONFIGURE_REQ_RETRANSMITS
config NET_L2_PPP_MAX_TERMINATE_REQ_RETRANSMITS
int "Maximum number of Terminate-Req retransmits"
default 2
range 0 4294967295
range 0 $(UINT32_MAX)
help
How many times to resend Terminate-Req messages before terminating
the link.
@ -36,7 +36,7 @@ config NET_L2_PPP_MAX_TERMINATE_REQ_RETRANSMITS
config NET_L2_PPP_MAX_NACK_LOOPS
int "Maximum number of NACK loops accepted"
default 5
range 0 4294967295
range 0 $(UINT32_MAX)
help
How many times to accept NACK loops.

View file

@ -41,7 +41,7 @@ config NET_DHCPV4_MAX_REQUESTED_OPTIONS
int "Maximum number of requested options"
depends on NET_DHCPV4 && NET_DHCPV4_OPTION_CALLBACKS
default 10
range 3 255
range 3 $(UINT8_MAX)
help
Maximum number of requested options that can be added to the
DHCPv4 request message. The options are added using the
@ -121,7 +121,7 @@ config NET_DHCPV4_SERVER_ADDR_COUNT
config NET_DHCPV4_SERVER_ADDR_LEASE_TIME
int "Lease time for IPv4 addresses assigned by the server (seconds)"
range 0 4294967295
range 0 $(UINT32_MAX)
default 86400
help
Lease time in seconds for IPv4 addresses assigned by the server.
@ -130,7 +130,7 @@ config NET_DHCPV4_SERVER_ADDR_LEASE_TIME
config NET_DHCPV4_SERVER_ADDR_DECLINE_TIME
int "The time IPv4 addresses remains blocked after conflict detection (seconds)"
range 0 4294967295
range 0 $(UINT32_MAX)
default 86400
help
In case IPv4 address becomes blocked (either because of receiving

View file

@ -63,8 +63,8 @@ config DNS_RESOLVER_MAX_SERVERS
config DNS_RESOLVER_MAX_QUERY_LEN
int "Max length of a DNS query"
range 1 255
default 255
range 1 $(UINT8_MAX)
default $(UINT8_MAX)
help
Max length of a DNS query that should be looked up including the
trailing 0. So e.g. "example.com" would have a query len of 12.

View file

@ -494,7 +494,7 @@ endmenu # "Content format supports"
config LWM2M_ENGINE_DEFAULT_LIFETIME
int "LWM2M engine default server connection lifetime"
default 30
range 15 4294967295
range 15 $(UINT32_MAX)
help
Set the default lifetime (in seconds) for the LwM2M library engine.
This is also a minimum lifetime that client accepts. If server sets lifetime
@ -503,7 +503,7 @@ config LWM2M_ENGINE_DEFAULT_LIFETIME
config LWM2M_UPDATE_PERIOD
int "LwM2M engine update period"
default 0
range 0 4294967295
range 0 $(UINT32_MAX)
help
Time period after the previous update or registration when to send the next update message.
This allows modifying lifetime without affecting the update period.
@ -513,7 +513,7 @@ config LWM2M_UPDATE_PERIOD
config LWM2M_SECONDS_TO_UPDATE_EARLY
int "LWM2M Registration Update transmission time before timeout"
default 10
range 1 4294967295
range 1 $(UINT32_MAX)
help
Time in seconds before the registration timeout, when the LWM2M
Registration Update is sent by the engine. In networks with large

View file

@ -13,7 +13,7 @@ if MQTT_SN_LIB
config MQTT_SN_LIB_MAX_PAYLOAD_SIZE
int "Maximum payload size of an MQTT-SN message"
default 255
default $(UINT8_MAX)
config MQTT_SN_LIB_MAX_MSGS
int "Number of preallocated messages"

View file

@ -171,12 +171,12 @@ config PTP_CLOCK_ACCURACY
config PTP_PRIORITY1
int "Value used in the Best TimeTransmitter Clock Algorithm (BTCA)"
default 128
range 0 255
range 0 $(UINT8_MAX)
config PTP_PRIORITY2
int "Value used in the Best TimeTransmitter Clock Algorithm (BTCA)"
default 128
range 0 255
range 0 $(UINT8_MAX)
config PTP_TIME_RECEIVER_ONLY
bool "Configure Clock as timeReceiver PTP Instance"

View file

@ -216,7 +216,7 @@ config NET_SOCKETS_DTLS_MAX_FRAGMENT_LENGTH
config NET_SOCKETS_DTLS_SENDMSG_BUF_SIZE
int "Intermediate buffer size for DTLS sendmsg()"
depends on NET_SOCKETS_ENABLE_DTLS
range 0 65535
range 0 $(UINT16_MAX)
default 0
help
Size of the intermediate buffer for DTLS sendmsg() function. The

View file

@ -24,21 +24,21 @@ config CMSIS_THREAD_MAX_STACK_SIZE
config CMSIS_TIMER_MAX_COUNT
int "Maximum timer count in CMSIS application"
default 5
range 0 255
range 0 $(UINT8_MAX)
help
Mention maximum number of timers in CMSIS compliant application.
config CMSIS_MUTEX_MAX_COUNT
int "Maximum mutex count in CMSIS application"
default 5
range 0 255
range 0 $(UINT8_MAX)
help
Mention maximum number of mutexes in CMSIS compliant application.
config CMSIS_SEMAPHORE_MAX_COUNT
int "Maximum semaphore count in CMSIS application"
default 5
range 0 255
range 0 $(UINT8_MAX)
help
Mention maximum number of semaphores in CMSIS compliant application.

View file

@ -18,7 +18,7 @@ if CMSIS_RTOS_V2
config CMSIS_V2_THREAD_MAX_COUNT
int "Maximum thread count in CMSIS RTOS V2 application"
default 15
range 0 255
range 0 $(UINT8_MAX)
help
Mention max number of threads in CMSIS RTOS V2 compliant application.
There's a limitation on the number of threads due to memory
@ -27,7 +27,7 @@ config CMSIS_V2_THREAD_MAX_COUNT
config CMSIS_V2_THREAD_DYNAMIC_MAX_COUNT
int "Maximum dynamic thread count in CMSIS RTOS V2 application"
default 0
range 0 255
range 0 $(UINT8_MAX)
help
Mention max number of dynamic threads in CMSIS RTOS V2 compliant
application. There's a limitation on the number of threads due to memory
@ -51,28 +51,28 @@ config CMSIS_V2_THREAD_DYNAMIC_STACK_SIZE
config CMSIS_V2_TIMER_MAX_COUNT
int "Maximum timer count in CMSIS RTOS V2 application"
default 5
range 0 255
range 0 $(UINT8_MAX)
help
Mention maximum number of timers in CMSIS RTOS V2 compliant application.
config CMSIS_V2_MUTEX_MAX_COUNT
int "Maximum mutex count in CMSIS RTOS V2 application"
default 5
range 0 255
range 0 $(UINT8_MAX)
help
Mention max number of mutexes in CMSIS RTOS V2 compliant application.
config CMSIS_V2_SEMAPHORE_MAX_COUNT
int "Maximum semaphore count in CMSIS RTOS V2 application"
default 5
range 0 255
range 0 $(UINT8_MAX)
help
Mention max number of semaphores in CMSIS RTOS V2 compliant application.
config CMSIS_V2_MEM_SLAB_MAX_COUNT
int "Maximum mem slab count in CMSIS RTOS V2 application"
default 5
range 0 255
range 0 $(UINT8_MAX)
help
Mention maximum number of memory slabs in CMSIS RTOS V2 compliant application.
@ -85,7 +85,7 @@ config CMSIS_V2_MEM_SLAB_MAX_DYNAMIC_SIZE
config CMSIS_V2_MSGQ_MAX_COUNT
int "Maximum message queue count in CMSIS RTOS V2 application"
default 5
range 0 255
range 0 $(UINT8_MAX)
help
Mention maximum number of message queues in CMSIS RTOS V2 compliant application.
@ -98,7 +98,7 @@ config CMSIS_V2_MSGQ_MAX_DYNAMIC_SIZE
config CMSIS_V2_EVT_FLAGS_MAX_COUNT
int "Maximum event flags count in CMSIS RTOS V2 application"
default 5
range 0 255
range 0 $(UINT8_MAX)
help
Mention maximum number of event flags in CMSIS RTOS V2 compliant application.
endif

View file

@ -70,7 +70,7 @@ config SETTINGS_NVS_NAME_CACHE
config SETTINGS_NVS_NAME_CACHE_SIZE
int "NVS name lookup cache size"
default 128
range 1 65535
range 1 $(UINT16_MAX)
depends on SETTINGS_NVS_NAME_CACHE
help
Number of entries in Settings NVS name cache.

View file

@ -101,7 +101,7 @@ config SHELL_DEFAULT_TERMINAL_HEIGHT
config SHELL_ARGC_MAX
int "Maximum arguments in shell command"
range 3 255
range 3 $(UINT8_MAX)
default 20
help
Maximum number of arguments that can build a command.

View file

@ -320,7 +320,7 @@ config SHELL_MQTT_RX_BUF_SIZE
config SHELL_MQTT_TX_BUF_SIZE
int "TX buffer size"
range 32 65535
range 32 $(UINT16_MAX)
default 256
help
Buffer size for the MQTT data transmission.