Files
STM32F4-Base/Drivers/BSP/GD5F2GQ5UE/fal_cfg.h
2026-07-19 15:27:49 +08:00

50 lines
1.3 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#ifndef __FAL_CFG_H
#define __FAL_CFG_H
/*
* 模å<C2A1>—å<E28094><C3A5>称:FAL é…<C3A9>ç½®
* 模å<C2A1>—功能:定ä¹?FAL Flash 设备表和分区è¡? * é€ç”¨å¹³å<C2B3>°ï¼šSTM32F407ZGT6
* 作者:王建� * 创建日期�026-07-16
* 修改记录ï¼? * 2026-07-16 王建é”? åˆå»ºåˆ<C3A5>å§ç‰ˆæœ¬
*/
#ifdef __cplusplus
extern "C" {
#endif
/* FAL 调试开关:0-关闭ï¼?-å¼€å<E282AC>?*/
#define FAL_DEBUG 0
/* å<>¯ç”¨åˆ†åŒºè¡¨é…<C3A9>ç½?*/
#define FAL_PART_HAS_TABLE_CFG
/* ======================== Flash 设备�======================== */
extern const struct fal_flash_dev g_gd5f2gq5ue_flash;
#define FAL_FLASH_DEV_TABLE \
{ \
&g_gd5f2gq5ue_flash, \
}
/* ======================== 分区�======================== */
/*
* 分区å<C2BA><C3A5>ç§° 设备å<E280A1><C3A5>ç§° å<><C3A5>ç§» 大å°<C3A5>
* 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 */