fal_cfg.h 977 B

123456789101112131415161718192021222324252627
  1. #ifndef _FAL_CFG_H_
  2. #define _FAL_CFG_H_
  3. #include "luat_base.h"
  4. #include "luat_sfd.h"
  5. // #include "sfud.h"
  6. #define FAL_PART_HAS_TABLE_CFG
  7. // #define NOR_FLASH_DEV_NAME "spiflash"
  8. /* ===================== Flash device Configuration ========================= */
  9. extern const struct fal_flash_dev onchip_flash;
  10. //extern struct fal_flash_dev spi_flash0;
  11. /* flash device table */
  12. #define FAL_FLASH_DEV_TABLE \
  13. { \
  14. &onchip_flash \
  15. }
  16. /* ====================== Partition Configuration ========================== */
  17. #define FAL_PART_TABLE \
  18. { \
  19. {FAL_PART_MAGIC_WORD, "onchip_fdb", "onchip_flash", 0, 64*1024, 0} \
  20. }
  21. #endif /* _FAL_CFG_H_ */