main.c 623 B

12345678910111213141516171819202122232425262728293031323334
  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-12-18 zylx first version
  9. */
  10. #include <rtthread.h>
  11. #include <rtdevice.h>
  12. #include <board.h>
  13. #include <drv_ext_io.h>
  14. int main(void)
  15. {
  16. int count = 1;
  17. HC574_SetPin(LED1,0);
  18. HC574_SetPin(LED2,0);
  19. HC574_SetPin(LED3,0);
  20. HC574_SetPin(LED4,0);
  21. while (count++)
  22. {
  23. HC574_SetPin(LED1,1);
  24. rt_thread_mdelay(500);
  25. HC574_SetPin(LED1,0);
  26. rt_thread_mdelay(500);
  27. }
  28. return RT_EOK;
  29. }