1 /*
2  * Copyright (c) 2017-2019, MindMotion AE Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2019-03-13     henryhuang   first version
9  */
10 
11 #include <rtthread.h>
12 #include <rtdevice.h>
13 #include "hal_device.h"
14 /* defined the LED pin: PA15 */
15 #define LED_PIN    38
main(void)16 int main(void)
17 {
18    int count = 1;
19     /* set LED4 pin mode to output */
20     rt_pin_mode(LED_PIN, PIN_MODE_OUTPUT);
21 
22     while (count++)
23     {
24         rt_pin_write(LED_PIN, PIN_HIGH);
25         rt_thread_mdelay(500);
26         rt_pin_write(LED_PIN, PIN_LOW);
27         rt_thread_mdelay(500);
28     }
29 
30     return RT_EOK;
31 }
32