main.c 518 B

12345678910111213141516171819202122232425
  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 change to new framework
  9. * 2018-11-19 flybreak add stm32f407-atk-explorer bsp
  10. */
  11. #include <rtthread.h>
  12. #include <rtdevice.h>
  13. #include <board.h>
  14. int main(void)
  15. {
  16. int count = 1;
  17. while (count++)
  18. {
  19. rt_pin_write(LED1_PIN, !rt_pin_read(LED1_PIN));
  20. rt_thread_mdelay(500);
  21. }
  22. return RT_EOK;
  23. }