50 lines
1.3 KiB
C
50 lines
1.3 KiB
C
#ifndef __FAL_CFG_H
|
|
#define __FAL_CFG_H
|
|
|
|
/*
|
|
* 模��称:FAL �置
|
|
* 模�功能:定�FAL Flash 设备表和分区� * 适用平�:STM32F407ZGT6
|
|
* 作者:王建� * 创建日期�026-07-16
|
|
* 修改记录� * 2026-07-16 王建� 创建�始版本
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* FAL 调试开关:0-å…³é—ï¼?-å¼€å�?*/
|
|
#define FAL_DEBUG 0
|
|
|
|
/* �用分区表��*/
|
|
#define FAL_PART_HAS_TABLE_CFG
|
|
|
|
/* ======================== Flash 设备�======================== */
|
|
|
|
extern const struct fal_flash_dev g_gd5f2gq5ue_flash;
|
|
|
|
#define FAL_FLASH_DEV_TABLE \
|
|
{ \
|
|
&g_gd5f2gq5ue_flash, \
|
|
}
|
|
|
|
/* ======================== 分区�======================== */
|
|
/*
|
|
* 分区�称 设备�称 �移 大�
|
|
* KVDB: 64MB @ 0
|
|
* TSDB: 64MB @ 64MB
|
|
*/
|
|
#ifdef FAL_PART_HAS_TABLE_CFG
|
|
#define FAL_PART_TABLE \
|
|
{ \
|
|
{FAL_PART_MAGIC_WORD, "fdb_kvdb1", "gd5f2gq5ue", 0, 64*1024*1024, 0}, \
|
|
{FAL_PART_MAGIC_WORD, "fdb_tsdb1", "gd5f2gq5ue", 64*1024*1024, 64*1024*1024, 0}, \
|
|
}
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __FAL_CFG_H */
|
|
|