diff options
| author | wdfk-prog <[email protected]> | 2026-01-26 13:36:01 +0800 |
|---|---|---|
| committer | R b b666 <[email protected]> | 2026-01-26 17:24:39 +0800 |
| commit | 5d1f199e9e44b14e93b6de7e68f73567ee3f371a (patch) | |
| tree | d56bc38d81adfb39f62b36747a112b254fae8fda /components | |
| parent | f556099146dd50f770c609711d48e17a201952bc (diff) | |
feat(fal): add Kconfig options for device name length and block count
Diffstat (limited to 'components')
| -rw-r--r-- | components/fal/Kconfig | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/components/fal/Kconfig b/components/fal/Kconfig index 559014d694..b680afdb62 100644 --- a/components/fal/Kconfig +++ b/components/fal/Kconfig @@ -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 |
