main.c 453 B

12345678910111213141516171819202122232425
  1. #include "config.h"
  2. #include <rthw.h>
  3. #include <rtthread.h>
  4. #define LED0_PIN MSS_GPIO_0
  5. #define LED1_PIN MSS_GPIO_1
  6. int main(void)
  7. {
  8. int count = 0;
  9. while(count++)
  10. {
  11. MSS_GPIO_set_output(LED0_PIN, 1);
  12. MSS_GPIO_set_output(LED1_PIN, 1);
  13. rt_thread_mdelay(500);
  14. MSS_GPIO_set_output(LED0_PIN, 0);
  15. MSS_GPIO_set_output(LED1_PIN, 0);
  16. rt_thread_mdelay(500);
  17. }
  18. return RT_EOK;
  19. }