1
0

main.c 616 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-09-17 AisinoChip the first version
  9. */
  10. #include <rthw.h>
  11. #include <rtthread.h>
  12. #include "board.h"
  13. #include <drivers/pin.h>
  14. #define LED_PIN_NUM 83 /* PF3 */
  15. int main(void)
  16. {
  17. rt_pin_mode(LED_PIN_NUM, PIN_MODE_OUTPUT);
  18. while (1)
  19. {
  20. rt_pin_write(LED_PIN_NUM, PIN_LOW);
  21. rt_thread_delay(RT_TICK_PER_SECOND / 2);
  22. rt_pin_write(LED_PIN_NUM, PIN_HIGH);
  23. rt_thread_delay(RT_TICK_PER_SECOND / 2);
  24. }
  25. }