main.c 449 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-11-06 SummerGift first version
  9. */
  10. #include <rtthread.h>
  11. #include <rtdevice.h>
  12. #include <board.h>
  13. int main(void)
  14. {
  15. int count = 1;
  16. while (count++)
  17. {
  18. // rt_pin_write(LED0_PIN, !rt_pin_read(LED0_PIN));
  19. rt_thread_mdelay(500);
  20. }
  21. return RT_EOK;
  22. }