fal_cfg.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 NOR_FLASH_DEV_NAME "nor"
  15. /* ===================== Flash device Configuration ========================= */
  16. extern struct fal_flash_dev nor_flash0;
  17. /* flash device table */
  18. #define FAL_FLASH_DEV_TABLE \
  19. { \
  20. &nor_flash0, \
  21. }
  22. /* ====================== Partition Configuration ========================== */
  23. #ifdef FAL_PART_HAS_TABLE_CFG
  24. /* partition table */
  25. #define FAL_PART_TABLE \
  26. { \
  27. {FAL_PART_MAGIC_WORD, "bl", "stm32_onchip", 0, 64*1024, 0}, \
  28. {FAL_PART_MAGIC_WORD, "app", "stm32_onchip", 64*1024, 704*1024, 0}, \
  29. {FAL_PART_MAGIC_WORD, "easyflash", NOR_FLASH_DEV_NAME, 0, 1024*1024, 0}, \
  30. {FAL_PART_MAGIC_WORD, "download", NOR_FLASH_DEV_NAME, 1024*1024, 1024*1024, 0}, \
  31. }
  32. #endif /* FAL_PART_HAS_TABLE_CFG */
  33. #endif /* _FAL_CFG_H_ */