46 lines
1.3 KiB
C
46 lines
1.3 KiB
C
/*
|
|
* 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 "eeprom_m95.h"
|
|
#include "eeprom_fm24.h"
|
|
#include "flash.h"
|
|
|
|
#define FAL_PART_HAS_TABLE_CFG
|
|
|
|
// 需要块大小为2的N次方
|
|
#define EEPROM_M95_1_START_ADDR 0
|
|
#define EEPROM_M95_1_BLOCK_SIZE M95_PAGE_SIZE_256 * 16
|
|
#define EEPROM_M95_1_SIZE _M95M02_
|
|
#define EEPROM_M95_1_DEV_NAME "eeprom_m95_1"
|
|
|
|
/* ===================== Flash device Configuration ========================= */
|
|
extern struct fal_flash_dev eeprom_m95_1;
|
|
|
|
/* flash device table */
|
|
#define FAL_FLASH_DEV_TABLE \
|
|
{ \
|
|
&eeprom_m95_1, \
|
|
}
|
|
|
|
/* ====================== Partition Configuration ========================== */
|
|
#ifdef FAL_PART_HAS_TABLE_CFG
|
|
/* partition table */
|
|
// issues :https://github.com/armink/FlashDB/issues/40 ;epprom的扇区太小
|
|
#define FAL_PART_TABLE \
|
|
{ \
|
|
{FAL_PART_MAGIC_WORD, "TSDB", EEPROM_M95_1_DEV_NAME, 0, EEPROM_M95_1_SIZE, 0}, \
|
|
}
|
|
|
|
#endif /* FAL_PART_HAS_TABLE_CFG */
|
|
|
|
#endif /* _FAL_CFG_H_ */
|