1
2# Kconfig file for package fal
3menuconfig RT_USING_FAL
4    bool "FAL: flash abstraction layer"
5    default n
6
7if RT_USING_FAL
8    config FAL_USING_DEBUG
9        bool "Enable debug log output"
10        default y if RT_USING_DEBUG
11        default n
12
13    config FAL_PART_HAS_TABLE_CFG
14        bool "FAL partition table config has defined on 'fal_cfg.h'"
15        default y
16        help
17            If defined partition table on 'fal_cfg.h' please enable this option.
18            When this option is disable, it will auto find and load the partition table
19            on a specified location in flash partition.
20
21    if !FAL_PART_HAS_TABLE_CFG
22
23        config FAL_PART_TABLE_FLASH_DEV_NAME
24            string "The flash device which saving partition table"
25            default "onchip"
26             help
27                It will auto find the partition table on this flash device.
28
29        config FAL_PART_TABLE_END_OFFSET
30            int "The patition table end address relative to flash device offset."
31            default 65536
32            help
33                The auto find and load the partition table process is forward from this
34                offset address on flash.
35
36    endif
37
38    config FAL_USING_SFUD_PORT
39        bool "FAL uses SFUD drivers"
40        default n
41        help
42            The fal_flash_sfud_port.c in the samples\porting directory will be used.
43
44    if FAL_USING_SFUD_PORT
45        config FAL_USING_NOR_FLASH_DEV_NAME
46            string "The name of the device used by FAL"
47            default "norflash0"
48    endif
49
50endif
51
52