1
0

fal_cfg.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-06-08 supperthomas first version
  9. */
  10. #ifndef _FAL_CFG_H_
  11. #define _FAL_CFG_H_
  12. #include <rtconfig.h>
  13. #include <board.h>
  14. extern const struct fal_flash_dev stm32_onchip_flash;
  15. /* flash device table */
  16. #define FAL_FLASH_DEV_TABLE \
  17. { \
  18. &stm32_onchip_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, "app", "onchip_flash", 0, 512*1024, 0}, \
  26. {FAL_PART_MAGIC_WORD, "flash", "onchip_flash", 512*1024, 512*1024, 0}, \
  27. }
  28. #endif
  29. #endif /* _FAL_CFG_H_ */