diff --git a/arch/arm/core/cortex_m/Kconfig b/arch/arm/core/cortex_m/Kconfig index 106897e6eb956a..c018574429a5aa 100644 --- a/arch/arm/core/cortex_m/Kconfig +++ b/arch/arm/core/cortex_m/Kconfig @@ -330,7 +330,7 @@ config ZERO_LATENCY_IRQS config ZERO_LATENCY_LEVELS int "Number of interrupt priority levels reserved for zero latency" depends on ZERO_LATENCY_IRQS - range 1 255 + range 1 $(UINT8_MAX) help The amount of interrupt priority levels reserved for zero latency interrupts. Increase this value to reserve more than one priority diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 487d6e94bd9617..52ef70a0d13d01 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -205,7 +205,7 @@ config MAX_IRQ_LINES config IRQ_OFFLOAD_VECTOR int "IDT vector to use for IRQ offload" default 33 - range 32 255 + range 32 $(UINT8_MAX) depends on IRQ_OFFLOAD config PIC_DISABLE diff --git a/arch/x86/core/Kconfig.intel64 b/arch/x86/core/Kconfig.intel64 index c385d93b0c3a6a..6ad9a887d493a7 100644 --- a/arch/x86/core/Kconfig.intel64 +++ b/arch/x86/core/Kconfig.intel64 @@ -42,13 +42,13 @@ config X86_EXCEPTION_STACK_TRACE config SCHED_IPI_VECTOR int "IDT vector to use for scheduler IPI" default 34 - range 33 255 + range 33 $(UINT8_MAX) depends on SMP config TLB_IPI_VECTOR int "IDT vector to use for TLB shootdown IPI" default 35 - range 33 255 + range 33 $(UINT8_MAX) depends on SMP # We should really only have to provide one of the following two values, diff --git a/boards/ambiq/apollo4p_blue_kxr_evb/Kconfig.defconfig b/boards/ambiq/apollo4p_blue_kxr_evb/Kconfig.defconfig index 7303c78a28644d..5d16de3a1ca0d4 100644 --- a/boards/ambiq/apollo4p_blue_kxr_evb/Kconfig.defconfig +++ b/boards/ambiq/apollo4p_blue_kxr_evb/Kconfig.defconfig @@ -13,10 +13,10 @@ config BT_BUF_ACL_TX_COUNT default 14 config BT_BUF_CMD_TX_SIZE - default 255 + default $(UINT8_MAX) config BT_BUF_EVT_RX_SIZE - default 255 + default $(UINT8_MAX) config BT_BUF_ACL_TX_SIZE default 251 diff --git a/boards/espressif/esp32_devkitc_wroom/Kconfig.defconfig b/boards/espressif/esp32_devkitc_wroom/Kconfig.defconfig index 374b423b5483cc..a704e9f9d36b77 100644 --- a/boards/espressif/esp32_devkitc_wroom/Kconfig.defconfig +++ b/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 int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/espressif/esp32_devkitc_wrover/Kconfig.defconfig b/boards/espressif/esp32_devkitc_wrover/Kconfig.defconfig index c56c404a40e7f7..92553e37c7ae62 100644 --- a/boards/espressif/esp32_devkitc_wrover/Kconfig.defconfig +++ b/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 int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/espressif/esp32_ethernet_kit/Kconfig.defconfig b/boards/espressif/esp32_ethernet_kit/Kconfig.defconfig index 75b0cc9f631efd..87bd018b9fbcad 100644 --- a/boards/espressif/esp32_ethernet_kit/Kconfig.defconfig +++ b/boards/espressif/esp32_ethernet_kit/Kconfig.defconfig @@ -14,7 +14,7 @@ endchoice config HEAP_MEM_POOL_ADD_SIZE_BOARD int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/espressif/esp32c3_devkitm/Kconfig.defconfig b/boards/espressif/esp32c3_devkitm/Kconfig.defconfig index cf5aeac8382d07..9b39e764af7ae4 100644 --- a/boards/espressif/esp32c3_devkitm/Kconfig.defconfig +++ b/boards/espressif/esp32c3_devkitm/Kconfig.defconfig @@ -5,7 +5,7 @@ config HEAP_MEM_POOL_ADD_SIZE_BOARD int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/espressif/esp32c6_devkitc/Kconfig.defconfig b/boards/espressif/esp32c6_devkitc/Kconfig.defconfig index fccfb36845b2b3..f14ec8f3a03000 100644 --- a/boards/espressif/esp32c6_devkitc/Kconfig.defconfig +++ b/boards/espressif/esp32c6_devkitc/Kconfig.defconfig @@ -5,7 +5,7 @@ config HEAP_MEM_POOL_ADD_SIZE_BOARD int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/espressif/esp32s3_devkitc/Kconfig.defconfig b/boards/espressif/esp32s3_devkitc/Kconfig.defconfig index d539cd6652349f..266a4ed7fa9e0b 100644 --- a/boards/espressif/esp32s3_devkitc/Kconfig.defconfig +++ b/boards/espressif/esp32s3_devkitc/Kconfig.defconfig @@ -7,7 +7,7 @@ if BOARD_ESP32S3_DEVKITC_ESP32S3_PROCPU config HEAP_MEM_POOL_ADD_SIZE_BOARD int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/espressif/esp32s3_devkitm/Kconfig.defconfig b/boards/espressif/esp32s3_devkitm/Kconfig.defconfig index 26339590ee31e4..69f8b4d73f0542 100644 --- a/boards/espressif/esp32s3_devkitm/Kconfig.defconfig +++ b/boards/espressif/esp32s3_devkitm/Kconfig.defconfig @@ -7,7 +7,7 @@ if BOARD_ESP32S3_DEVKITM_ESP32S3_PROCPU config HEAP_MEM_POOL_ADD_SIZE_BOARD int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/espressif/esp_wrover_kit/Kconfig.defconfig b/boards/espressif/esp_wrover_kit/Kconfig.defconfig index adf8cd7e3980e0..3cbb535c1aa15a 100644 --- a/boards/espressif/esp_wrover_kit/Kconfig.defconfig +++ b/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 int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/hardkernel/odroid_go/Kconfig.defconfig b/boards/hardkernel/odroid_go/Kconfig.defconfig index 58874c1f51408f..2fc34399f5a59b 100644 --- a/boards/hardkernel/odroid_go/Kconfig.defconfig +++ b/boards/hardkernel/odroid_go/Kconfig.defconfig @@ -20,7 +20,7 @@ endchoice config HEAP_MEM_POOL_ADD_SIZE_BOARD int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/heltec/heltec_wifi_lora32_v2/Kconfig.defconfig b/boards/heltec/heltec_wifi_lora32_v2/Kconfig.defconfig index a2979499b658f6..e1531cba135c25 100644 --- a/boards/heltec/heltec_wifi_lora32_v2/Kconfig.defconfig +++ b/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 int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/heltec/heltec_wireless_stick_lite_v3/Kconfig.defconfig b/boards/heltec/heltec_wireless_stick_lite_v3/Kconfig.defconfig index c1aa6f030c7670..2efc7d1a8dd6a0 100644 --- a/boards/heltec/heltec_wireless_stick_lite_v3/Kconfig.defconfig +++ b/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 int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/kincony/kincony_kc868_a32/Kconfig.defconfig b/boards/kincony/kincony_kc868_a32/Kconfig.defconfig index 4d4613b36ad538..865f2d084def14 100644 --- a/boards/kincony/kincony_kc868_a32/Kconfig.defconfig +++ b/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 int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/lilygo/ttgo_lora32/Kconfig.defconfig b/boards/lilygo/ttgo_lora32/Kconfig.defconfig index d77a95c89b0762..64e75a5d3c3a71 100644 --- a/boards/lilygo/ttgo_lora32/Kconfig.defconfig +++ b/boards/lilygo/ttgo_lora32/Kconfig.defconfig @@ -10,7 +10,7 @@ config ENTROPY_GENERATOR config HEAP_MEM_POOL_ADD_SIZE_BOARD int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/lilygo/ttgo_t8c3/Kconfig.defconfig b/boards/lilygo/ttgo_t8c3/Kconfig.defconfig index eb2f107cd0d3e8..13e40a11220de5 100644 --- a/boards/lilygo/ttgo_t8c3/Kconfig.defconfig +++ b/boards/lilygo/ttgo_t8c3/Kconfig.defconfig @@ -3,7 +3,7 @@ config HEAP_MEM_POOL_ADD_SIZE_BOARD int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/luatos/esp32c3_luatos_core/Kconfig.defconfig b/boards/luatos/esp32c3_luatos_core/Kconfig.defconfig index f6ad1adaa1cb9a..62d18716ff451a 100644 --- a/boards/luatos/esp32c3_luatos_core/Kconfig.defconfig +++ b/boards/luatos/esp32c3_luatos_core/Kconfig.defconfig @@ -5,7 +5,7 @@ config HEAP_MEM_POOL_ADD_SIZE_BOARD int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/luatos/esp32s3_luatos_core/Kconfig.defconfig b/boards/luatos/esp32s3_luatos_core/Kconfig.defconfig index a14482e325d1c2..f79ddb5b6ce953 100644 --- a/boards/luatos/esp32s3_luatos_core/Kconfig.defconfig +++ b/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 int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/m5stack/m5stack_atom_lite/Kconfig.defconfig b/boards/m5stack/m5stack_atom_lite/Kconfig.defconfig index 2b223f5409bed4..beb26dc4cd39bb 100644 --- a/boards/m5stack/m5stack_atom_lite/Kconfig.defconfig +++ b/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 int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/m5stack/m5stack_atoms3/Kconfig.defconfig b/boards/m5stack/m5stack_atoms3/Kconfig.defconfig index f3b59178417cea..25ab1016872973 100644 --- a/boards/m5stack/m5stack_atoms3/Kconfig.defconfig +++ b/boards/m5stack/m5stack_atoms3/Kconfig.defconfig @@ -9,7 +9,7 @@ config LV_COLOR_16_SWAP config HEAP_MEM_POOL_ADD_SIZE_BOARD int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/m5stack/m5stack_atoms3_lite/Kconfig.defconfig b/boards/m5stack/m5stack_atoms3_lite/Kconfig.defconfig index f0f262cd1f3a65..c2f1681308ade2 100644 --- a/boards/m5stack/m5stack_atoms3_lite/Kconfig.defconfig +++ b/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 int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/m5stack/m5stack_core2/Kconfig.defconfig b/boards/m5stack/m5stack_core2/Kconfig.defconfig index fd9614d6cbbfb8..84827d2d00b095 100644 --- a/boards/m5stack/m5stack_core2/Kconfig.defconfig +++ b/boards/m5stack/m5stack_core2/Kconfig.defconfig @@ -7,7 +7,7 @@ if BOARD_M5STACK_CORE2_ESP32_PROCPU config HEAP_MEM_POOL_ADD_SIZE_BOARD int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 65536 if BT default 4096 diff --git a/boards/m5stack/m5stack_stamps3/Kconfig.defconfig b/boards/m5stack/m5stack_stamps3/Kconfig.defconfig index 903059dffbc8a5..36168147b71fb6 100644 --- a/boards/m5stack/m5stack_stamps3/Kconfig.defconfig +++ b/boards/m5stack/m5stack_stamps3/Kconfig.defconfig @@ -6,7 +6,7 @@ if BOARD_M5STACK_STAMPS3_ESP32S3_PROCPU config HEAP_MEM_POOL_ADD_SIZE_BOARD int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/m5stack/m5stickc_plus/Kconfig.defconfig b/boards/m5stack/m5stickc_plus/Kconfig.defconfig index a6b957227be56a..b103f442585ed4 100644 --- a/boards/m5stack/m5stickc_plus/Kconfig.defconfig +++ b/boards/m5stack/m5stickc_plus/Kconfig.defconfig @@ -7,7 +7,7 @@ if BOARD_M5STICKC_PLUS_ESP32_PROCPU config HEAP_MEM_POOL_ADD_SIZE_BOARD int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/m5stack/stamp_c3/Kconfig.defconfig b/boards/m5stack/stamp_c3/Kconfig.defconfig index dcc3a4225487de..7984df010af4bc 100644 --- a/boards/m5stack/stamp_c3/Kconfig.defconfig +++ b/boards/m5stack/stamp_c3/Kconfig.defconfig @@ -5,7 +5,7 @@ config HEAP_MEM_POOL_ADD_SIZE_BOARD int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/olimex/olimex_esp32_evb/Kconfig.defconfig b/boards/olimex/olimex_esp32_evb/Kconfig.defconfig index e3269639038322..dda9be19b90afb 100644 --- a/boards/olimex/olimex_esp32_evb/Kconfig.defconfig +++ b/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 int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/others/icev_wireless/Kconfig.defconfig b/boards/others/icev_wireless/Kconfig.defconfig index b7c82093375ffe..d2c6cca9a7e1d3 100644 --- a/boards/others/icev_wireless/Kconfig.defconfig +++ b/boards/others/icev_wireless/Kconfig.defconfig @@ -3,7 +3,7 @@ config HEAP_MEM_POOL_ADD_SIZE_BOARD int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/seeed/xiao_esp32c3/Kconfig.defconfig b/boards/seeed/xiao_esp32c3/Kconfig.defconfig index 4171bb04bc2760..b3138599c7e596 100644 --- a/boards/seeed/xiao_esp32c3/Kconfig.defconfig +++ b/boards/seeed/xiao_esp32c3/Kconfig.defconfig @@ -3,7 +3,7 @@ config HEAP_MEM_POOL_ADD_SIZE_BOARD int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/seeed/xiao_esp32s3/Kconfig.defconfig b/boards/seeed/xiao_esp32s3/Kconfig.defconfig index b9222985d8dd0c..661f575520db85 100644 --- a/boards/seeed/xiao_esp32s3/Kconfig.defconfig +++ b/boards/seeed/xiao_esp32s3/Kconfig.defconfig @@ -5,7 +5,7 @@ if BOARD_XIAO_ESP32S3_ESP32S3_PROCPU config HEAP_MEM_POOL_ADD_SIZE_BOARD int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/vcc-gnd/yd_esp32/Kconfig.defconfig b/boards/vcc-gnd/yd_esp32/Kconfig.defconfig index 2ca1ba1903658b..1f6ec2776ceca9 100644 --- a/boards/vcc-gnd/yd_esp32/Kconfig.defconfig +++ b/boards/vcc-gnd/yd_esp32/Kconfig.defconfig @@ -7,7 +7,7 @@ if BOARD_YD_ESP32_ESP32_PROCPU config HEAP_MEM_POOL_ADD_SIZE_BOARD int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/boards/waveshare/esp32s3_touch_lcd_1_28/Kconfig.defconfig b/boards/waveshare/esp32s3_touch_lcd_1_28/Kconfig.defconfig index 06c61c850aa11d..dc1a6f09989a86 100644 --- a/boards/waveshare/esp32s3_touch_lcd_1_28/Kconfig.defconfig +++ b/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 int - default 65535 if WIFI && BT + default $(UINT16_MAX) if WIFI && BT default 51200 if WIFI default 40960 if BT default 4096 diff --git a/drivers/bluetooth/hci/Kconfig.infineon b/drivers/bluetooth/hci/Kconfig.infineon index 3e9138eb500546..b3c0fe7807369c 100644 --- a/drivers/bluetooth/hci/Kconfig.infineon +++ b/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 # firmware downloading. config BT_BUF_CMD_TX_SIZE - default 255 + default $(UINT8_MAX) endif # BT_AIROC diff --git a/drivers/clock_control/Kconfig.nrf b/drivers/clock_control/Kconfig.nrf index 8b30772f26ce43..22b1c07abd19fa 100644 --- a/drivers/clock_control/Kconfig.nrf +++ b/drivers/clock_control/Kconfig.nrf @@ -94,7 +94,7 @@ config CLOCK_CONTROL_NRF_CALIBRATION_PERIOD config CLOCK_CONTROL_NRF_CALIBRATION_MAX_SKIP int "Maximum number of calibration skips" default 1 - range 0 255 + range 0 $(UINT8_MAX) help Calibration is skipped when temperature change since last calibration was less than configured threshold. If number of consecutive skips diff --git a/drivers/display/Kconfig.microbit b/drivers/display/Kconfig.microbit index cf1d8a485878fc..0db80807420bee 100644 --- a/drivers/display/Kconfig.microbit +++ b/drivers/display/Kconfig.microbit @@ -13,7 +13,7 @@ config MICROBIT_DISPLAY config MICROBIT_DISPLAY_STR_MAX int "Maximum length of strings that can be shown on the display" - range 3 255 + range 3 $(UINT8_MAX) default 40 depends on MICROBIT_DISPLAY help diff --git a/drivers/display/Kconfig.ssd1306 b/drivers/display/Kconfig.ssd1306 index 32f8b0e1423c2b..413e32d8f334be 100644 --- a/drivers/display/Kconfig.ssd1306 +++ b/drivers/display/Kconfig.ssd1306 @@ -19,7 +19,7 @@ if SSD1306 config SSD1306_DEFAULT_CONTRAST int "SSD1306 default contrast" default 128 - range 0 255 + range 0 $(UINT8_MAX) help SSD1306 default contrast. diff --git a/drivers/entropy/Kconfig.cc13xx_cc26xx b/drivers/entropy/Kconfig.cc13xx_cc26xx index dfe67fe2fb5dec..d2cd32ef72fe1c 100644 --- a/drivers/entropy/Kconfig.cc13xx_cc26xx +++ b/drivers/entropy/Kconfig.cc13xx_cc26xx @@ -33,8 +33,8 @@ config ENTROPY_CC13XX_CC26XX_SAMPLES_PER_CYCLE config ENTROPY_CC13XX_CC26XX_ALARM_THRESHOLD int "Threshold for detected repeated patterns" - range 0 255 - default 255 + range 0 $(UINT8_MAX) + default $(UINT8_MAX) help The number of samples detected with repeating patterns before an alarm event is triggered. The associated FRO is automatically shut down. diff --git a/drivers/entropy/Kconfig.nrf5 b/drivers/entropy/Kconfig.nrf5 index c64ed80b6823c4..37f6b0e8d49b3a 100644 --- a/drivers/entropy/Kconfig.nrf5 +++ b/drivers/entropy/Kconfig.nrf5 @@ -42,7 +42,7 @@ config ENTROPY_NRF5_THR_POOL_SIZE config ENTROPY_NRF5_THR_THRESHOLD int "Thread-mode random number pool low-water threshold" - range 4 255 + range 4 $(UINT8_MAX) help Low water-mark threshold in bytes to trigger entropy generation for thread mode consumers. As soon as the number of available bytes in the @@ -60,7 +60,7 @@ config ENTROPY_NRF5_ISR_POOL_SIZE config ENTROPY_NRF5_ISR_THRESHOLD int "ISR-mode random number pool low-water threshold" - range 12 255 + range 12 $(UINT8_MAX) help Low water-mark threshold in bytes to trigger entropy generation for ISR consumers. As soon as the number of available bytes in the diff --git a/drivers/entropy/Kconfig.smartbond b/drivers/entropy/Kconfig.smartbond index f62a543afe07d1..53b1a4a6308e3d 100644 --- a/drivers/entropy/Kconfig.smartbond +++ b/drivers/entropy/Kconfig.smartbond @@ -25,7 +25,7 @@ config ENTROPY_SMARTBOND_THR_POOL_SIZE config ENTROPY_SMARTBOND_THR_THRESHOLD int "Thread-mode random number pool low-water threshold" - range 4 255 + range 4 $(UINT8_MAX) help Low water-mark threshold in bytes to trigger entropy generation for thread mode consumers. As soon as the number of available bytes in the @@ -43,7 +43,7 @@ config ENTROPY_SMARTBOND_ISR_POOL_SIZE config ENTROPY_SMARTBOND_ISR_THRESHOLD int "ISR-mode random number pool low-water threshold" - range 12 255 + range 12 $(UINT8_MAX) help Low water-mark threshold in bytes to trigger entropy generation for ISR consumers. As soon as the number of available bytes in the diff --git a/drivers/entropy/Kconfig.stm32 b/drivers/entropy/Kconfig.stm32 index f865efd286d0ee..1772b16c93f520 100644 --- a/drivers/entropy/Kconfig.stm32 +++ b/drivers/entropy/Kconfig.stm32 @@ -28,7 +28,7 @@ config ENTROPY_STM32_THR_POOL_SIZE config ENTROPY_STM32_THR_THRESHOLD int "Thread-mode random number pool low-water threshold" - range 4 255 + range 4 $(UINT8_MAX) help Low water-mark threshold in bytes to trigger entropy generation for thread mode consumers. As soon as the number of available bytes in the @@ -46,7 +46,7 @@ config ENTROPY_STM32_ISR_POOL_SIZE config ENTROPY_STM32_ISR_THRESHOLD int "ISR-mode random number pool low-water threshold" - range 12 255 + range 12 $(UINT8_MAX) help Low water-mark threshold in bytes to trigger entropy generation for ISR consumers. As soon as the number of available bytes in the diff --git a/drivers/ethernet/Kconfig.nxp_s32_netc b/drivers/ethernet/Kconfig.nxp_s32_netc index 6c568ca211efb7..36331897788f3e 100644 --- a/drivers/ethernet/Kconfig.nxp_s32_netc +++ b/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 int "RX interrupt coalescing timer threshold" default 60000 - range 1 4294967295 + range 1 $(UINT32_MAX) help RX interrupt coalescing timer threshold, in units of NETC clock cycles. This value determines the maximum amount of time allowed between a first diff --git a/drivers/ieee802154/Kconfig.dw1000 b/drivers/ieee802154/Kconfig.dw1000 index c6251ad8d8ea39..462f3521ed8cbc 100644 --- a/drivers/ieee802154/Kconfig.dw1000 +++ b/drivers/ieee802154/Kconfig.dw1000 @@ -22,7 +22,7 @@ config IEEE802154_DW1000_SNIFF_ONT config IEEE802154_DW1000_SNIFF_OFFT int "SNIFF off time" default 16 - range 1 255 + range 1 $(UINT8_MAX) help SNIFF off time in unit of approximate 1 microsecond. diff --git a/drivers/ieee802154/Kconfig.nrf5 b/drivers/ieee802154/Kconfig.nrf5 index 43217f8d37a3f5..0a3b3503093347 100644 --- a/drivers/ieee802154/Kconfig.nrf5 +++ b/drivers/ieee802154/Kconfig.nrf5 @@ -72,8 +72,8 @@ config IEEE802154_NRF5_FCS_IN_LENGTH config IEEE802154_NRF5_DELAY_TRX_ACC int "Clock accuracy for delayed operations" - default CLOCK_CONTROL_NRF_ACCURACY if (CLOCK_CONTROL_NRF && (CLOCK_CONTROL_NRF_ACCURACY < 255)) - default 255 + default CLOCK_CONTROL_NRF_ACCURACY if (CLOCK_CONTROL_NRF && (CLOCK_CONTROL_NRF_ACCURACY < $(UINT8_MAX))) + default $(UINT8_MAX) help Accuracy of the clock used for scheduling radio delayed operations (delayed transmission or delayed reception), in ppm. diff --git a/drivers/sensor/adi/adxl367/Kconfig b/drivers/sensor/adi/adxl367/Kconfig index e0b4660b0f39e5..5b1100f00cc013 100644 --- a/drivers/sensor/adi/adxl367/Kconfig +++ b/drivers/sensor/adi/adxl367/Kconfig @@ -42,7 +42,7 @@ config ADXL367_INACTIVITY_THRESHOLD config ADXL367_ACTIVITY_TIME int "Activity time" - range 0 255 + range 0 $(UINT8_MAX) default 100 help The activity timer implements a robust activity detection that @@ -53,7 +53,7 @@ config ADXL367_ACTIVITY_TIME config ADXL367_INACTIVITY_TIME int "In-activity time" - range 0 65535 + range 0 $(UINT16_MAX) default 100 help The time that all enabled axes must be lower than the inactivity diff --git a/drivers/sensor/adi/adxl372/Kconfig b/drivers/sensor/adi/adxl372/Kconfig index dfc3c335cd353a..bcbf69d7d4354c 100644 --- a/drivers/sensor/adi/adxl372/Kconfig +++ b/drivers/sensor/adi/adxl372/Kconfig @@ -51,7 +51,7 @@ config ADXL372_INACTIVITY_THRESHOLD config ADXL372_ACTIVITY_TIME int "Activity time" - range 0 255 + range 0 $(UINT8_MAX) default 1 help The activity timer implements a robust activity detection that @@ -63,7 +63,7 @@ config ADXL372_ACTIVITY_TIME config ADXL372_INACTIVITY_TIME int "In-activity time" - range 0 255 + range 0 $(UINT8_MAX) default 2 help The time that all enabled axes must be lower than the inactivity diff --git a/drivers/serial/Kconfig.nrfx_uart_instance b/drivers/serial/Kconfig.nrfx_uart_instance index 7f135d2f997c55..a1d62740b472d4 100644 --- a/drivers/serial/Kconfig.nrfx_uart_instance +++ b/drivers/serial/Kconfig.nrfx_uart_instance @@ -42,7 +42,7 @@ config UART_$(nrfx_uart_num)_NRF_TX_BUFFER_SIZE int "Size of RAM buffer" depends on HAS_HW_NRF_UARTE$(nrfx_uart_num) depends on UART_NRFX_UARTE_LEGACY_SHIM - range 1 65535 + range 1 $(UINT16_MAX) default 32 help Size of the transmit buffer for API function: fifo_fill. @@ -97,7 +97,7 @@ config UART_$(nrfx_uart_num)_RX_CACHE_SIZE depends on !UART_NRFX_UARTE_LEGACY_SHIM default 32 if UART_$(nrfx_uart_num)_HAS_RX_CACHE_SECTION default 5 - range 5 255 + range 5 $(UINT8_MAX) help For UARTE, RX cache buffer is used when provided RX buffer is not located in memory which can be used by the EasyDMA. It is also used to store diff --git a/drivers/tee/optee/Kconfig b/drivers/tee/optee/Kconfig index 30e3d2d0f6d641..10d381e754db6b 100644 --- a/drivers/tee/optee/Kconfig +++ b/drivers/tee/optee/Kconfig @@ -15,7 +15,7 @@ config OPTEE config OPTEE_MAX_NOTIF int "Max number of OP-TEE notifications" depends on OPTEE - default 255 + default $(UINT8_MAX) help Sets the maximum notifications from OP-TEE to the Normal World. OP-TEE using this mechanism for the synchronization. diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 4a3982ba15d1d7..f78560c78d2d86 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -53,7 +53,7 @@ if WDT_COUNTER config WDT_COUNTER_CH_COUNT int "Maximum number of supported channel" default 4 - range 1 255 + range 1 $(UINT8_MAX) help Note that actual channel count will be limited to number of channels supported by the counter device which is used for watchdog. diff --git a/kernel/Kconfig b/kernel/Kconfig index 0a5e1305f910a7..a44d1d473cfa1a 100644 --- a/kernel/Kconfig +++ b/kernel/Kconfig @@ -638,7 +638,7 @@ config TIMESLICING config TIMESLICE_SIZE int "Time slice size (in ms)" default 0 - range 0 2147483647 + range 0 $(INT32_MAX) depends on TIMESLICING help This option specifies the maximum amount of time a thread can execute diff --git a/kernel/Kconfig.mem_domain b/kernel/Kconfig.mem_domain index 28f3d003639d25..ddf8a4cc57a6dd 100644 --- a/kernel/Kconfig.mem_domain +++ b/kernel/Kconfig.mem_domain @@ -8,7 +8,7 @@ menu "Memory Domains" config MAX_DOMAIN_PARTITIONS int "Maximum number of partitions per memory domain" default 16 - range 0 255 + range 0 $(UINT8_MAX) depends on USERSPACE help Configure the maximum number of partitions per memory domain. diff --git a/lib/posix/options/Kconfig.mqueue b/lib/posix/options/Kconfig.mqueue index 4a1e9925fdaf13..83b3a21858823f 100644 --- a/lib/posix/options/Kconfig.mqueue +++ b/lib/posix/options/Kconfig.mqueue @@ -31,7 +31,7 @@ config MSG_SIZE_MAX config MQUEUE_NAMELEN_MAX int "Maximum POSIX message queue name size" default 16 - range 2 255 + range 2 $(UINT8_MAX) help Mention size of message queue name in number of characters. diff --git a/lib/posix/options/Kconfig.semaphore b/lib/posix/options/Kconfig.semaphore index 65bc2a686930b8..b6b839c9b1fe48 100644 --- a/lib/posix/options/Kconfig.semaphore +++ b/lib/posix/options/Kconfig.semaphore @@ -11,8 +11,8 @@ if POSIX_SEMAPHORES config POSIX_SEM_VALUE_MAX int "Maximum semaphore value" - default 32767 - range 1 32767 + default $(INT16_MAX) + range 1 $(INT16_MAX) help Maximum semaphore count in POSIX compliant Application. @@ -28,7 +28,7 @@ config POSIX_SEM_NSEMS_MAX config POSIX_SEM_NAMELEN_MAX int "Maximum semaphore name length" default 16 - range 2 255 + range 2 $(UINT8_MAX) help Maximum length of name for a named semaphore. The max value of 255 corresponds to {NAME_MAX}. diff --git a/modules/openthread/Kconfig.thread b/modules/openthread/Kconfig.thread index 542992e7fa1809..eefea09e7b272b 100644 --- a/modules/openthread/Kconfig.thread +++ b/modules/openthread/Kconfig.thread @@ -66,7 +66,7 @@ config OPENTHREAD_MAX_CHILDREN config OPENTHREAD_MAX_IP_ADDR_PER_CHILD int "The maximum number of IPv6 address registrations per child" - range 4 255 + range 4 $(UINT8_MAX) default 6 config OPENTHREAD_CONFIG_PLATFORM_INFO @@ -99,8 +99,8 @@ config OPENTHREAD_MIN_RECEIVE_ON_AFTER config OPENTHREAD_PLATFORM_CSL_UNCERT int "CSL uncertainty" - default 255 - range 0 255 + default $(UINT8_MAX) + range 0 $(UINT8_MAX) help The fixed uncertainty of the Device for scheduling CSL Transmissions in units of 10 microseconds. diff --git a/soc/ambiq/apollo3x/Kconfig.defconfig.apollo3_blue b/soc/ambiq/apollo3x/Kconfig.defconfig.apollo3_blue index 4655c8fd20aba0..4a1b30205537d0 100644 --- a/soc/ambiq/apollo3x/Kconfig.defconfig.apollo3_blue +++ b/soc/ambiq/apollo3x/Kconfig.defconfig.apollo3_blue @@ -16,10 +16,10 @@ config BT_BUF_ACL_TX_COUNT default 4 config BT_BUF_CMD_TX_SIZE - default 255 + default $(UINT8_MAX) config BT_BUF_EVT_RX_SIZE - default 255 + default $(UINT8_MAX) config BT_BUF_ACL_TX_SIZE default 251 diff --git a/soc/ambiq/apollo3x/Kconfig.defconfig.apollo3p_blue b/soc/ambiq/apollo3x/Kconfig.defconfig.apollo3p_blue index a94b45cc598185..f334326ac46377 100644 --- a/soc/ambiq/apollo3x/Kconfig.defconfig.apollo3p_blue +++ b/soc/ambiq/apollo3x/Kconfig.defconfig.apollo3p_blue @@ -16,10 +16,10 @@ config BT_BUF_ACL_TX_COUNT default 4 config BT_BUF_CMD_TX_SIZE - default 255 + default $(UINT8_MAX) config BT_BUF_EVT_RX_SIZE - default 255 + default $(UINT8_MAX) config BT_BUF_ACL_TX_SIZE default 251 diff --git a/soc/atmel/sam/common/Kconfig b/soc/atmel/sam/common/Kconfig index 2642a40eda737c..e9709351f5ca5a 100644 --- a/soc/atmel/sam/common/Kconfig +++ b/soc/atmel/sam/common/Kconfig @@ -52,7 +52,7 @@ config SOC_ATMEL_SAM_PLLA_MULA config SOC_ATMEL_SAM_PLLA_DIVA int "PLL DIVA" default 1 - range 1 255 + range 1 $(UINT8_MAX) help This is the divider (DIVA) used by the PLL. The processor clock is (MAINCK * (MULA + 1) / DIVA). diff --git a/soc/ti/simplelink/cc13x2_cc26x2/Kconfig b/soc/ti/simplelink/cc13x2_cc26x2/Kconfig index 056e6162523605..1844167f7049ed 100644 --- a/soc/ti/simplelink/cc13x2_cc26x2/Kconfig +++ b/soc/ti/simplelink/cc13x2_cc26x2/Kconfig @@ -45,8 +45,8 @@ config CC13X2_CC26X2_BOOTLOADER_BACKDOOR_ENABLE config CC13X2_CC26X2_BOOTLOADER_BACKDOOR_PIN int "ROM bootloader backdoor pin" depends on CC13X2_CC26X2_BOOTLOADER_BACKDOOR_ENABLE - range 0 255 - default 255 + range 0 $(UINT8_MAX) + default $(UINT8_MAX) help Set the pin that is level checked if the bootloader backdoor is enabled. diff --git a/soc/ti/simplelink/cc13x2x7_cc26x2x7/Kconfig b/soc/ti/simplelink/cc13x2x7_cc26x2x7/Kconfig index 42789af2526b54..e5c5a01eedff0a 100644 --- a/soc/ti/simplelink/cc13x2x7_cc26x2x7/Kconfig +++ b/soc/ti/simplelink/cc13x2x7_cc26x2x7/Kconfig @@ -45,8 +45,8 @@ config CC13X2_CC26X2_BOOTLOADER_BACKDOOR_ENABLE config CC13X2_CC26X2_BOOTLOADER_BACKDOOR_PIN int "ROM bootloader backdoor pin" depends on CC13X2_CC26X2_BOOTLOADER_BACKDOOR_ENABLE - range 0 255 - default 255 + range 0 $(UINT8_MAX) + default $(UINT8_MAX) help Set the pin that is level checked if the bootloader backdoor is enabled. diff --git a/subsys/bluetooth/Kconfig.iso b/subsys/bluetooth/Kconfig.iso index 9fdde1da867347..9fbb0a1b78fee0 100644 --- a/subsys/bluetooth/Kconfig.iso +++ b/subsys/bluetooth/Kconfig.iso @@ -83,14 +83,14 @@ config BT_ISO_MAX_CHAN config BT_ISO_TX_BUF_COUNT int "Number of Isochronous TX buffers" default 1 - range 1 255 + range 1 $(UINT8_MAX) help Number of buffers available for outgoing Isochronous channel SDUs. config BT_ISO_TX_FRAG_COUNT int "Number of ISO TX fragment buffers" default 2 - range 0 255 + range 0 $(UINT8_MAX) help Number of buffers available for fragments of TX buffers. Warning: setting this to 0 means that the application must ensure that @@ -114,7 +114,7 @@ config BT_ISO_TX_MTU config BT_ISO_RX_BUF_COUNT int "Number of Isochronous RX buffers" default 1 - range 1 255 + range 1 $(UINT8_MAX) help Number of buffers available for incoming Isochronous channel SDUs. diff --git a/subsys/bluetooth/audio/Kconfig.ascs b/subsys/bluetooth/audio/Kconfig.ascs index 09b5063a3863ad..acf539f3ac8c6e 100644 --- a/subsys/bluetooth/audio/Kconfig.ascs +++ b/subsys/bluetooth/audio/Kconfig.ascs @@ -15,7 +15,7 @@ if BT_ASCS config BT_ASCS_ASE_SNK_COUNT int "Number of Audio Stream Endpoint Sink Characteristics" default 2 - range 0 255 + range 0 $(UINT8_MAX) help An ASE Sink characteristic represents the state of an ASE, which is coupled to a single direction of a unicast Audio Stream. @@ -23,7 +23,7 @@ config BT_ASCS_ASE_SNK_COUNT config BT_ASCS_ASE_SRC_COUNT int "Number of Audio Stream Endpoint Source Characteristics" default 2 - range 0 255 + range 0 $(UINT8_MAX) help An ASE Source characteristic represents the state of an ASE, which is coupled to a single direction of a unicast Audio Stream. @@ -41,7 +41,7 @@ config BT_ASCS_ASE_SRC config BT_ASCS_MAX_ACTIVE_ASES int "Number of simultaneously supported ASE sessions" default BT_ISO_MAX_CHAN - range 1 65535 + range 1 $(UINT16_MAX) help The number of simultanesouly supported active ASEs, in particular meaning the number of ASEs that are allowed to be in a non-idle state at diff --git a/subsys/bluetooth/audio/Kconfig.bap b/subsys/bluetooth/audio/Kconfig.bap index 93ab96f6279c2d..6d163527439759 100644 --- a/subsys/bluetooth/audio/Kconfig.bap +++ b/subsys/bluetooth/audio/Kconfig.bap @@ -40,7 +40,7 @@ config BT_BAP_UNICAST_CLIENT config BT_AUDIO_CODEC_CFG_MAX_DATA_SIZE int "Codec Specific Configuration Data Size" default 19 - range 0 255 + range 0 $(UINT8_MAX) help Number of octets to support for Codec Specific Configuration data. The default value 19 matches the required fields for the LC3 codec. @@ -48,7 +48,7 @@ config BT_AUDIO_CODEC_CFG_MAX_DATA_SIZE config BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE int "Codec Specific Configuration Metadata Size" default 4 - range 0 255 + range 0 $(UINT8_MAX) help Number of octets to support for Codec Specific Configuration metadata. @@ -65,7 +65,7 @@ config BT_BAP_BASS_MAX_SUBGROUPS config BT_AUDIO_CODEC_CAP_MAX_DATA_SIZE int "Codec Capabilities Data Size" default 19 - range 0 255 + range 0 $(UINT8_MAX) help Number of octets to support for Codec Specific Capabilities data. The default value 19 matches the required fields for the LC3 codec. @@ -73,7 +73,7 @@ config BT_AUDIO_CODEC_CAP_MAX_DATA_SIZE config BT_AUDIO_CODEC_CAP_MAX_METADATA_SIZE int "Codec Capabilities Metadata Size" default 4 - range 0 255 + range 0 $(UINT8_MAX) help Number of octets to support for Codec Specific Capabilities metadata. @@ -101,7 +101,7 @@ config BT_BAP_UNICAST_CLIENT_GROUP_STREAM_COUNT config BT_BAP_UNICAST_CLIENT_ASE_SNK_COUNT int "Basic Audio Profile ASE Sink count" default 2 - range 0 255 + range 0 $(UINT8_MAX) help This option enables caching a number of Audio Stream Endpoint Sink instances for Basic Audio Profile on a per connection basis. @@ -109,7 +109,7 @@ config BT_BAP_UNICAST_CLIENT_ASE_SNK_COUNT config BT_BAP_UNICAST_CLIENT_ASE_SRC_COUNT int "Basic Audio Profile ASE Source count" default 2 - range 0 255 + range 0 $(UINT8_MAX) help This option enables caching a number of Audio Stream Endpoint Source instances for Basic Audio Profile on a per connection basis. @@ -255,7 +255,7 @@ if BT_BAP_BROADCAST_ASSISTANT config BT_BAP_BROADCAST_ASSISTANT_RECV_STATE_COUNT int "Broadcast Assistant Max Receive State Count" default 1 - range 1 255 + range 1 $(UINT8_MAX) help Sets the number of maximum receive stat characteristics that will be discovered and ready to use. Each characteristic may hold information diff --git a/subsys/bluetooth/audio/Kconfig.csip b/subsys/bluetooth/audio/Kconfig.csip index ca72550843af88..0b248fe82fea50 100644 --- a/subsys/bluetooth/audio/Kconfig.csip +++ b/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 int "Coordinated Set Identification Profle max service instance count" default 1 - range 1 255 + range 1 $(UINT8_MAX) help This option sets the maximum number of instances of Coordinated Set Identification Services. If the service is declared as primary service diff --git a/subsys/bluetooth/audio/Kconfig.has b/subsys/bluetooth/audio/Kconfig.has index f0d89d7b585b1d..16e80d3558431b 100644 --- a/subsys/bluetooth/audio/Kconfig.has +++ b/subsys/bluetooth/audio/Kconfig.has @@ -23,7 +23,7 @@ config BT_HAS_FEATURES_NOTIFIABLE config BT_HAS_PRESET_COUNT int "Preset record list size" default 2 - range 0 255 + range 0 $(UINT8_MAX) help This option sets the number of Hearing Access Service Presets that can be registered. Setting this value to 0 disables Presets support. diff --git a/subsys/bluetooth/audio/Kconfig.mcs b/subsys/bluetooth/audio/Kconfig.mcs index 4c8d4a675a1ee9..b7ebca32e618a6 100644 --- a/subsys/bluetooth/audio/Kconfig.mcs +++ b/subsys/bluetooth/audio/Kconfig.mcs @@ -31,7 +31,7 @@ if BT_MCC config BT_MCC_MEDIA_PLAYER_NAME_MAX int "Max length of media player name" default 20 - range 1 255 + range 1 $(UINT8_MAX) help Sets the maximum number of bytes (including the null termination) of the name of the media player. If the name is longer, the media @@ -40,7 +40,7 @@ config BT_MCC_MEDIA_PLAYER_NAME_MAX config BT_MCC_ICON_URL_MAX int "Max length of media player icon URL" default 40 - range 1 255 + range 1 $(UINT8_MAX) help Sets the maximum number of bytes (including the null termination) of the media player icon URL. If the URL is longer, the media control @@ -49,7 +49,7 @@ config BT_MCC_ICON_URL_MAX config BT_MCC_TRACK_TITLE_MAX int "Max length of the title of a track" default 40 - range 1 255 + range 1 $(UINT8_MAX) help Sets the maximum number of bytes (including the null termination) of the title of any track in the media player. If the title is longer, @@ -58,7 +58,7 @@ config BT_MCC_TRACK_TITLE_MAX config BT_MCC_SEGMENT_NAME_MAX int "Max length of the name of a track segment" default 25 - range 1 255 + range 1 $(UINT8_MAX) help Sets the maximum number of bytes (including the null termination) of the name of any track segment in the media player. If the name is diff --git a/subsys/bluetooth/audio/Kconfig.mpl b/subsys/bluetooth/audio/Kconfig.mpl index 39242a6a9aab16..a173000c4e1d18 100644 --- a/subsys/bluetooth/audio/Kconfig.mpl +++ b/subsys/bluetooth/audio/Kconfig.mpl @@ -27,7 +27,7 @@ config BT_MPL_MEDIA_PLAYER_NAME config BT_MPL_MEDIA_PLAYER_NAME_MAX int "Max length of media player name" default 20 - range 1 255 + range 1 $(UINT8_MAX) help Sets the maximum number of bytes (including the null termination) of the name of the media player. @@ -41,7 +41,7 @@ config BT_MPL_ICON_URL config BT_MPL_ICON_URL_MAX int "Max length of media player icon URL" default 40 - range 1 255 + range 1 $(UINT8_MAX) help Sets the maximum number of bytes (including the null termination) of the media player icon URL. @@ -49,7 +49,7 @@ config BT_MPL_ICON_URL_MAX config BT_MPL_TRACK_TITLE_MAX int "Max length of the title of a track" default 40 - range 1 255 + range 1 $(UINT8_MAX) help Sets the maximum number of bytes (including the null termination) of the title of any track in the media player. @@ -57,7 +57,7 @@ config BT_MPL_TRACK_TITLE_MAX config BT_MPL_SEGMENT_NAME_MAX int "Max length of the name of a track segment" default 25 - range 1 255 + range 1 $(UINT8_MAX) help Sets the maximum number of bytes (including the null termination) of the name of any track segment in the media player. @@ -65,7 +65,7 @@ config BT_MPL_SEGMENT_NAME_MAX config BT_MPL_GROUP_TITLE_MAX int "Max length of the title of a group of tracks" default BT_MPL_TRACK_TITLE_MAX - range 1 255 + range 1 $(UINT8_MAX) help Sets the maximum number of bytes (including the null termination) of the title of any group in the media player. diff --git a/subsys/bluetooth/audio/Kconfig.tbs b/subsys/bluetooth/audio/Kconfig.tbs index 2ca4492d2d0493..94e17710f3b7c2 100644 --- a/subsys/bluetooth/audio/Kconfig.tbs +++ b/subsys/bluetooth/audio/Kconfig.tbs @@ -67,7 +67,7 @@ config BT_TBS_URI_SCHEMES_LIST config BT_TBS_SIGNAL_STRENGTH_INTERVAL int "Telephone Bearer Service Signal Strength Reporting Interval" default 0 - range 0 255 + range 0 $(UINT8_MAX) help Sets the interval of reporting the signal strength in seconds. If the value is 0, the signal will not be reported. @@ -101,7 +101,7 @@ config BT_TBS_MAX_CALLS config BT_TBS_BEARER_COUNT int "How many bearer instances the device instantiates" default 1 - range 1 255 + range 1 $(UINT8_MAX) help Sets the number of TBS instances that are instantiated diff --git a/subsys/bluetooth/common/Kconfig b/subsys/bluetooth/common/Kconfig index c26578c4dad1db..4981b34e8b1e84 100644 --- a/subsys/bluetooth/common/Kconfig +++ b/subsys/bluetooth/common/Kconfig @@ -8,7 +8,7 @@ menu "Bluetooth buffer configuration" config BT_BUF_ACL_TX_SIZE int "Maximum supported ACL size for outgoing data" - range 27 65535 + range 27 $(UINT16_MAX) default 37 if BT_MESH_GATT default 27 help @@ -36,7 +36,7 @@ config BT_BUF_ACL_TX_COUNT default 7 if BT_HCI_RAW default 4 if BT_MESH_GATT default 3 - range 1 255 + range 1 $(UINT8_MAX) help Number of outgoing ACL data buffers sent from the Host to the Controller. This determines the maximum amount of data packets the @@ -55,9 +55,9 @@ config BT_BUF_ACL_RX_SIZE default 69 if BT_SMP default 37 if BT_MESH_GATT default 27 - range 70 65535 if BT_EATT - range 69 65535 if BT_SMP - range 27 65535 + range 70 $(UINT16_MAX) if BT_EATT + range 69 $(UINT16_MAX) if BT_SMP + range 27 $(UINT16_MAX) help Maximum support ACL size of data packets sent from the Controller to the Host. This value does not include the HCI ACL header. @@ -96,10 +96,10 @@ config BT_BUF_ACL_RX_COUNT config BT_BUF_EVT_RX_SIZE int "Maximum supported HCI Event buffer length" - default 255 if (BT_EXT_ADV && BT_OBSERVER) || BT_PER_ADV_SYNC || BT_DF_CONNECTION_CTE_RX || BT_CLASSIC + default $(UINT8_MAX) if (BT_EXT_ADV && BT_OBSERVER) || BT_PER_ADV_SYNC || BT_DF_CONNECTION_CTE_RX || BT_CLASSIC # LE Read Supported Commands command complete event. default 68 - range 68 255 + range 68 $(UINT8_MAX) help Maximum supported HCI event buffer size. This value does not include the HCI Event header. @@ -113,17 +113,17 @@ config BT_BUF_EVT_RX_COUNT int "Number of HCI Event buffers" default 20 if (BT_MESH && !(BT_BUF_EVT_DISCARDABLE_COUNT > 0)) default 10 - range 2 255 + range 2 $(UINT8_MAX) help Number of buffers available for incoming HCI events from the Controller. config BT_BUF_EVT_DISCARDABLE_SIZE int "Maximum supported discardable HCI Event buffer length" - range 43 255 if !BT_EXT_ADV - range 58 255 if BT_EXT_ADV + range 43 $(UINT8_MAX) if !BT_EXT_ADV + range 58 $(UINT8_MAX) if BT_EXT_ADV # LE Extended Advertising Report event - default 255 if BT_CLASSIC + default $(UINT8_MAX) if BT_CLASSIC # Le Advertising Report event default 43 if !BT_EXT_ADV default 58 if BT_EXT_ADV @@ -136,7 +136,7 @@ config BT_BUF_EVT_DISCARDABLE_SIZE config BT_BUF_EVT_DISCARDABLE_COUNT int "Number of discardable HCI Event buffers" - range 1 255 + range 1 $(UINT8_MAX) default 20 if BT_MESH default 3 depends on !BT_HCI_RAW @@ -150,13 +150,13 @@ config BT_BUF_EVT_DISCARDABLE_COUNT config BT_BUF_CMD_TX_SIZE int "Maximum support HCI Command buffer length" - default 255 if (BT_EXT_ADV || BT_CLASSIC || BT_ISO_CENTRAL) + default $(UINT8_MAX) if (BT_EXT_ADV || BT_CLASSIC || BT_ISO_CENTRAL) # LE Set Connection CTE Receive Parameters. Value required to store max allowed number # of antenna ids for platforms other than Nordic. default 83 if (!BT_EXT_ADV && !BT_CLASSIC && BT_CTLR_DF && BT_CTLR_DF_CONN_CTE_REQ && !SOC_COMPATIBLE_NRF) # LE Generate DHKey v2 command default 65 - range 65 255 + range 65 $(UINT8_MAX) help Maximum data size for each HCI Command buffer. This value does not include the HCI Command header. diff --git a/subsys/bluetooth/controller/Kconfig b/subsys/bluetooth/controller/Kconfig index cccb9a7ffde966..caca6d7fc48676 100644 --- a/subsys/bluetooth/controller/Kconfig +++ b/subsys/bluetooth/controller/Kconfig @@ -214,7 +214,7 @@ config BT_CTLR_ISO_RX_BUFFERS config BT_CTLR_ISO_TX_BUFFERS int "Number of Isochronous Tx buffers" depends on BT_CTLR_ADV_ISO || BT_CTLR_CONN_ISO - range 1 255 + range 1 $(UINT8_MAX) default BT_ISO_TX_BUF_COUNT if BT_ISO default 3 help @@ -225,7 +225,7 @@ config BT_CTLR_ISO_TX_BUFFER_SIZE int "Isochronous Tx buffer size" depends on BT_CTLR_ADV_ISO || BT_CTLR_CONN_ISO range 9 4103 if BT_LL_SW_SPLIT - range 1 65535 + range 1 $(UINT16_MAX) default 9 if BT_LL_SW_SPLIT default 1 help @@ -750,7 +750,7 @@ config BT_CTLR_SYNC_PERIODIC_ADV_LIST config BT_CTLR_SYNC_PERIODIC_ADV_LIST_SIZE int "LE Periodic Advertiser List size" depends on BT_CTLR_SYNC_PERIODIC_ADV_LIST - range 1 255 + range 1 $(UINT8_MAX) default 8 help Set Periodic Advertiser List size, this will be return in the HCI LE @@ -987,8 +987,8 @@ config BT_CTLR_CONN_ISO_STREAMS_MAX_NSE config BT_CTLR_CONN_ISO_STREAMS_MAX_FT int "LE Connected Isochronous Streams max flush timeout" depends on BT_CTLR_CONN_ISO - range 1 255 - default 255 + range 1 $(UINT8_MAX) + default $(UINT8_MAX) help Maximum number of CIS flush timeout events. diff --git a/subsys/bluetooth/controller/Kconfig.ll_sw_split b/subsys/bluetooth/controller/Kconfig.ll_sw_split index 2051e038bfeb71..cc38dba66bd218 100644 --- a/subsys/bluetooth/controller/Kconfig.ll_sw_split +++ b/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 int "Maximum Advertising Extensions Receive PDU Length" depends on BT_OBSERVER - range 255 255 if BT_HCI_RAW - range 31 255 - default 255 + range $(UINT8_MAX) $(UINT8_MAX) if BT_HCI_RAW + range 31 $(UINT8_MAX) + default $(UINT8_MAX) help Maximum Advertising Extensions Receive PDU Length. @@ -713,7 +713,7 @@ config BT_CTLR_CENTRAL_SPACING int "Central Connection Spacing" depends on BT_CTLR_SCHED_ADVANCED default 0 - range 0 65535 + range 0 $(UINT16_MAX) help The preferred connection spacing between multiple simultaneous central roles in microseconds. The Controller will calculate the required time @@ -894,7 +894,7 @@ config BT_CTLR_LLCP_PER_CONN_TX_CTRL_BUF_NUM config BT_CTLR_LLCP_COMMON_TX_CTRL_BUF_NUM int "Number of tx control buffers to be available across all connections" default 0 - range 0 255 + range 0 $(UINT8_MAX) help Set the number control buffers that is to be available for tx. This defines the size of the pool of tx buffers available @@ -907,7 +907,7 @@ config BT_CTLR_LLCP_LOCAL_PROC_CTX_BUF_NUM default 6 if (BT_AUTO_PHY_UPDATE=y || BT_AUTO_DATA_LEN_UPDATE=y) && BT_CTLR_LLCP_CONN < 4 default 2 if BT_CTLR_LLCP_CONN = 1 default BT_CTLR_LLCP_CONN if BT_CTLR_LLCP_CONN > 1 - range 2 255 + range 2 $(UINT8_MAX) help Set the number control procedure contexts that is to be available. This defines the size of the pool of control procedure contexts available @@ -917,7 +917,7 @@ config BT_CTLR_LLCP_LOCAL_PROC_CTX_BUF_NUM config BT_CTLR_LLCP_REMOTE_PROC_CTX_BUF_NUM int "Number of remote control procedure contexts to be available across all connections" default BT_CTLR_LLCP_CONN - range 1 255 + range 1 $(UINT8_MAX) help Set the number control procedure contexts that is to be available. This defines the size of the pool of control procedure contexts available @@ -951,7 +951,7 @@ config BT_CTLR_THROUGHPUT config BT_CTLR_FORCE_MD_COUNT int "Forced MD bit count" if !BT_CTLR_FORCE_MD_AUTO depends on !BT_CTLR_LOW_LAT_ULL - range 0 255 + range 0 $(UINT8_MAX) default 1 if BT_CTLR_FORCE_MD_AUTO default 0 help @@ -1225,7 +1225,7 @@ config BT_RX_USER_PDU_LEN int "Maximum supported proprietary PDU buffer length" depends on BT_CTLR_USER_EXT default 2 - range 2 255 + range 2 $(UINT8_MAX) help Maximum data size for each proprietary PDU. This size includes link layer header and payload. It does not account for HCI event headers as these diff --git a/subsys/bluetooth/host/Kconfig b/subsys/bluetooth/host/Kconfig index 86c8dbbce18bc6..bb1bc48bead42e 100644 --- a/subsys/bluetooth/host/Kconfig +++ b/subsys/bluetooth/host/Kconfig @@ -287,7 +287,7 @@ if BT_CONN config BT_CONN_TX_MAX int "Maximum number of pending TX buffers with a callback" default BT_BUF_ACL_TX_COUNT - range BT_BUF_ACL_TX_COUNT 255 + range BT_BUF_ACL_TX_COUNT $(UINT8_MAX) help Maximum number of pending TX buffers that have an associated callback. Normally this can be left to the default value, which @@ -440,7 +440,7 @@ config BT_RPA_TIMEOUT int "Resolvable Private Address timeout" depends on BT_PRIVACY default 900 - range 1 65535 + range 1 $(UINT16_MAX) help This option defines how often resolvable private address is rotated. Value is provided in seconds and defaults to 900 seconds (15 minutes). @@ -702,7 +702,7 @@ config BT_CREATE_CONN_TIMEOUT config BT_CONN_PARAM_UPDATE_TIMEOUT int "Peripheral connection parameter update timeout in milliseconds" default 5000 - range 0 65535 + range 0 $(UINT16_MAX) help The value is a timeout used by peripheral device to wait until it starts the first connection parameters update procedure after a @@ -718,7 +718,7 @@ config BT_CONN_PARAM_UPDATE_TIMEOUT config BT_CONN_PARAM_RETRY_COUNT int "Peripheral connection parameter update retry attempts" default 3 - range 0 255 + range 0 $(UINT8_MAX) help This value corresponds to number of times to retry connection parameter update to attain the preferred value set in GATT @@ -727,7 +727,7 @@ config BT_CONN_PARAM_RETRY_COUNT config BT_CONN_PARAM_RETRY_TIMEOUT int "Peripheral connection parameter update retry timeout in milliseconds" default 5000 - range 0 65535 + range 0 $(UINT16_MAX) help The value is a timeout used by peripheral device to wait until retry to attempt requesting again the preferred connection parameters. @@ -819,7 +819,7 @@ config BT_DEVICE_APPEARANCE_GATT_WRITABLE config BT_DEVICE_APPEARANCE int "Bluetooth device appearance" - range 0 65535 + range 0 $(UINT16_MAX) default 0 help Bluetooth device appearance. For the list of possible values please diff --git a/subsys/bluetooth/host/Kconfig.gatt b/subsys/bluetooth/host/Kconfig.gatt index 45e3fa8e4fca0a..0b461f7b747e14 100644 --- a/subsys/bluetooth/host/Kconfig.gatt +++ b/subsys/bluetooth/host/Kconfig.gatt @@ -9,7 +9,7 @@ config BT_ATT_TX_COUNT int "Number of ATT buffers" default BT_BUF_ACL_TX_COUNT default 3 - range 1 255 + range 1 $(UINT8_MAX) help These buffers are only used for sending anything over ATT. Requests, responses, indications, confirmations, notifications. @@ -223,14 +223,14 @@ if BT_GAP_PERIPHERAL_PREF_PARAMS config BT_PERIPHERAL_PREF_MIN_INT int "Peripheral preferred minimum connection interval in 1.25ms units" default 24 - range 6 65535 if !BT_CONN_PARAM_ANY + range 6 $(UINT16_MAX) if !BT_CONN_PARAM_ANY help Range 3200 to 65534 is invalid. 65535 represents no specific value. config BT_PERIPHERAL_PREF_MAX_INT int "Peripheral preferred maximum connection interval in 1.25ms units" default 40 - range 6 65535 if !BT_CONN_PARAM_ANY + range 6 $(UINT16_MAX) if !BT_CONN_PARAM_ANY help Range 3200 to 65534 is invalid. 65535 represents no specific value. @@ -242,7 +242,7 @@ config BT_PERIPHERAL_PREF_LATENCY config BT_PERIPHERAL_PREF_TIMEOUT int "Peripheral preferred supervision timeout in 10ms units" default 42 - range 10 65535 if !BT_CONN_PARAM_ANY + range 10 $(UINT16_MAX) if !BT_CONN_PARAM_ANY help It is up to user to provide valid timeout which pass required minimum value: in milliseconds it shall be larger than diff --git a/subsys/bluetooth/host/Kconfig.l2cap b/subsys/bluetooth/host/Kconfig.l2cap index b00a907514fb9c..6499fbb19a8615 100644 --- a/subsys/bluetooth/host/Kconfig.l2cap +++ b/subsys/bluetooth/host/Kconfig.l2cap @@ -9,14 +9,14 @@ menu "L2CAP Options" config BT_L2CAP_TX_BUF_COUNT int "Number of L2CAP TX buffers" default BT_BUF_ACL_TX_COUNT - range 2 255 + range 2 $(UINT8_MAX) help Number of buffers available for outgoing L2CAP packets. config BT_L2CAP_TX_FRAG_COUNT int "Number of L2CAP TX fragment buffers" default 2 - range 0 255 + range 0 $(UINT8_MAX) help Number of buffers available for fragments of TX buffers. Warning: setting this to 0 means that the application must ensure that diff --git a/subsys/bluetooth/host/classic/Kconfig b/subsys/bluetooth/host/classic/Kconfig index 9c47a8b53f6126..221905d1d8cce5 100644 --- a/subsys/bluetooth/host/classic/Kconfig +++ b/subsys/bluetooth/host/classic/Kconfig @@ -36,7 +36,7 @@ config BT_RFCOMM_L2CAP_MTU int "L2CAP MTU for RFCOMM frames" depends on BT_RFCOMM default BT_BUF_ACL_RX_SIZE - range 23 32767 + range 23 $(INT16_MAX) help Maximum size of L2CAP PDU for RFCOMM frames. RX MTU will be truncated to account for the L2CAP PDU header. @@ -44,7 +44,7 @@ config BT_RFCOMM_L2CAP_MTU config BT_RFCOMM_TX_MAX int "Maximum number of pending TX buffers for RFCOMM" default BT_CONN_TX_MAX - range BT_CONN_TX_MAX 255 + range BT_CONN_TX_MAX $(UINT8_MAX) help Maximum number of pending TX buffers that have an associated sending buf. Normally this can be left to the default value, which @@ -82,7 +82,7 @@ if BT_HFP_AG config BT_HFP_AG_TX_BUF_COUNT int "Maximum number of TX buffers for HFP AG [EXPERIMENTAL]" default BT_RFCOMM_TX_MAX - range BT_RFCOMM_TX_MAX 255 + range BT_RFCOMM_TX_MAX $(UINT8_MAX) help Maximum number of pending TX buffers that have an associated sending buf. Normally this can be left to the default value, which @@ -129,7 +129,7 @@ config BT_HFP_AG_ALERTING_TIMEOUT config BT_HFP_AG_PHONE_NUMBER_MAX_LEN int "Supported max length of phone number for HFP AG [EXPERIMENTAL]" default 32 - range 1 255 + range 1 $(UINT8_MAX) help Supported max length of phone number for HFP AG. diff --git a/subsys/bluetooth/mesh/Kconfig b/subsys/bluetooth/mesh/Kconfig index bcf781e72d2441..2b5dd5f81951b0 100644 --- a/subsys/bluetooth/mesh/Kconfig +++ b/subsys/bluetooth/mesh/Kconfig @@ -378,7 +378,7 @@ config BT_MESH_NETWORK_TRANSMIT_INTERVAL config BT_MESH_MSG_CACHE_SIZE int "Network message cache size" default 32 - range 2 65535 + range 2 $(UINT16_MAX) help Number of messages that are cached by the node to avoid acting on the recently seen duplicate messages. This option is similar to @@ -448,7 +448,7 @@ menu "Transport SAR configuration" config BT_MESH_TX_SEG_MSG_COUNT int "Maximum number of simultaneous outgoing segmented messages" default 1 - range 0 255 + range 0 $(UINT8_MAX) help Maximum number of simultaneous outgoing multi-segment and/or reliable messages. @@ -460,7 +460,7 @@ config BT_MESH_TX_SEG_MSG_COUNT config BT_MESH_RX_SEG_MSG_COUNT int "Maximum number of simultaneous incoming segmented messages" default 1 - range 0 255 + range 0 $(UINT8_MAX) help Maximum number of simultaneous incoming multi-segment and/or reliable messages. @@ -665,7 +665,7 @@ menu "Replay Protection List" config BT_MESH_CRPL int "Maximum capacity of the replay protection list" default 10 - range 2 65535 + range 2 $(UINT16_MAX) help This options specifies the maximum capacity of the replay protection list. This option is similar to the network message @@ -727,7 +727,7 @@ config BT_MESH_COMP_PAGE_1 config BT_MESH_MODEL_EXTENSION_LIST_SIZE int "Model extensions list size" depends on BT_MESH_COMP_PAGE_1 - range 0 255 + range 0 $(UINT8_MAX) default 0 if !BT_MESH_MODEL_EXTENSIONS default 10 help @@ -963,8 +963,8 @@ config BT_MESH_DFU_FWID_MAXLEN config BT_MESH_DFU_METADATA_MAXLEN int "DFU metadata max length" default 32 - range 18 255 if BT_MESH_DFU_METADATA - range 0 255 + range 18 $(UINT8_MAX) if BT_MESH_DFU_METADATA + range 0 $(UINT8_MAX) help This value defines the maximum length of an image's metadata. @@ -977,7 +977,7 @@ config BT_MESH_DFU_METADATA config BT_MESH_DFU_URI_MAXLEN int "DFU URI max length" default 32 - range 0 255 + range 0 $(UINT8_MAX) help This value defines the maximum length of an image's URI, not including a string terminator. @@ -996,7 +996,7 @@ if BT_MESH_DFU_SLOTS config BT_MESH_DFU_SLOT_CNT int "Number of firmware image slots" default 1 - range 1 32767 + range 1 $(INT16_MAX) help This value defines the number of firmware slots the DFU image slot manager can keep simultaneously. @@ -1022,7 +1022,7 @@ config BT_MESH_DFD_SRV_SLOT_MAX_SIZE config BT_MESH_DFD_SRV_SLOT_SPACE int "Total DFU image storage space" default BT_MESH_DFD_SRV_SLOT_MAX_SIZE - range 0 4294967295 + range 0 $(UINT32_MAX) help This value defines the total storage space dedicated to storing DFU images on the Firmware Distribution Server. @@ -1030,7 +1030,7 @@ config BT_MESH_DFD_SRV_SLOT_SPACE config BT_MESH_DFD_SRV_TARGETS_MAX int "Maximum Target node count" default 8 - range 1 65535 + range 1 $(UINT16_MAX) help This value defines the maximum number of Target nodes the Firmware Distribution Server can target simultaneously. @@ -1078,7 +1078,7 @@ config BT_MESH_RPR_AD_TYPES_MAX config BT_MESH_RPR_SRV_SCANNED_ITEMS_MAX int "Max scannable unprovisioned devices for Remote Provisioning Server" default 4 - range 4 255 + range 4 $(UINT8_MAX) help Max number of unique unprovisioned devices a single Remote Provisioning Server can hold. @@ -1086,7 +1086,7 @@ config BT_MESH_RPR_SRV_SCANNED_ITEMS_MAX config BT_MESH_RPR_SRV_AD_DATA_MAX int "Max additional advertisement data to report" default 31 - range 3 255 + range 3 $(UINT8_MAX) help Buffer size for the additional advertisement data reported during extended scanning. @@ -1202,7 +1202,7 @@ config BT_MESH_PROXY_SRPL_SIZE int "Size of solicitation replay protection list (SRPL)" depends on BT_MESH_OD_PRIV_PROXY_SRV default 10 - range 1 255 + range 1 $(UINT8_MAX) help Size of SRPL. The list is used to determine if a received Solicitation PDU is valid. It is valid when the SSRC field value of the received Solicitation PDU @@ -1271,7 +1271,7 @@ config BT_MESH_PROXY_USE_DEVICE_NAME config BT_MESH_PROXY_FILTER_SIZE int "Maximum number of filter entries per Proxy Client" default 16 - range 1 32767 + range 1 $(INT16_MAX) help This option specifies how many Proxy Filter entries the local node supports. This helps in reducing unwanted traffic getting sent to @@ -1518,8 +1518,8 @@ config BT_MESH_LPN_MIN_QUEUE_SIZE config BT_MESH_LPN_RECV_DELAY int "Receive delay requested by the local node" - range 50 255 if BT_MESH_ADV_LEGACY - range 10 255 + range 50 $(UINT8_MAX) if BT_MESH_ADV_LEGACY + range 10 $(UINT8_MAX) default 100 help The ReceiveDelay is the time between the Low Power node @@ -1593,8 +1593,8 @@ config BT_MESH_FRIEND_ENABLED config BT_MESH_FRIEND_RECV_WIN int "Friend Receive Window" - range 1 255 - default 255 + range 1 $(UINT8_MAX) + default $(UINT8_MAX) help Receive Window in milliseconds supported by the Friend node. diff --git a/subsys/dap/Kconfig b/subsys/dap/Kconfig index 2436ba71c4eec8..cfa50bf80ea991 100644 --- a/subsys/dap/Kconfig +++ b/subsys/dap/Kconfig @@ -13,7 +13,7 @@ if DAP config CMSIS_DAP_PACKET_COUNT int "Maximum packet buffers for request and response data." default 4 - range 1 255 + range 1 $(UINT8_MAX) help Maximum packet buffers for request and response data. diff --git a/subsys/fs/Kconfig.fatfs b/subsys/fs/Kconfig.fatfs index 9af43481405be1..6350809eecab98 100644 --- a/subsys/fs/Kconfig.fatfs +++ b/subsys/fs/Kconfig.fatfs @@ -135,8 +135,8 @@ config FS_FATFS_FF_USE_LFN config FS_FATFS_MAX_LFN int "Max filename length" - range 12 255 - default 255 + range 12 $(UINT8_MAX) + default $(UINT8_MAX) help The working buffer occupies (FS_FATFS_MAX_LFN + 1) * 2 bytes and additional 608 bytes at exFAT enabled. diff --git a/subsys/ipc/ipc_service/backends/Kconfig.icmsg_me b/subsys/ipc/ipc_service/backends/Kconfig.icmsg_me index e348984fb621e0..a0cf32195f52af 100644 --- a/subsys/ipc/ipc_service/backends/Kconfig.icmsg_me +++ b/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 int "Size of sending buffer size" - range 1 65535 - default 255 + range 1 $(UINT16_MAX) + default $(UINT8_MAX) help Size of a static buffer used for preparring data to send in sending function. If you are sure that your application never sends data diff --git a/subsys/mgmt/mcumgr/transport/Kconfig.bluetooth b/subsys/mgmt/mcumgr/transport/Kconfig.bluetooth index bb442d019850d3..199ec2a668c21d 100644 --- a/subsys/mgmt/mcumgr/transport/Kconfig.bluetooth +++ b/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 int "Connection parameters restore time in milliseconds" default 5000 - range 1000 65535 + range 1000 $(UINT16_MAX) help The value is a time of inactivity on the SMP characteristic after which connection parameters are restored to peripheral preferred values diff --git a/subsys/mgmt/osdp/Kconfig.pd b/subsys/mgmt/osdp/Kconfig.pd index cc8d0661601932..59a7ec7ffb75f3 100644 --- a/subsys/mgmt/osdp/Kconfig.pd +++ b/subsys/mgmt/osdp/Kconfig.pd @@ -59,14 +59,14 @@ config OSDP_PD_ID_VENDOR_CODE config OSDP_PD_ID_MODEL int "PD Product Model Number" default 1 - range 0 255 + range 0 $(UINT8_MAX) help Manufacturer's model number. Least 8 bits are valid. config OSDP_PD_ID_VERSION int "PD Product Version" default 1 - range 0 255 + range 0 $(UINT8_MAX) help Manufacturer's version of this product. Least 8 bits are valid. diff --git a/subsys/net/ip/Kconfig.ipv4 b/subsys/net/ip/Kconfig.ipv4 index 69279f7a44965e..a108a015fbedea 100644 --- a/subsys/net/ip/Kconfig.ipv4 +++ b/subsys/net/ip/Kconfig.ipv4 @@ -14,7 +14,7 @@ if NET_IPV4 config NET_INITIAL_TTL int "Initial IPv4 time to live value for unicast packets" default 64 - range 0 255 + range 0 $(UINT8_MAX) help The value should normally be > 0. The device receiving the IPv4 packet will decrement the value and will drop the packet if the TTL @@ -24,7 +24,7 @@ config NET_INITIAL_TTL config NET_INITIAL_MCAST_TTL int "Initial IPv4 time to live value for multicast packets" default 1 - range 0 255 + range 0 $(UINT8_MAX) help The value should normally be > 0. The device receiving the IPv4 packet will decrement the value and will drop the packet if the TTL diff --git a/subsys/net/ip/Kconfig.ipv6 b/subsys/net/ip/Kconfig.ipv6 index b17071b01146aa..1769903ded653e 100644 --- a/subsys/net/ip/Kconfig.ipv6 +++ b/subsys/net/ip/Kconfig.ipv6 @@ -49,7 +49,7 @@ config NET_IPV6_MTU config NET_INITIAL_HOP_LIMIT int "Initial IPv6 hop limit value for unicast packets" default 64 - range 0 255 + range 0 $(UINT8_MAX) help The value should normally be > 0. The device receiving the IPv6 packet will decrement the value and will drop the packet if the hop @@ -59,7 +59,7 @@ config NET_INITIAL_HOP_LIMIT config NET_INITIAL_MCAST_HOP_LIMIT int "Initial IPv6 hop limit value for multicast packets" default 1 - range 0 255 + range 0 $(UINT8_MAX) help The value should normally be > 0. The device receiving the IPv6 packet will decrement the value and will drop the packet if the hop diff --git a/subsys/net/ip/Kconfig.tcp b/subsys/net/ip/Kconfig.tcp index 8dfc0ea7d1aea0..53f82fcfa7fd73 100644 --- a/subsys/net/ip/Kconfig.tcp +++ b/subsys/net/ip/Kconfig.tcp @@ -69,7 +69,7 @@ config NET_TCP_ACK_TIMEOUT int "[DEPRECATED] How long to wait for ACK (in milliseconds)" depends on NET_TCP default 1000 - range 1 2147483647 + range 1 $(INT32_MAX) help Deprecated. Use CONFIG_NET_TCP_INIT_RETRANSMISSION_TIMEOUT and CONFIG_NET_TCP_RETRY_COUNT to control the total timeout at the TCP @@ -119,7 +119,7 @@ config NET_TCP_MAX_SEND_WINDOW_SIZE int "Maximum sending window size to use" depends on NET_TCP default 0 - range 0 65535 + range 0 $(UINT16_MAX) help This value affects how the TCP selects the maximum sending window size. The default value 0 lets the TCP stack select the value @@ -129,7 +129,7 @@ config NET_TCP_MAX_RECV_WINDOW_SIZE int "Maximum receive window size to use" depends on NET_TCP default 0 - range 0 65535 + range 0 $(UINT16_MAX) help This value defines the maximum TCP receive window size. Increasing this value can improve connection throughput, but requires more diff --git a/subsys/net/l2/ethernet/Kconfig b/subsys/net/l2/ethernet/Kconfig index e6fd07e47e28f6..1b61c251d8dd63 100644 --- a/subsys/net/l2/ethernet/Kconfig +++ b/subsys/net/l2/ethernet/Kconfig @@ -33,7 +33,7 @@ config NET_VLAN config NET_VLAN_COUNT int "Max VLAN tags supported in the system" default 1 - range 1 255 + range 1 $(UINT8_MAX) depends on NET_VLAN help How many VLAN tags can be configured. diff --git a/subsys/net/l2/ethernet/gptp/Kconfig b/subsys/net/l2/ethernet/gptp/Kconfig index 0ca1e1f93e8179..c904a58a568694 100644 --- a/subsys/net/l2/ethernet/gptp/Kconfig +++ b/subsys/net/l2/ethernet/gptp/Kconfig @@ -183,8 +183,8 @@ config NET_GPTP_PATH_TRACE_ELEMENTS config NET_GPTP_BMCA_PRIORITY1 int "BMCA priority1 value" default 248 if NET_GPTP_GM_CAPABLE - default 255 - range 0 255 + default $(UINT8_MAX) + range 0 $(UINT8_MAX) help The priority1 attribute of the local clock. It is used in the Best Master Clock selection Algorithm (BMCA), lower values take @@ -197,7 +197,7 @@ config NET_GPTP_BMCA_PRIORITY1 config NET_GPTP_BMCA_PRIORITY2 int "BMCA priority2 value" default 248 - range 0 255 + range 0 $(UINT8_MAX) help The priority2 attribute of the local clock. It is used in the BMCA (Best Master Clock selection Algorithm), lower values take diff --git a/subsys/net/l2/ppp/Kconfig b/subsys/net/l2/ppp/Kconfig index 56960e38ddacc3..1dc6baf601aaaf 100644 --- a/subsys/net/l2/ppp/Kconfig +++ b/subsys/net/l2/ppp/Kconfig @@ -13,14 +13,14 @@ if NET_L2_PPP config NET_L2_PPP_TIMEOUT int "Maximum timeout in ms for Configure-Req" default 3000 - range 1 4294967295 + range 1 $(UINT32_MAX) help How long to wait Configure-Req. config NET_L2_PPP_MAX_CONFIGURE_REQ_RETRANSMITS int "Maximum number of Configure-Req retransmits" default 10 - range 0 4294967295 + range 0 $(UINT32_MAX) help How many times to resend Configure-Req messages before deciding the link is not working properly. @@ -28,7 +28,7 @@ config NET_L2_PPP_MAX_CONFIGURE_REQ_RETRANSMITS config NET_L2_PPP_MAX_TERMINATE_REQ_RETRANSMITS int "Maximum number of Terminate-Req retransmits" default 2 - range 0 4294967295 + range 0 $(UINT32_MAX) help How many times to resend Terminate-Req messages before terminating the link. @@ -36,7 +36,7 @@ config NET_L2_PPP_MAX_TERMINATE_REQ_RETRANSMITS config NET_L2_PPP_MAX_NACK_LOOPS int "Maximum number of NACK loops accepted" default 5 - range 0 4294967295 + range 0 $(UINT32_MAX) help How many times to accept NACK loops. diff --git a/subsys/net/lib/dhcpv4/Kconfig b/subsys/net/lib/dhcpv4/Kconfig index 8c01cd3e1fa915..f7b13dbb6fd862 100644 --- a/subsys/net/lib/dhcpv4/Kconfig +++ b/subsys/net/lib/dhcpv4/Kconfig @@ -41,7 +41,7 @@ config NET_DHCPV4_MAX_REQUESTED_OPTIONS int "Maximum number of requested options" depends on NET_DHCPV4 && NET_DHCPV4_OPTION_CALLBACKS default 10 - range 3 255 + range 3 $(UINT8_MAX) help Maximum number of requested options that can be added to the DHCPv4 request message. The options are added using the @@ -121,7 +121,7 @@ config NET_DHCPV4_SERVER_ADDR_COUNT config NET_DHCPV4_SERVER_ADDR_LEASE_TIME int "Lease time for IPv4 addresses assigned by the server (seconds)" - range 0 4294967295 + range 0 $(UINT32_MAX) default 86400 help Lease time in seconds for IPv4 addresses assigned by the server. @@ -130,7 +130,7 @@ config NET_DHCPV4_SERVER_ADDR_LEASE_TIME config NET_DHCPV4_SERVER_ADDR_DECLINE_TIME int "The time IPv4 addresses remains blocked after conflict detection (seconds)" - range 0 4294967295 + range 0 $(UINT32_MAX) default 86400 help In case IPv4 address becomes blocked (either because of receiving diff --git a/subsys/net/lib/dns/Kconfig b/subsys/net/lib/dns/Kconfig index 03ca268cc76383..f39f97277d4d3c 100644 --- a/subsys/net/lib/dns/Kconfig +++ b/subsys/net/lib/dns/Kconfig @@ -63,8 +63,8 @@ config DNS_RESOLVER_MAX_SERVERS config DNS_RESOLVER_MAX_QUERY_LEN int "Max length of a DNS query" - range 1 255 - default 255 + range 1 $(UINT8_MAX) + default $(UINT8_MAX) help Max length of a DNS query that should be looked up including the trailing 0. So e.g. "example.com" would have a query len of 12. diff --git a/subsys/net/lib/lwm2m/Kconfig b/subsys/net/lib/lwm2m/Kconfig index 79323b165adf46..8046693f6d3169 100644 --- a/subsys/net/lib/lwm2m/Kconfig +++ b/subsys/net/lib/lwm2m/Kconfig @@ -494,7 +494,7 @@ endmenu # "Content format supports" config LWM2M_ENGINE_DEFAULT_LIFETIME int "LWM2M engine default server connection lifetime" default 30 - range 15 4294967295 + range 15 $(UINT32_MAX) help Set the default lifetime (in seconds) for the LwM2M library engine. This is also a minimum lifetime that client accepts. If server sets lifetime @@ -503,7 +503,7 @@ config LWM2M_ENGINE_DEFAULT_LIFETIME config LWM2M_UPDATE_PERIOD int "LwM2M engine update period" default 0 - range 0 4294967295 + range 0 $(UINT32_MAX) help Time period after the previous update or registration when to send the next update message. This allows modifying lifetime without affecting the update period. @@ -513,7 +513,7 @@ config LWM2M_UPDATE_PERIOD config LWM2M_SECONDS_TO_UPDATE_EARLY int "LWM2M Registration Update transmission time before timeout" default 10 - range 1 4294967295 + range 1 $(UINT32_MAX) help Time in seconds before the registration timeout, when the LWM2M Registration Update is sent by the engine. In networks with large diff --git a/subsys/net/lib/mqtt_sn/Kconfig b/subsys/net/lib/mqtt_sn/Kconfig index 9d0ad03b1b8429..ffac23d907de93 100644 --- a/subsys/net/lib/mqtt_sn/Kconfig +++ b/subsys/net/lib/mqtt_sn/Kconfig @@ -13,7 +13,7 @@ if MQTT_SN_LIB config MQTT_SN_LIB_MAX_PAYLOAD_SIZE int "Maximum payload size of an MQTT-SN message" - default 255 + default $(UINT8_MAX) config MQTT_SN_LIB_MAX_MSGS int "Number of preallocated messages" diff --git a/subsys/net/lib/ptp/Kconfig b/subsys/net/lib/ptp/Kconfig index 48684c913937f9..99fe8bea7667c8 100644 --- a/subsys/net/lib/ptp/Kconfig +++ b/subsys/net/lib/ptp/Kconfig @@ -171,12 +171,12 @@ config PTP_CLOCK_ACCURACY config PTP_PRIORITY1 int "Value used in the Best TimeTransmitter Clock Algorithm (BTCA)" default 128 - range 0 255 + range 0 $(UINT8_MAX) config PTP_PRIORITY2 int "Value used in the Best TimeTransmitter Clock Algorithm (BTCA)" default 128 - range 0 255 + range 0 $(UINT8_MAX) config PTP_TIME_RECEIVER_ONLY bool "Configure Clock as timeReceiver PTP Instance" diff --git a/subsys/net/lib/sockets/Kconfig b/subsys/net/lib/sockets/Kconfig index 2fe534678fa1c7..6a9113d9c152dd 100644 --- a/subsys/net/lib/sockets/Kconfig +++ b/subsys/net/lib/sockets/Kconfig @@ -216,7 +216,7 @@ config NET_SOCKETS_DTLS_MAX_FRAGMENT_LENGTH config NET_SOCKETS_DTLS_SENDMSG_BUF_SIZE int "Intermediate buffer size for DTLS sendmsg()" depends on NET_SOCKETS_ENABLE_DTLS - range 0 65535 + range 0 $(UINT16_MAX) default 0 help Size of the intermediate buffer for DTLS sendmsg() function. The diff --git a/subsys/portability/cmsis_rtos_v1/Kconfig b/subsys/portability/cmsis_rtos_v1/Kconfig index 942ea020118693..bf556a0f233f3f 100644 --- a/subsys/portability/cmsis_rtos_v1/Kconfig +++ b/subsys/portability/cmsis_rtos_v1/Kconfig @@ -24,21 +24,21 @@ config CMSIS_THREAD_MAX_STACK_SIZE config CMSIS_TIMER_MAX_COUNT int "Maximum timer count in CMSIS application" default 5 - range 0 255 + range 0 $(UINT8_MAX) help Mention maximum number of timers in CMSIS compliant application. config CMSIS_MUTEX_MAX_COUNT int "Maximum mutex count in CMSIS application" default 5 - range 0 255 + range 0 $(UINT8_MAX) help Mention maximum number of mutexes in CMSIS compliant application. config CMSIS_SEMAPHORE_MAX_COUNT int "Maximum semaphore count in CMSIS application" default 5 - range 0 255 + range 0 $(UINT8_MAX) help Mention maximum number of semaphores in CMSIS compliant application. diff --git a/subsys/portability/cmsis_rtos_v2/Kconfig b/subsys/portability/cmsis_rtos_v2/Kconfig index 31e966559264a6..0701204803643f 100644 --- a/subsys/portability/cmsis_rtos_v2/Kconfig +++ b/subsys/portability/cmsis_rtos_v2/Kconfig @@ -18,7 +18,7 @@ if CMSIS_RTOS_V2 config CMSIS_V2_THREAD_MAX_COUNT int "Maximum thread count in CMSIS RTOS V2 application" default 15 - range 0 255 + range 0 $(UINT8_MAX) help Mention max number of threads in CMSIS RTOS V2 compliant application. There's a limitation on the number of threads due to memory @@ -27,7 +27,7 @@ config CMSIS_V2_THREAD_MAX_COUNT config CMSIS_V2_THREAD_DYNAMIC_MAX_COUNT int "Maximum dynamic thread count in CMSIS RTOS V2 application" default 0 - range 0 255 + range 0 $(UINT8_MAX) help Mention max number of dynamic threads in CMSIS RTOS V2 compliant application. There's a limitation on the number of threads due to memory @@ -51,28 +51,28 @@ config CMSIS_V2_THREAD_DYNAMIC_STACK_SIZE config CMSIS_V2_TIMER_MAX_COUNT int "Maximum timer count in CMSIS RTOS V2 application" default 5 - range 0 255 + range 0 $(UINT8_MAX) help Mention maximum number of timers in CMSIS RTOS V2 compliant application. config CMSIS_V2_MUTEX_MAX_COUNT int "Maximum mutex count in CMSIS RTOS V2 application" default 5 - range 0 255 + range 0 $(UINT8_MAX) help Mention max number of mutexes in CMSIS RTOS V2 compliant application. config CMSIS_V2_SEMAPHORE_MAX_COUNT int "Maximum semaphore count in CMSIS RTOS V2 application" default 5 - range 0 255 + range 0 $(UINT8_MAX) help Mention max number of semaphores in CMSIS RTOS V2 compliant application. config CMSIS_V2_MEM_SLAB_MAX_COUNT int "Maximum mem slab count in CMSIS RTOS V2 application" default 5 - range 0 255 + range 0 $(UINT8_MAX) help Mention maximum number of memory slabs in CMSIS RTOS V2 compliant application. @@ -85,7 +85,7 @@ config CMSIS_V2_MEM_SLAB_MAX_DYNAMIC_SIZE config CMSIS_V2_MSGQ_MAX_COUNT int "Maximum message queue count in CMSIS RTOS V2 application" default 5 - range 0 255 + range 0 $(UINT8_MAX) help Mention maximum number of message queues in CMSIS RTOS V2 compliant application. @@ -98,7 +98,7 @@ config CMSIS_V2_MSGQ_MAX_DYNAMIC_SIZE config CMSIS_V2_EVT_FLAGS_MAX_COUNT int "Maximum event flags count in CMSIS RTOS V2 application" default 5 - range 0 255 + range 0 $(UINT8_MAX) help Mention maximum number of event flags in CMSIS RTOS V2 compliant application. endif diff --git a/subsys/settings/Kconfig b/subsys/settings/Kconfig index 09ca97b494d1b4..bc015cde9c7d48 100644 --- a/subsys/settings/Kconfig +++ b/subsys/settings/Kconfig @@ -70,7 +70,7 @@ config SETTINGS_NVS_NAME_CACHE config SETTINGS_NVS_NAME_CACHE_SIZE int "NVS name lookup cache size" default 128 - range 1 65535 + range 1 $(UINT16_MAX) depends on SETTINGS_NVS_NAME_CACHE help Number of entries in Settings NVS name cache. diff --git a/subsys/shell/Kconfig b/subsys/shell/Kconfig index 0c3919d164e7ee..626431b4caea91 100644 --- a/subsys/shell/Kconfig +++ b/subsys/shell/Kconfig @@ -101,7 +101,7 @@ config SHELL_DEFAULT_TERMINAL_HEIGHT config SHELL_ARGC_MAX int "Maximum arguments in shell command" - range 3 255 + range 3 $(UINT8_MAX) default 20 help Maximum number of arguments that can build a command. diff --git a/subsys/shell/backends/Kconfig.backends b/subsys/shell/backends/Kconfig.backends index 78bf1001ebd445..372ba1097659fd 100644 --- a/subsys/shell/backends/Kconfig.backends +++ b/subsys/shell/backends/Kconfig.backends @@ -320,7 +320,7 @@ config SHELL_MQTT_RX_BUF_SIZE config SHELL_MQTT_TX_BUF_SIZE int "TX buffer size" - range 32 65535 + range 32 $(UINT16_MAX) default 256 help Buffer size for the MQTT data transmission.