fal_cfg.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. #include <board.h>
  14. #define MB (1024*1024)
  15. #define NOR_FLASH_DEV_NAME "W25Q32"
  16. /* ===================== Flash device Configuration ========================= */
  17. extern struct fal_flash_dev nor_flash0;
  18. /* flash device table */
  19. #define FAL_FLASH_DEV_TABLE \
  20. { \
  21. &nor_flash0, \
  22. }
  23. /* ====================== Partition Configuration ========================== */
  24. #ifdef FAL_PART_HAS_TABLE_CFG
  25. /* partition table */
  26. #define FAL_PART_TABLE \
  27. { \
  28. {FAL_PART_MAGIC_WORD, "nor", NOR_FLASH_DEV_NAME, 0, 1*MB, 0}, \
  29. {FAL_PART_MAGIC_WORD, "nor", NOR_FLASH_DEV_NAME, 1*MB, 3*MB, 0}, \
  30. }
  31. #endif /* FAL_PART_HAS_TABLE_CFG */
  32. #endif /* _FAL_CFG_H_ */