fal_cfg.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-06-26 chenyingchun the first version
  9. */
  10. #ifndef _FAL_CFG_H_
  11. #define _FAL_CFG_H_
  12. #include <rtconfig.h>
  13. #include <board.h>
  14. #define ON_CHIP_FLASH_DEV_NAME "mcu_onchip_flash"
  15. #define ON_CHIP_PARTION_NAME "filesystem"
  16. /* ===================== Flash device Configuration ========================= */
  17. extern const struct fal_flash_dev mcu_onchip_flash;
  18. /* flash device table */
  19. #define FAL_FLASH_DEV_TABLE \
  20. { \
  21. &mcu_onchip_flash, \
  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, ON_CHIP_PARTION_NAME, ON_CHIP_FLASH_DEV_NAME, 224 * 1024, 120 * 1024, 0}, \
  29. }
  30. #endif /* FAL_PART_HAS_TABLE_CFG */
  31. #endif /* _FAL_CFG_H_ */