1
0

application.c 734 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * File : application.c
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2015, 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. * 2015-03-01 Yangfs the first version
  13. * 2015-03-27 Bernard code cleanup.
  14. */
  15. /**
  16. * @addtogroup NRF51822
  17. */
  18. /*@{*/
  19. #include <rtthread.h>
  20. #ifdef RT_USING_FINSH
  21. #include <finsh.h>
  22. #include <shell.h>
  23. #endif
  24. int rt_application_init(void)
  25. {
  26. /* Set finsh device */
  27. #ifdef RT_USING_FINSH
  28. /* initialize finsh */
  29. finsh_system_init();
  30. #endif
  31. return 0;
  32. }
  33. /*@}*/