12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- /*
- * File : fal_cfg.h
- * This file is part of FAL (Flash Abstraction Layer) package
- * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Change Logs:
- * Date Author Notes
- * 2018-05-17 armink the first version
- */
- #ifndef _FAL_CFG_H_
- #define _FAL_CFG_H_
- #define FAL_DEBUG 0
- #define FAL_PART_HAS_TABLE_CFG
- /* ===================== Flash device Configuration ========================= */
- extern const struct fal_flash_dev stm32_onchip_flash;
- /* flash device table */
- #define FAL_FLASH_DEV_TABLE \
- { \
- &stm32_onchip_flash \
- }
- /* ====================== Partition Configuration ========================== */
- #ifdef FAL_PART_HAS_TABLE_CFG
- /* partition table //0x19800 //0x26800 //0x33800 */
- #define FAL_PART_TABLE \
- { \
- {FAL_PART_MAGIC_WORD, "bl", "stm32_onchip", 0, 2*1024, 0}, \
- {FAL_PART_MAGIC_WORD, "app", "stm32_onchip", 2*1024, 96*1024, 0}, \
- {FAL_PART_MAGIC_WORD, "kv", "stm32_onchip", 98*1024, 60*1024, 0}, \
- {FAL_PART_MAGIC_WORD, "ts_plan", "stm32_onchip", 158*1024, 26*1024, 0}, \
- {FAL_PART_MAGIC_WORD, "ts_key", "stm32_onchip", 184*1024, 26*1024, 0}, \
- {FAL_PART_MAGIC_WORD, "ts_weight", "stm32_onchip", 210*1024, 44*1024, 0}, \
- }
- #endif /* FAL_PART_HAS_TABLE_CFG */
- #endif /* _FAL_CFG_H_ */
|