| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- /*
- * Copyright (c) 2006-2018, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2018-05-17 armink the first version
- */
- #ifndef _FAL_CFG_H_
- #define _FAL_CFG_H_
- #include <zos.h>
- #include <zos_config.h>
- /* ===================== Flash device Configuration ========================= */
- extern const struct fal_flash_dev zos_onchip_flash;
- #ifdef FAL_USING_SFUD_PORT
- #define NOR_FLASH_DEV_NAME "norflash0"
- extern struct fal_flash_dev nor_flash0;
- #define FAL_FLASH_DEV_TABLE \
- { \
- &zos_onchip_flash, \
- &nor_flash0, \
- }
- #else
- #define FAL_FLASH_DEV_TABLE \
- { \
- &zos_onchip_flash, \
- }
- #endif
- /* flash device table */
- /* ====================== Partition Configuration ========================== */
- #ifdef FAL_PART_HAS_TABLE_CFG
- #ifdef FAL_USING_SFUD_PORT
- #define FAL_PART_TABLE \
- { \
- {FAL_PART_MAGIC_WORD, "filesystem", "zos_onchip", 0, BSP_USING_FLASH_LEN * 1024, 0}, \
- {FAL_PART_MAGIC_WORD, "easyflash", NOR_FLASH_DEV_NAME, 0, 20*1024, 0}, \
- {FAL_PART_MAGIC_WORD, "download", NOR_FLASH_DEV_NAME, 20*1024, 1024*1024, 0}, \
- }
- #else
- #define FAL_PART_TABLE \
- { \
- {FAL_PART_MAGIC_WORD, "filesystem", "zos_onchip", 0, BSP_USING_FLASH_LEN * 1024, 0}, \
- }
- #endif
- /* partition table */
- #endif /* FAL_PART_HAS_TABLE_CFG */
- #endif /* _FAL_CFG_H_ */
|