application.c 640 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * File : application.c
  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-11-20 Bernard the first version
  13. */
  14. #include <stdlib.h>
  15. #include <rtthread.h>
  16. #include <components.h>
  17. int rt_application_init()
  18. {
  19. /* do component initialization */
  20. rt_components_init();
  21. #ifdef RT_USING_NEWLIB
  22. libc_system_init(RT_CONSOLE_DEVICE_NAME);
  23. #endif
  24. return 0;
  25. }