main.c 577 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2006-2019, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-09-05 qinweizhong add support for tae32
  9. */
  10. #include "rtthread.h"
  11. #include "board.h"
  12. #define LED_PIN 42
  13. int main(void)
  14. {
  15. int count = 1;
  16. rt_pin_mode(LED_PIN, PIN_MODE_OUTPUT);
  17. while (count++)
  18. {
  19. rt_pin_write(LED_PIN, PIN_HIGH);
  20. rt_thread_mdelay(500);
  21. rt_pin_write(LED_PIN, PIN_LOW);
  22. rt_thread_mdelay(500);
  23. rt_kprintf("count %d\r\n", count);
  24. }
  25. }