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  * 2020-06-05     thread-liu   first version
9  */
10 
11 #include <rtthread.h>
12 #include <rtdevice.h>
13 #include <board.h>
14 
15 /* defined the LD8 pin: PD11 */
16 #define LED8_PIN    GET_PIN(D, 11)
17 
main(void)18 int main(void)
19 {
20     int count = 1;
21     /* set LD8 pin mode to output */
22     rt_pin_mode(LED8_PIN, PIN_MODE_OUTPUT);
23 
24     while (count++)
25     {
26         rt_pin_write(LED8_PIN, PIN_HIGH);
27         rt_thread_mdelay(500);
28         rt_pin_write(LED8_PIN, PIN_LOW);
29         rt_thread_mdelay(500);
30     }
31 
32     return RT_EOK;
33 }
34