Kconfig 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # Kconfig file for package fal
  2. menuconfig RT_USING_FAL
  3. bool "FAL: flash abstraction layer"
  4. default n
  5. if RT_USING_FAL
  6. config FAL_USING_DEBUG
  7. bool "Enable debug log output"
  8. default y if RT_USING_DEBUG
  9. default n
  10. config FAL_PART_HAS_TABLE_CFG
  11. bool "FAL partition table config has defined on 'fal_cfg.h'"
  12. default y
  13. help
  14. If defined partition table on 'fal_cfg.h' please enable this option.
  15. When this option is disable, it will auto find and load the partition table
  16. on a specified location in flash partition.
  17. if !FAL_PART_HAS_TABLE_CFG
  18. config FAL_PART_TABLE_FLASH_DEV_NAME
  19. string "The flash device which saving partition table"
  20. default "onchip"
  21. help
  22. It will auto find the partition table on this flash device.
  23. config FAL_PART_TABLE_END_OFFSET
  24. int "The patition table end address relative to flash device offset."
  25. default 65536
  26. help
  27. The auto find and load the partition table process is forward from this
  28. offset address on flash.
  29. endif
  30. config FAL_USING_SFUD_PORT
  31. bool "FAL uses SFUD drivers"
  32. default n
  33. help
  34. The fal_flash_sfud_port.c in the samples\porting directory will be used.
  35. if FAL_USING_SFUD_PORT
  36. config FAL_USING_NOR_FLASH_DEV_NAME
  37. string "The name of the device used by FAL"
  38. default "norflash0"
  39. endif
  40. config FAL_DEV_NAME_MAX
  41. int "FAL device/partition name max length"
  42. default 24
  43. range 8 128
  44. help
  45. Configure the maximum length of flash/partition device name used by FAL.
  46. This value corresponds to macro FAL_DEV_NAME_MAX.
  47. Increase it if your flash device name or partition name is longer.
  48. Note: Larger value may increase memory usage in some implementations.
  49. config FAL_DEV_BLK_MAX
  50. int "FAL max flash device blocks"
  51. default 6
  52. range 1 32
  53. help
  54. Configure the maximum number of flash device blocks managed by FAL.
  55. This value corresponds to macro FAL_DEV_BLK_MAX.
  56. If you have multiple flash devices (onchip/spi-nor/spi-nand, etc.)
  57. or multiple underlying blocks, increase this value accordingly.
  58. Note: Larger value may increase RAM/ROM usage.
  59. endif