diff options
| author | bernard <[email protected]> | 2013-07-22 07:46:10 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2013-07-22 07:46:10 +0800 |
| commit | b96b35613f2cdc8118f083a3e2795788915319d7 (patch) | |
| tree | 4318798c8331e2b65b27ae9f1949df3a31ffce4f /include | |
| parent | adc678dabbcccd1f17cc1392882934ed5791a2b8 (diff) | |
add mount table
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 8 | ||||
| -rw-r--r-- | include/rtthread.h | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index cb1fb7a9a9..1d64ae54f4 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -191,10 +191,16 @@ typedef int (*init_fn_t)(void); /* board init routines will be called in board_init() function */ #define INIT_BOARD_EXPORT(fn) INIT_EXPORT(fn, "1") /* device/component/fs/app init routines will be called in init_thread */ +/* device initialization */ #define INIT_DEVICE_EXPORT(fn) INIT_EXPORT(fn, "2") +/* components initialization (dfs, lwip, ...) */ #define INIT_COMPONENT_EXPORT(fn) INIT_EXPORT(fn, "3") +/* file system initialization (dfs-elm, dfs-rom, ...) */ #define INIT_FS_EXPORT(fn) INIT_EXPORT(fn, "4") -#define INIT_APP_EXPORT(fn) INIT_EXPORT(fn, "5") +/* environment initialization (mount disk, ...) */ +#define INIT_ENV_EXPORT(fn) INIT_EXPORT(fn, "5") +/* appliation initialization (rtgui application etc ...) */ +#define INIT_APP_EXPORT(fn) INIT_EXPORT(fn, "6") /* event length */ #define RT_EVENT_LENGTH 32 diff --git a/include/rtthread.h b/include/rtthread.h index 6c3b11134d..28c0192291 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -452,7 +452,7 @@ rt_uint8_t rt_interrupt_get_nest(void); /** * application module */ -void rt_system_module_init(void); +int rt_system_module_init(void); /** * @addtogroup KernelService |
