application.c 773 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * File : application.c
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006-2011, RT-Thread Develop 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. * 2010-06-25 Bernard first version
  13. * 2011-08-08 lgnq modified for Loongson LS1B
  14. */
  15. #include <rtthread.h>
  16. #include <ls1b.h>
  17. void rt_init_thread_entry(void* parameter)
  18. {
  19. }
  20. int rt_application_init()
  21. {
  22. rt_thread_t tid;
  23. /* create initialization thread */
  24. tid = rt_thread_create("init",
  25. rt_init_thread_entry, RT_NULL,
  26. 4096, 8, 20);
  27. if (tid != RT_NULL)
  28. rt_thread_startup(tid);
  29. return 0;
  30. }