1 /* 2 * Copyright (c) 2006-2022, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2022-06-08 supperthomas first version 9 */ 10 11 #ifndef _FAL_CFG_H_ 12 #define _FAL_CFG_H_ 13 14 #include <rtconfig.h> 15 #include <board.h> 16 17 extern const struct fal_flash_dev stm32_onchip_flash; 18 /* flash device table */ 19 #define FAL_FLASH_DEV_TABLE \ 20 { \ 21 &stm32_onchip_flash \ 22 } 23 /* ====================== Partition Configuration ========================== */ 24 #ifdef FAL_PART_HAS_TABLE_CFG 25 /* partition table */ 26 #define FAL_PART_TABLE \ 27 { \ 28 {FAL_PART_MAGIC_WORD, "app", "onchip_flash", 0, 512*1024, 0}, \ 29 {FAL_PART_MAGIC_WORD, "flash", "onchip_flash", 512*1024, 512*1024, 0}, \ 30 } 31 #endif 32 33 #endif /* _FAL_CFG_H_ */ 34