components.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2012-09-20 Bernard Change the name to components.h
  13. * And all components related header files.
  14. */
  15. #ifndef __COMPONENTS_INIT_H__
  16. #define __COMPONENTS_INIT_H__
  17. #include <rtthread.h>
  18. #ifdef RT_USING_FINSH
  19. #include <finsh.h>
  20. #include <shell.h>
  21. #endif
  22. #ifdef RT_USING_LWIP
  23. #include <lwip/sys.h>
  24. #include <netif/ethernetif.h>
  25. extern void lwip_system_init(void);
  26. #endif
  27. #ifdef RT_USING_DFS
  28. #include <dfs_init.h>
  29. #ifdef RT_USING_DFS_ELMFAT
  30. #include <dfs_elm.h>
  31. #endif
  32. #ifdef RT_USING_DFS_NFS
  33. #include <dfs_nfs.h>
  34. #endif
  35. #ifdef RT_USING_DFS_ROMFS
  36. #include <dfs_romfs.h>
  37. #endif
  38. #ifdef RT_USING_DFS_DEVFS
  39. #include <devfs.h>
  40. #endif
  41. #ifdef RT_USING_DFS_UFFS
  42. #include <dfs_uffs.h>
  43. #endif
  44. #ifdef RT_USING_DFS_JFFS2
  45. #include <dfs_jffs2.h>
  46. #endif
  47. #ifdef RT_USING_DFS_YAFFS2
  48. #include <dfs_yaffs2.h>
  49. #endif
  50. #ifdef RT_USING_DFS_ROMFS
  51. #include <dfs_romfs.h>
  52. #endif
  53. #endif
  54. #ifdef RT_USING_NEWLIB
  55. #include <libc.h>
  56. #endif
  57. #ifdef RT_USING_PTHREADS
  58. #include <pthread.h>
  59. #endif
  60. #ifdef RT_USING_MODULE
  61. #include <rtm.h>
  62. #endif
  63. #ifdef RT_USING_RTGUI
  64. #include <rtgui/rtgui_system.h>
  65. #endif
  66. #ifdef __cplusplus
  67. extern "C" {
  68. #endif
  69. /**
  70. * Initializes components in RT-Thread
  71. * notes: this function must be invoked in thread
  72. */
  73. void rt_components_init(void);
  74. #ifdef __cplusplus
  75. }
  76. #endif
  77. #endif