main.c 668 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) 2019 Winner Microelectronics Co., Ltd.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2019-02-13 tyx first implementation
  9. */
  10. #include <rtthread.h>
  11. #include <rtdevice.h>
  12. #include "luat_base.h"
  13. static void _main(void* param) {
  14. rt_thread_mdelay(100); // 故意延后100ms
  15. luat_main();
  16. while (1)
  17. rt_thread_delay(10000000);
  18. }
  19. int main(void)
  20. {
  21. rt_thread_t t = rt_thread_create("luat", _main, RT_NULL, 8*1024, 15, 20);
  22. rt_thread_startup(t);
  23. //luat_main(NULL, NULL, NULL);
  24. //while (1) {
  25. // rt_thread_mdelay(2000000);
  26. //}
  27. return 0;
  28. }