feat(fal): add Kconfig options for device name length and block count
Some checks failed
ToolsCI / Tools (push) Has been cancelled
RT-Thread BSP Static Build Check / 🔍 Summary of Git Diff Changes (push) Has been cancelled
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (push) Has been cancelled
RT-Thread BSP Static Build Check / collect-artifacts (push) Has been cancelled
pkgs_test / change (push) Has been cancelled
utest_auto_run / A9 :components/dfs.cfg (push) Has been cancelled
utest_auto_run / A9 :components/lwip.cfg (push) Has been cancelled
utest_auto_run / A9 :components/netdev.cfg (push) Has been cancelled
utest_auto_run / A9 :components/sal.cfg (push) Has been cancelled
utest_auto_run / A9 :cpp11/cpp11.cfg (push) Has been cancelled
utest_auto_run / AARCH64-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / A9-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / RISCV-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / XUANTIE-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / AARCH64 :default.cfg (push) Has been cancelled
utest_auto_run / AARCH64-smp :default.cfg (push) Has been cancelled
utest_auto_run / A9 :default.cfg (push) Has been cancelled
utest_auto_run / A9-smp :default.cfg (push) Has been cancelled
utest_auto_run / RISCV :default.cfg (push) Has been cancelled
utest_auto_run / RISCV-smp :default.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/atomic_c11.cfg (push) Has been cancelled
utest_auto_run / RISCV :kernel/atomic_c11.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/ipc.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/kernel_basic.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/mem.cfg (push) Has been cancelled
Weekly CI Scheduler / Trigger and Monitor CIs (push) Has been cancelled
Weekly CI Scheduler / Create Discussion Report (push) Has been cancelled

This commit is contained in:
wdfk-prog
2026-01-26 13:36:01 +08:00
committed by R b b666
parent f556099146
commit 5d1f199e9e

View File

@@ -47,5 +47,26 @@ if RT_USING_FAL
default "norflash0"
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