led.c 363 B

123456789101112131415161718192021
  1. #include "led.h"
  2. #include "interface.h"
  3. void led_task(void)
  4. {
  5. while (1)
  6. {
  7. LED0_RUN_ON;
  8. OSTimeDly(100);
  9. LED1_RUN_ON;
  10. OSTimeDly(100);
  11. LED0_RUN_OFF;
  12. OSTimeDly(100);
  13. LED1_RUN_OFF;
  14. OSTimeDly(100);
  15. LED2_RUN_ON;
  16. OSTimeDly(100);
  17. LED2_RUN_OFF;
  18. OSTimeDly(100);
  19. }
  20. }