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-10-10     Sherman       first version
9  */
10 
11 #include <rtthread.h>
12 #include "hal_data.h"
13 #include <rtdevice.h>
14 
15 #define LED1_PIN    BSP_IO_PORT_02_PIN_07 /* Onboard LED1 pins */
16 #define LED2_PIN    BSP_IO_PORT_02_PIN_06 /* Onboard LED2 pins */
17 
hal_entry(void)18 void hal_entry(void)
19 {
20     rt_kprintf("\nHello RT-Thread!\n");
21 
22     while (1)
23     {
24         rt_pin_write(LED1_PIN, PIN_HIGH);
25         rt_pin_write(LED2_PIN, PIN_HIGH);
26         rt_thread_mdelay(500);
27         rt_pin_write(LED1_PIN, PIN_LOW);
28         rt_pin_write(LED2_PIN, PIN_LOW);
29         rt_thread_mdelay(500);
30     }
31 }
32