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