fal_cfg.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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. * 2022-07-20 Sherman the first version
  9. */
  10. #ifndef _FAL_CFG_H_
  11. #define _FAL_CFG_H_
  12. #include "hal_data.h"
  13. extern const struct fal_flash_dev _onchip_flash_hp0;
  14. extern const struct fal_flash_dev _onchip_flash_hp1;
  15. /* flash device table */
  16. #define FAL_FLASH_DEV_TABLE \
  17. { \
  18. &_onchip_flash_hp0, \
  19. &_onchip_flash_hp1, \
  20. }
  21. /* ====================== Partition Configuration ========================== */
  22. #ifdef FAL_PART_HAS_TABLE_CFG
  23. /** partition table, The chip flash partition is defined in "\ra\fsp\src\bsp\mcu\ra6m4\bsp_feature.h".
  24. * More details can be found in the RA6M4 Group User Manual: Hardware section 47 Flash memory.*/
  25. #define FAL_PART_TABLE \
  26. { \
  27. {FAL_PART_MAGIC_WROD, "app", "onchip_flash_hp0", 0, BSP_FEATURE_FLASH_HP_CF_REGION0_SIZE, 0}, \
  28. {FAL_PART_MAGIC_WROD, "param", "onchip_flash_hp1", 0, (BSP_ROM_SIZE_BYTES - BSP_FEATURE_FLASH_HP_CF_REGION0_SIZE), 0}, \
  29. }
  30. #endif /* FAL_PART_HAS_TABLE_CFG */
  31. #endif /* _FAL_CFG_H_ */