mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-19 07:23:30 +08:00
0f0093aa3e
- [update] 更新 template 工程配置 - [update] 更新 PLATFORM 配置 - [add] 添加 ra icu 驱动文件 - [add] 增加传感器类型 IAQ、EtOH - [add] 添加 CAN 驱动 - [add] 添加 RW007 驱动及使用说明 - [fix] GCC 编译问题 - [fix] flash 驱动 - [fix] 修改 scons 脚本配置
42 lines
1.6 KiB
C
42 lines
1.6 KiB
C
/*
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2018-08-21 MurphyZhao the first version
|
|
*/
|
|
#ifndef _FAL_CFG_H_
|
|
#define _FAL_CFG_H_
|
|
|
|
#include <rtthread.h>
|
|
#include <board.h>
|
|
|
|
/* enable stm32l4 onchip flash driver sample */
|
|
#define FAL_FLASH_PORT_DRIVER_STM32L4
|
|
/* enable SFUD flash driver sample */
|
|
#define FAL_FLASH_PORT_DRIVER_SFUD
|
|
|
|
extern const struct fal_flash_dev _onchip_flash_8k;
|
|
extern const struct fal_flash_dev _onchip_flash_32k;
|
|
|
|
/* flash device table */
|
|
#define FAL_FLASH_DEV_TABLE \
|
|
{ \
|
|
&_onchip_flash_8k, \
|
|
&_onchip_flash_32k, \
|
|
}
|
|
/* ====================== Partition Configuration ========================== */
|
|
#ifdef FAL_PART_HAS_TABLE_CFG
|
|
/** partition table, The chip flash partition is defined in "\ra\fsp\src\bsp\mcu\ra6m4\bsp_feature.h".
|
|
* More details can be found in the RA6M4 Group User Manual: Hardware section 47 Flash memory.*/
|
|
#define FAL_PART_TABLE \
|
|
{ \
|
|
{FAL_PART_MAGIC_WROD, "app", "onchip_flash_8k", 0, 64 * 1024, 0}, \
|
|
{FAL_PART_MAGIC_WROD, "param", "onchip_flash_32k", 0, 32 * 30 * 1024, 0}, \
|
|
}
|
|
#endif /* FAL_PART_HAS_TABLE_CFG */
|
|
#endif /* _FAL_CFG_H_ */
|
|
|