Browse Source

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>
pull/76381/head
Pieter De Gendt 1 year ago committed by Anas Nashif
parent
commit
ad63ca284e
  1. 2
      arch/arm/core/cortex_m/Kconfig
  2. 2
      arch/x86/Kconfig
  3. 4
      arch/x86/core/Kconfig.intel64
  4. 4
      boards/ambiq/apollo4p_blue_kxr_evb/Kconfig.defconfig
  5. 2
      boards/espressif/esp32_devkitc_wroom/Kconfig.defconfig
  6. 2
      boards/espressif/esp32_devkitc_wrover/Kconfig.defconfig
  7. 2
      boards/espressif/esp32_ethernet_kit/Kconfig.defconfig
  8. 2
      boards/espressif/esp32c3_devkitm/Kconfig.defconfig
  9. 2
      boards/espressif/esp32c6_devkitc/Kconfig.defconfig
  10. 2
      boards/espressif/esp32s3_devkitc/Kconfig.defconfig
  11. 2
      boards/espressif/esp32s3_devkitm/Kconfig.defconfig
  12. 2
      boards/espressif/esp_wrover_kit/Kconfig.defconfig
  13. 2
      boards/hardkernel/odroid_go/Kconfig.defconfig
  14. 2
      boards/heltec/heltec_wifi_lora32_v2/Kconfig.defconfig
  15. 2
      boards/heltec/heltec_wireless_stick_lite_v3/Kconfig.defconfig
  16. 2
      boards/kincony/kincony_kc868_a32/Kconfig.defconfig
  17. 2
      boards/lilygo/ttgo_lora32/Kconfig.defconfig
  18. 2
      boards/lilygo/ttgo_t8c3/Kconfig.defconfig
  19. 2
      boards/luatos/esp32c3_luatos_core/Kconfig.defconfig
  20. 2
      boards/luatos/esp32s3_luatos_core/Kconfig.defconfig
  21. 2
      boards/m5stack/m5stack_atom_lite/Kconfig.defconfig
  22. 2
      boards/m5stack/m5stack_atoms3/Kconfig.defconfig
  23. 2
      boards/m5stack/m5stack_atoms3_lite/Kconfig.defconfig
  24. 2
      boards/m5stack/m5stack_core2/Kconfig.defconfig
  25. 2
      boards/m5stack/m5stack_stamps3/Kconfig.defconfig
  26. 2
      boards/m5stack/m5stickc_plus/Kconfig.defconfig
  27. 2
      boards/m5stack/stamp_c3/Kconfig.defconfig
  28. 2
      boards/olimex/olimex_esp32_evb/Kconfig.defconfig
  29. 2
      boards/others/icev_wireless/Kconfig.defconfig
  30. 2
      boards/seeed/xiao_esp32c3/Kconfig.defconfig
  31. 2
      boards/seeed/xiao_esp32s3/Kconfig.defconfig
  32. 2
      boards/vcc-gnd/yd_esp32/Kconfig.defconfig
  33. 2
      boards/waveshare/esp32s3_touch_lcd_1_28/Kconfig.defconfig
  34. 2
      drivers/bluetooth/hci/Kconfig.infineon
  35. 2
      drivers/clock_control/Kconfig.nrf
  36. 2
      drivers/display/Kconfig.microbit
  37. 2
      drivers/display/Kconfig.ssd1306
  38. 4
      drivers/entropy/Kconfig.cc13xx_cc26xx
  39. 4
      drivers/entropy/Kconfig.nrf5
  40. 4
      drivers/entropy/Kconfig.smartbond
  41. 4
      drivers/entropy/Kconfig.stm32
  42. 2
      drivers/ethernet/Kconfig.nxp_s32_netc
  43. 2
      drivers/ieee802154/Kconfig.dw1000
  44. 4
      drivers/ieee802154/Kconfig.nrf5
  45. 4
      drivers/sensor/adi/adxl367/Kconfig
  46. 4
      drivers/sensor/adi/adxl372/Kconfig
  47. 4
      drivers/serial/Kconfig.nrfx_uart_instance
  48. 2
      drivers/tee/optee/Kconfig
  49. 2
      drivers/watchdog/Kconfig
  50. 2
      kernel/Kconfig
  51. 2
      kernel/Kconfig.mem_domain
  52. 2
      lib/posix/options/Kconfig.mqueue
  53. 6
      lib/posix/options/Kconfig.semaphore
  54. 6
      modules/openthread/Kconfig.thread
  55. 4
      soc/ambiq/apollo3x/Kconfig.defconfig.apollo3_blue
  56. 4
      soc/ambiq/apollo3x/Kconfig.defconfig.apollo3p_blue
  57. 2
      soc/atmel/sam/common/Kconfig
  58. 4
      soc/ti/simplelink/cc13x2_cc26x2/Kconfig
  59. 4
      soc/ti/simplelink/cc13x2x7_cc26x2x7/Kconfig
  60. 6
      subsys/bluetooth/Kconfig.iso
  61. 6
      subsys/bluetooth/audio/Kconfig.ascs
  62. 14
      subsys/bluetooth/audio/Kconfig.bap
  63. 2
      subsys/bluetooth/audio/Kconfig.csip
  64. 2
      subsys/bluetooth/audio/Kconfig.has
  65. 8
      subsys/bluetooth/audio/Kconfig.mcs
  66. 10
      subsys/bluetooth/audio/Kconfig.mpl
  67. 4
      subsys/bluetooth/audio/Kconfig.tbs
  68. 28
      subsys/bluetooth/common/Kconfig
  69. 10
      subsys/bluetooth/controller/Kconfig
  70. 18
      subsys/bluetooth/controller/Kconfig.ll_sw_split
  71. 12
      subsys/bluetooth/host/Kconfig
  72. 8
      subsys/bluetooth/host/Kconfig.gatt
  73. 4
      subsys/bluetooth/host/Kconfig.l2cap
  74. 8
      subsys/bluetooth/host/classic/Kconfig
  75. 38
      subsys/bluetooth/mesh/Kconfig
  76. 2
      subsys/dap/Kconfig
  77. 4
      subsys/fs/Kconfig.fatfs
  78. 4
      subsys/ipc/ipc_service/backends/Kconfig.icmsg_me
  79. 2
      subsys/mgmt/mcumgr/transport/Kconfig.bluetooth
  80. 4
      subsys/mgmt/osdp/Kconfig.pd
  81. 4
      subsys/net/ip/Kconfig.ipv4
  82. 4
      subsys/net/ip/Kconfig.ipv6
  83. 6
      subsys/net/ip/Kconfig.tcp
  84. 2
      subsys/net/l2/ethernet/Kconfig
  85. 6
      subsys/net/l2/ethernet/gptp/Kconfig
  86. 8
      subsys/net/l2/ppp/Kconfig
  87. 6
      subsys/net/lib/dhcpv4/Kconfig
  88. 4
      subsys/net/lib/dns/Kconfig
  89. 6
      subsys/net/lib/lwm2m/Kconfig
  90. 2
      subsys/net/lib/mqtt_sn/Kconfig
  91. 4
      subsys/net/lib/ptp/Kconfig
  92. 2
      subsys/net/lib/sockets/Kconfig
  93. 6
      subsys/portability/cmsis_rtos_v1/Kconfig
  94. 16
      subsys/portability/cmsis_rtos_v2/Kconfig
  95. 2
      subsys/settings/Kconfig
  96. 2
      subsys/shell/Kconfig
  97. 2
      subsys/shell/backends/Kconfig.backends

