application.c 646 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * File : app.c
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2008-12-11 xuxinming the first version
  13. */
  14. #include <rtthread.h>
  15. #ifdef RT_USING_FINSH
  16. #include <shell.h>
  17. #include <finsh.h>
  18. #endif
  19. /**
  20. * @addtogroup LPC2478
  21. */
  22. /*@{*/
  23. int rt_application_init()
  24. {
  25. #ifdef RT_USING_FINSH
  26. /* init finsh */
  27. finsh_system_init();
  28. #endif
  29. return 0;
  30. }
  31. /*@}*/