1 /*
2  * Copyright (c) 2006-2023, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author        Notes
8  * 2024-03-11    Wangyuqiang   first version
9  */
10 
11 #include <rtthread.h>
12 #include "hal_data.h"
13 #include <rtdevice.h>
14 #include <board.h>
15 
16 #define LED_PIN    BSP_IO_PORT_19_PIN_6 /* Onboard LED pins */
17 
hal_entry(void)18 void hal_entry(void)
19 {
20     rt_kprintf("\nHello RT-Thread!\n");
21     rt_kprintf("==================================================\n");
22     rt_kprintf("This is a iar project which mode is xspi0 execution!\n");
23     rt_kprintf("==================================================\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