1 /*
2  * Copyright (c) 2006-2024, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author        Notes
8  * 2023-12-17     Rbb666        first version
9  */
10 
11 #include <rtthread.h>
12 #include "hal_data.h"
13 #include <rtdevice.h>
14 
15 #define DRV_DEBUG
16 #define LOG_TAG             "main"
17 #include <drv_log.h>
18 
19 #define LED_PIN    BSP_IO_PORT_01_PIN_02 /* Onboard LED pins */
20 
hal_entry(void)21 void hal_entry(void)
22 {
23     rt_kprintf("\nHello RT-Thread!\n");
24 
25     while (1)
26     {
27         rt_pin_write(LED_PIN, PIN_HIGH);
28         rt_thread_mdelay(500);
29         rt_pin_write(LED_PIN, PIN_LOW);
30         rt_thread_mdelay(500);
31     }
32 }
33