fal_cfg.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-05-17 armink the first version
  9. */
  10. #ifndef _FAL_CFG_H_
  11. #define _FAL_CFG_H_
  12. #include <rtconfig.h>
  13. /* ===================== Flash device Configuration ========================= */
  14. extern const struct fal_flash_dev spi_flash;
  15. /* flash device table */
  16. #define FAL_FLASH_DEV_TABLE \
  17. { \
  18. &spi_flash, \
  19. }
  20. /* ====================== Partition Configuration ========================== */
  21. #ifdef FAL_PART_HAS_TABLE_CFG
  22. /* partition table */
  23. #define FAL_PART_TABLE \
  24. { \
  25. {FAL_PART_MAGIC_WORD, "golden", "spi_flash", 0, 8*1024*1024, 0}, \
  26. {FAL_PART_MAGIC_WORD, "app", "spi_flash", 8*1024*1024, 8*1024*1024, 0}, \
  27. {FAL_PART_MAGIC_WORD, "data", "spi_flash", 16*1024*1024, 8*1024*1024, 0}, \
  28. }
  29. #endif /* FAL_PART_HAS_TABLE_CFG */
  30. #endif /* _FAL_CFG_H_ */