main.c 454 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2006-2024, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2024-11-11 RT-Thread first version
  9. */
  10. #include <rtthread.h>
  11. #define DBG_TAG "main"
  12. #define DBG_LVL DBG_LOG
  13. #include <rtdbg.h>
  14. int main(void)
  15. {
  16. int count = 1;
  17. while (count++)
  18. {
  19. LOG_D("Hello RT-Thread!");
  20. rt_thread_mdelay(1000);
  21. }
  22. return RT_EOK;
  23. }