Browse Source

feat(fal): add Kconfig options for device name length and block count

wdfk-prog 2 ngày trước cách đây
mục cha
commit
5d1f199e9e
1 tập tin đã thay đổi với 21 bổ sung0 xóa
  1. 21 0
      components/fal/Kconfig

+ 21 - 0
components/fal/Kconfig

@@ -47,5 +47,26 @@ if RT_USING_FAL
             default "norflash0"
             default "norflash0"
     endif
     endif
 
 
+    config FAL_DEV_NAME_MAX
+        int "FAL device/partition name max length"
+        default 24
+        range 8 128
+        help
+            Configure the maximum length of flash/partition device name used by FAL.
+            This value corresponds to macro FAL_DEV_NAME_MAX.
+            Increase it if your flash device name or partition name is longer.
+            Note: Larger value may increase memory usage in some implementations.
+
+    config FAL_DEV_BLK_MAX
+        int "FAL max flash device blocks"
+        default 6
+        range 1 32
+        help
+            Configure the maximum number of flash device blocks managed by FAL.
+            This value corresponds to macro FAL_DEV_BLK_MAX.
+            If you have multiple flash devices (onchip/spi-nor/spi-nand, etc.)
+            or multiple underlying blocks, increase this value accordingly.
+            Note: Larger value may increase RAM/ROM usage.
+
 endif
 endif