components.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /*
  2. * File : components_init.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2012, RT-Thread Development Team
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along
  17. * with this program; if not, write to the Free Software Foundation, Inc.,
  18. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  19. *
  20. * Change Logs:
  21. * Date Author Notes
  22. * 2012-09-20 Bernard Change the name to components.h
  23. * And all components related header files.
  24. */
  25. #ifndef __COMPONENTS_INIT_H__
  26. #define __COMPONENTS_INIT_H__
  27. #include <rtthread.h>
  28. #ifdef RT_USING_FINSH
  29. #include <finsh.h>
  30. #include <shell.h>
  31. #endif
  32. #ifdef RT_USING_LWIP
  33. #include <lwip/sys.h>
  34. #include <netif/ethernetif.h>
  35. extern void lwip_system_init(void);
  36. #endif
  37. #ifdef RT_USING_DFS
  38. #include <dfs_init.h>
  39. #include <dfs_fs.h>
  40. #ifdef RT_USING_DFS_ELMFAT
  41. #include <dfs_elm.h>
  42. #endif
  43. #if defined(RT_USING_LWIP) && defined(RT_USING_DFS_NFS)
  44. #include <dfs_nfs.h>
  45. #endif
  46. #ifdef RT_USING_DFS_ROMFS
  47. #include <dfs_romfs.h>
  48. #endif
  49. #ifdef RT_USING_DFS_DEVFS
  50. #include <devfs.h>
  51. #endif
  52. #ifdef RT_USING_DFS_UFFS
  53. #include <dfs_uffs.h>
  54. #endif
  55. #ifdef RT_USING_DFS_JFFS2
  56. #include <dfs_jffs2.h>
  57. #endif
  58. #ifdef RT_USING_DFS_YAFFS2
  59. #include <dfs_yaffs2.h>
  60. #endif
  61. #ifdef RT_USING_DFS_ROMFS
  62. #include <dfs_romfs.h>
  63. #endif
  64. #endif
  65. #ifdef RT_USING_NEWLIB
  66. #include <libc.h>
  67. #endif
  68. #ifdef RT_USING_PTHREADS
  69. #include <pthread.h>
  70. #endif
  71. #ifdef RT_USING_MODULE
  72. #include <rtm.h>
  73. #endif
  74. #ifdef RT_USING_RTGUI
  75. #include <rtgui/rtgui_system.h>
  76. #endif
  77. #ifdef __cplusplus
  78. extern "C" {
  79. #endif
  80. /**
  81. * Initializes board routine in RT-Thread.
  82. */
  83. void rt_components_board_init(void);
  84. /**
  85. * Initializes components in RT-Thread
  86. * notes: this function must be invoked in Init Thread
  87. */
  88. void rt_components_init(void);
  89. #ifdef __cplusplus
  90. }
  91. #endif
  92. #endif