forked from lvgl/lv_fs_if
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lv_fs_if.c
72 lines (55 loc) · 1.06 KB
/
lv_fs_if.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/**
* @file lv_fs_if.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_fs_if.h"
#if LV_USE_FS_IF
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
/**********************
* STATIC PROTOTYPES
**********************/
#if LV_FS_IF_FATFS != '\0'
void lv_fs_if_fatfs_init(void);
#endif
#if LV_FS_IF_PC != '\0'
void lv_fs_if_pc_init(void);
#endif
#if LV_FS_IF_POSIX != '\0'
void lv_fs_if_posix_init(void);
#endif
/**********************
* STATIC VARIABLES
**********************/
/**********************
* MACROS
**********************/
/**********************
* GLOBAL FUNCTIONS
**********************/
/**
* Register driver(s) for the File system interface
*/
void lv_fs_if_init(void)
{
#if LV_FS_IF_FATFS != '\0'
lv_fs_if_fatfs_init();
#endif
#if LV_FS_IF_PC != '\0'
lv_fs_if_pc_init();
#endif
#if LV_FS_IF_POSIX != '\0'
lv_fs_if_posix_init();
#endif
}
/**********************
* STATIC FUNCTIONS
**********************/
#endif