fal_cfg.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-07-27 Rbb666 first version
  9. */
  10. #ifndef _FAL_CFG_H_
  11. #define _FAL_CFG_H_
  12. #include <rtthread.h>
  13. #include <board.h>
  14. extern const struct fal_flash_dev ifx_onchip_flash_32k;
  15. extern const struct fal_flash_dev ifx_onchip_flash_256k;
  16. /* flash device table */
  17. #define FAL_FLASH_DEV_TABLE \
  18. { \
  19. &ifx_onchip_flash_32k, \
  20. &ifx_onchip_flash_256k, \
  21. }
  22. /* ====================== Partition Configuration ========================== */
  23. #ifdef FAL_PART_HAS_TABLE_CFG
  24. /* partition table */
  25. #define FAL_PART_TABLE \
  26. { \
  27. {FAL_PART_MAGIC_WROD, "param", "onchip_flash_32k", 0, IFX_EFLASH_SIZE, 0}, \
  28. {FAL_PART_MAGIC_WROD, "app", "onchip_flash_256k", 0, IFX_FLASH_SIZE, 0}, \
  29. }
  30. #endif /* FAL_PART_HAS_TABLE_CFG */
  31. #endif /* _FAL_CFG_H_ */