fal_cfg.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**************************************************************************//**
  2. *
  3. * @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0
  6. *
  7. * Change Logs:
  8. * Date Author Notes
  9. * 2020-3-03 FYChou First version
  10. *
  11. ******************************************************************************/
  12. #ifndef _FAL_CFG_H_
  13. #define _FAL_CFG_H_
  14. #include <rtconfig.h>
  15. #include <board.h>
  16. /* ===================== Flash device Configuration ========================= */
  17. extern const struct fal_flash_dev Onchip_aprom_flash;
  18. extern const struct fal_flash_dev Onchip_ldrom_flash;
  19. /* -flash device table------------------------------------------------------- */
  20. #define FAL_FLASH_DEV_TABLE \
  21. { \
  22. &Onchip_aprom_flash, \
  23. &Onchip_ldrom_flash, \
  24. }
  25. /* ====================== Partition Configuration ============================ */
  26. #ifdef FAL_PART_HAS_TABLE_CFG
  27. /* -partition table----------------------------------------------------------- */
  28. #define FAL_PART_TABLE \
  29. { \
  30. {FAL_PART_MAGIC_WORD, "ldrom", "OnChip_LDROM", 0, 0x1000, 0}, \
  31. {FAL_PART_MAGIC_WORD, "aprom", "OnChip_APROM", 0xF0000, 0x10000, 0}, \
  32. }
  33. #endif /* FAL_PART_HAS_TABLE_CFG */
  34. #endif /* _FAL_CFG_H_ */