diff options
| author | Bernard.Xiong <[email protected]> | 2015-03-22 09:06:48 +0800 |
|---|---|---|
| committer | Bernard.Xiong <[email protected]> | 2015-03-22 09:06:48 +0800 |
| commit | 62a0172d11e559272128bf52b56ef806ba28ae24 (patch) | |
| tree | dbed34a3f0b1f4cd96d12c83e8fb10ddd782a1e0 /include | |
| parent | e2cfb1f796adf8e8be10b19af43ffe1caee0cd15 (diff) | |
[Kernel] Fix the system initialization link issue
Diffstat (limited to 'include')
| -rw-r--r-- | include/components.h | 79 | ||||
| -rw-r--r-- | include/rtthread.h | 13 |
2 files changed, 88 insertions, 4 deletions
diff --git a/include/components.h b/include/components.h new file mode 100644 index 0000000000..4113a8691b --- /dev/null +++ b/include/components.h @@ -0,0 +1,79 @@ +/* + * File : components.h + * header for RT-Thread components + * This file is part of RT-Thread RTOS + * COPYRIGHT (C) 2012-2015, RT-Thread Development Team + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Change Logs: + * Date Author Notes + * 2012-09-20 Bernard Change the name to components.h + * And all components related header files. + * 2015-02-06 Bernard Rename the components.h to rtcom.h + * 2015-03-22 Bernard Keep the compatibility. + */ + +#ifndef COMPONENTS_H__ +#define COMPONENTS_H__ + +#ifdef RT_USING_FINSH +#include <finsh.h> +#include <shell.h> +#endif + +#ifdef RT_USING_LWIP +#include <lwip/sys.h> +#include <netif/ethernetif.h> +#endif + +#ifdef RT_USING_DFS +#include <dfs_init.h> +#include <dfs_fs.h> +#ifdef RT_USING_DFS_ELMFAT +#include <dfs_elm.h> +#endif +#if defined(RT_USING_LWIP) && defined(RT_USING_DFS_NFS) +#include <dfs_nfs.h> +#endif +#ifdef RT_USING_DFS_ROMFS +#include <dfs_romfs.h> +#endif +#ifdef RT_USING_DFS_DEVFS +#include <devfs.h> +#endif +#ifdef RT_USING_DFS_UFFS +#include <dfs_uffs.h> +#endif +#ifdef RT_USING_DFS_JFFS2 +#include <dfs_jffs2.h> +#endif +#ifdef RT_USING_DFS_YAFFS2 +#include <dfs_yaffs2.h> +#endif +#ifdef RT_USING_DFS_ROMFS +#include <dfs_romfs.h> +#endif +#endif + +#ifdef RT_USING_PTHREADS +#include <pthread.h> +#endif + +#ifdef RT_USING_MODULE +#include <rtm.h> +#endif + +#endif diff --git a/include/rtthread.h b/include/rtthread.h index edd207bcb7..5309c31d5a 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -437,6 +437,11 @@ void rt_module_unload_sethook(void (*hook)(rt_module_t module)); void rt_module_init_object_container(struct rt_module *module); rt_err_t rt_module_destroy(rt_module_t module); +/* + * application module system initialization + */ +int rt_system_module_init(void); + /*@}*/ #endif @@ -455,10 +460,10 @@ void rt_interrupt_leave(void); */ rt_uint8_t rt_interrupt_get_nest(void); -/** - * application module - */ -int rt_system_module_init(void); +#ifdef RT_USING_COMPONENTS_INIT +void rt_components_init(void); +void rt_components_board_init(void); +#endif /** * @addtogroup KernelService |
