components.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. #include <dfs_fs.h>
  30. #ifdef RT_USING_DFS_ELMFAT
  31. #include <dfs_elm.h>
  32. #endif
  33. #if defined(RT_USING_LWIP) && defined(RT_USING_DFS_NFS)
  34. #include <dfs_nfs.h>
  35. #endif
  36. #ifdef RT_USING_DFS_ROMFS
  37. #include <dfs_romfs.h>
  38. #endif
  39. #ifdef RT_USING_DFS_DEVFS
  40. #include <devfs.h>
  41. #endif
  42. #ifdef RT_USING_DFS_UFFS
  43. #include <dfs_uffs.h>
  44. #endif
  45. #ifdef RT_USING_DFS_JFFS2
  46. #include <dfs_jffs2.h>
  47. #endif
  48. #ifdef RT_USING_DFS_YAFFS2
  49. #include <dfs_yaffs2.h>
  50. #endif
  51. #ifdef RT_USING_DFS_ROMFS
  52. #include <dfs_romfs.h>
  53. #endif
  54. #endif
  55. #ifdef RT_USING_NEWLIB
  56. #include <libc.h>
  57. #endif
  58. #ifdef RT_USING_PTHREADS
  59. #include <pthread.h>
  60. #endif
  61. #ifdef RT_USING_MODULE
  62. #include <rtm.h>
  63. #endif
  64. #ifdef RT_USING_RTGUI
  65. #include <rtgui/rtgui_system.h>
  66. #endif
  67. #ifdef __cplusplus
  68. extern "C" {
  69. #endif
  70. /**
  71. * Initializes board routine in RT-Thread.
  72. */
  73. void rt_components_board_init(void);
  74. /**
  75. * Initializes components in RT-Thread
  76. * notes: this function must be invoked in Init Thread
  77. */
  78. void rt_components_init(void);
  79. #ifdef __cplusplus
  80. }
  81. #endif
  82. #endif