Skip to content

Commit 5d1f199

Browse files
wdfk-progRbb666
authored andcommitted
feat(fal): add Kconfig options for device name length and block count
1 parent f556099 commit 5d1f199

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

components/fal/Kconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,26 @@ if RT_USING_FAL
4747
default "norflash0"
4848
endif
4949

50+
config FAL_DEV_NAME_MAX
51+
int "FAL device/partition name max length"
52+
default 24
53+
range 8 128
54+
help
55+
Configure the maximum length of flash/partition device name used by FAL.
56+
This value corresponds to macro FAL_DEV_NAME_MAX.
57+
Increase it if your flash device name or partition name is longer.
58+
Note: Larger value may increase memory usage in some implementations.
59+
60+
config FAL_DEV_BLK_MAX
61+
int "FAL max flash device blocks"
62+
default 6
63+
range 1 32
64+
help
65+
Configure the maximum number of flash device blocks managed by FAL.
66+
This value corresponds to macro FAL_DEV_BLK_MAX.
67+
If you have multiple flash devices (onchip/spi-nor/spi-nand, etc.)
68+
or multiple underlying blocks, increase this value accordingly.
69+
Note: Larger value may increase RAM/ROM usage.
70+
5071
endif
5172

0 commit comments

Comments
 (0)