2
arch/arm/core/cortex_m/Kconfig

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

2
arch/x86/Kconfig

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

4
arch/x86/core/Kconfig.intel64

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

4
boards/ambiq/apollo4p_blue_kxr_evb/Kconfig.defconfig

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

2
boards/espressif/esp32_devkitc_wroom/Kconfig.defconfig

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

2
boards/espressif/esp32_devkitc_wrover/Kconfig.defconfig

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

2
boards/espressif/esp32_ethernet_kit/Kconfig.defconfig

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

2
boards/espressif/esp32c3_devkitm/Kconfig.defconfig

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

2
boards/espressif/esp32c6_devkitc/Kconfig.defconfig

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

2
boards/espressif/esp32s3_devkitc/Kconfig.defconfig

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

2
boards/espressif/esp32s3_devkitm/Kconfig.defconfig

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

2
boards/espressif/esp_wrover_kit/Kconfig.defconfig

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

2
boards/hardkernel/odroid_go/Kconfig.defconfig

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

2
boards/heltec/heltec_wifi_lora32_v2/Kconfig.defconfig

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

2
boards/heltec/heltec_wireless_stick_lite_v3/Kconfig.defconfig

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

2
boards/kincony/kincony_kc868_a32/Kconfig.defconfig

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

2
boards/lilygo/ttgo_lora32/Kconfig.defconfig

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

2
boards/lilygo/ttgo_t8c3/Kconfig.defconfig

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

2
boards/luatos/esp32c3_luatos_core/Kconfig.defconfig

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

2
boards/luatos/esp32s3_luatos_core/Kconfig.defconfig

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

2
boards/m5stack/m5stack_atom_lite/Kconfig.defconfig

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

2
boards/m5stack/m5stack_atoms3/Kconfig.defconfig

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

2
boards/m5stack/m5stack_atoms3_lite/Kconfig.defconfig

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

2
boards/m5stack/m5stack_core2/Kconfig.defconfig

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

2
boards/m5stack/m5stack_stamps3/Kconfig.defconfig

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

2
boards/m5stack/m5stickc_plus/Kconfig.defconfig

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

2
boards/m5stack/stamp_c3/Kconfig.defconfig

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

2
boards/olimex/olimex_esp32_evb/Kconfig.defconfig

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

