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