| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /*
- * 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 <rtconfig.h>
- #include <board.h>
- #define NOR_FLASH_DEV_NAME "norflash0"
- /* ===================== Flash device Configuration ========================= */
- extern struct fal_flash_dev nor_flash0;
- extern const struct fal_flash_dev stm32f1_onchip_flash;
- /* flash device table */
- #define FAL_FLASH_DEV_TABLE \
- { \
- &stm32f1_onchip_flash, \
- &nor_flash0, \
- }
- /* ====================== Partition Configuration ========================== */
- #ifdef FAL_PART_HAS_TABLE_CFG
- /* partition table */
- //分区表:FAL_PART_MAGIC_WORD,分区名,flash设备名字,起始地址,空间大小,保留0
- /*
- #define FAL_PART_TABLE \
- { \
- {FAL_PART_MAGIC_WORD, "bl", "onchip_flash", 0, 200*1024, 0}, \
- {FAL_PART_MAGIC_WORD, "app", "onchip_flash", 200*1024, 312*1024, 0}, \
- {FAL_PART_MAGIC_WORD, "easyflash", FAL_USING_NOR_FLASH_DEV_NAME, 0, 15*1024*1024, 0}, \
- {FAL_PART_MAGIC_WORD, "fm_area", FAL_USING_NOR_FLASH_DEV_NAME, 15*1024*1024, 512*1024, 0}, \
- {FAL_PART_MAGIC_WORD, "df_area", FAL_USING_NOR_FLASH_DEV_NAME, 15*1024*1024 + 512*1024, 512*1024, 0}, \
- }
- */
- #define FAL_PART_TABLE \
- { \
- {FAL_PART_MAGIC_WORD, "bl", "onchip_flash", 0, 200*1024, 0}, \
- {FAL_PART_MAGIC_WORD, "app", "onchip_flash", 200*1024, 312*1024, 0}, \
- {FAL_PART_MAGIC_WORD, "easyflash", FAL_USING_NOR_FLASH_DEV_NAME, 0, 3*1024*1024, 0}, \
- {FAL_PART_MAGIC_WORD, "fm_area", FAL_USING_NOR_FLASH_DEV_NAME, 3*1024*1024, 512*1024, 0}, \
- {FAL_PART_MAGIC_WORD, "df_area", FAL_USING_NOR_FLASH_DEV_NAME, 3*1024*1024 + 512*1024, 512*1024, 0}, \
- }
- #endif /* FAL_PART_HAS_TABLE_CFG */
- #endif /* _FAL_CFG_H_ */
|