2
boards/others/icev_wireless/Kconfig.defconfig

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

2
boards/seeed/xiao_esp32c3/Kconfig.defconfig

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

2
boards/seeed/xiao_esp32s3/Kconfig.defconfig

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

2
boards/vcc-gnd/yd_esp32/Kconfig.defconfig

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

2
boards/waveshare/esp32s3_touch_lcd_1_28/Kconfig.defconfig

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

2
drivers/bluetooth/hci/Kconfig.infineon

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

2
drivers/clock_control/Kconfig.nrf

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

2
drivers/display/Kconfig.microbit

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

2
drivers/display/Kconfig.ssd1306

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

4
drivers/entropy/Kconfig.cc13xx_cc26xx

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

4
drivers/entropy/Kconfig.nrf5

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

4
drivers/entropy/Kconfig.smartbond

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

4
drivers/entropy/Kconfig.stm32

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

2
drivers/ethernet/Kconfig.nxp_s32_netc

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

2
drivers/ieee802154/Kconfig.dw1000

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

4
drivers/ieee802154/Kconfig.nrf5

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

4
drivers/sensor/adi/adxl367/Kconfig

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

4
drivers/sensor/adi/adxl372/Kconfig

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

4
drivers/serial/Kconfig.nrfx_uart_instance

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

2
drivers/tee/optee/Kconfig

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

2
drivers/watchdog/Kconfig

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

2
kernel/Kconfig

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

2
kernel/Kconfig.mem_domain

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

2
lib/posix/options/Kconfig.mqueue

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

6
lib/posix/options/Kconfig.semaphore

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

6
modules/openthread/Kconfig.thread

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

4
soc/ambiq/apollo3x/Kconfig.defconfig.apollo3_blue

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

4
soc/ambiq/apollo3x/Kconfig.defconfig.apollo3p_blue

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

2
soc/atmel/sam/common/Kconfig

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

4
soc/ti/simplelink/cc13x2_cc26x2/Kconfig

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

4
soc/ti/simplelink/cc13x2x7_cc26x2x7/Kconfig

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

6
subsys/bluetooth/Kconfig.iso

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

6
subsys/bluetooth/audio/Kconfig.ascs

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

14
subsys/bluetooth/audio/Kconfig.bap

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

2
subsys/bluetooth/audio/Kconfig.csip

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

2
subsys/bluetooth/audio/Kconfig.has

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

8
subsys/bluetooth/audio/Kconfig.mcs

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

10
subsys/bluetooth/audio/Kconfig.mpl

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

4
subsys/bluetooth/audio/Kconfig.tbs

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

28
subsys/bluetooth/common/Kconfig

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

10
subsys/bluetooth/controller/Kconfig

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

18
subsys/bluetooth/controller/Kconfig.ll_sw_split

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

12
subsys/bluetooth/host/Kconfig

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

8
subsys/bluetooth/host/Kconfig.gatt

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

4
subsys/bluetooth/host/Kconfig.l2cap

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

8
subsys/bluetooth/host/classic/Kconfig

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

38
subsys/bluetooth/mesh/Kconfig

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

2
subsys/dap/Kconfig

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

4
subsys/fs/Kconfig.fatfs

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

4
subsys/ipc/ipc_service/backends/Kconfig.icmsg_me

@ -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 config IPC_SERVICE_BACKEND_ICMSG_ME_SEND_BUF_SIZE
int "Size of sending buffer size" int "Size of sending buffer size"
range 1 65535 range 1 $(UINT16_MAX)
default 255 default $(UINT8_MAX)
help help
Size of a static buffer used for preparring data to send in sending Size of a static buffer used for preparring data to send in sending
function. If you are sure that your application never sends data function. If you are sure that your application never sends data

2
subsys/mgmt/mcumgr/transport/Kconfig.bluetooth

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

4
subsys/mgmt/osdp/Kconfig.pd

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

4
subsys/net/ip/Kconfig.ipv4

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

4
subsys/net/ip/Kconfig.ipv6

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

6
subsys/net/ip/Kconfig.tcp

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

2
subsys/net/l2/ethernet/Kconfig

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

6
subsys/net/l2/ethernet/gptp/Kconfig

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

8
subsys/net/l2/ppp/Kconfig

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

6
subsys/net/lib/dhcpv4/Kconfig

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

4
subsys/net/lib/dns/Kconfig

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

6
subsys/net/lib/lwm2m/Kconfig

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

2
subsys/net/lib/mqtt_sn/Kconfig

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

4
subsys/net/lib/ptp/Kconfig

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

2
subsys/net/lib/sockets/Kconfig

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

6
subsys/portability/cmsis_rtos_v1/Kconfig

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

16
subsys/portability/cmsis_rtos_v2/Kconfig

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

2
subsys/settings/Kconfig

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

2
subsys/shell/Kconfig

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

2
subsys/shell/backends/Kconfig.backends

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

Loading…
Cancel
Save