XFusion API v1.3.0
载入中...
搜索中...
未找到
xf_fal_config_internal.h
浏览该文件的文档.
1
12#ifndef __XF_FAL_CONFIG_INTERNAL_H__
13#define __XF_FAL_CONFIG_INTERNAL_H__
14
15/* ==================== [Includes] ========================================== */
16
17#include "xf_fal_config.h"
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/* ==================== [Defines] =========================================== */
24
25/* XF_FAL_ENABLE 无需对接 */
26
27#if !defined(XF_FAL_LOCK_DISABLE) || (XF_FAL_LOCK_DISABLE)
28# define XF_FAL_LOCK_IS_ENABLE 0
29#else
30# define XF_FAL_LOCK_IS_ENABLE 1
31#endif
32
33#ifndef XF_FAL_FLASH_DEVICE_NUM
34# define XF_FAL_FLASH_DEVICE_NUM 4
35#endif
36
37#ifndef XF_FAL_PARTITION_TABLE_NUM
38# define XF_FAL_PARTITION_TABLE_NUM 4
39#endif
40
41#ifndef XF_FAL_DEV_NAME_MAX
42# define XF_FAL_DEV_NAME_MAX 24
43#endif
44
45#ifndef XF_FAL_CACHE_NUM
46# define XF_FAL_CACHE_NUM 16
47#endif
48
49#ifndef XF_FAL_DEFAULT_FLASH_DEVICE_NAME
50# define XF_FAL_DEFAULT_FLASH_DEVICE_NAME "default_flash"
51#endif
52
53#ifndef XF_FAL_DEFAULT_PARTITION_NAME
54# define XF_FAL_DEFAULT_PARTITION_NAME "default_part"
55#endif
56
57#ifndef XF_FAL_DEFAULT_PARTITION_OFFSET
58# define XF_FAL_DEFAULT_PARTITION_OFFSET 0
59#endif
60
61#ifndef XF_FAL_DEFAULT_PARTITION_LENGTH
62# define XF_FAL_DEFAULT_PARTITION_LENGTH 4096
63#endif
64
65/* ==================== [Typedefs] ========================================== */
66
67/* ==================== [Global Prototypes] ================================= */
68
69/* ==================== [Macros] ============================================ */
70
71#ifdef __cplusplus
72} /* extern "C" */
73#endif
74
75#endif // __XF_FAL_CONFIG_INTERNAL_H__
使用 xfusion 菜单配置 xf_heap 内部配置。