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