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  * 2015-11-19     Urey         the first version
9  * 2017-09-20     Quintin.Z    modify for nv32
10  */
11 #include "rtthread.h"
12 #include "finsh.h"
13 
14 extern void led_thread_entry(void* parameter);
15 
main(void)16 int main(void)
17 {
18     rt_thread_t thread;
19 
20 #ifdef RT_USING_FINSH
21 #if !defined(RT_USING_POSIX_STDIO) && defined(RT_USING_DEVICE)
22     finsh_set_device(RT_CONSOLE_DEVICE_NAME);
23 #endif
24 #endif
25 
26     /* Create led thread */
27     thread = rt_thread_create("led",
28                               led_thread_entry, RT_NULL,
29                               256, 20, 20);
30     if(thread != RT_NULL)
31         rt_thread_startup(thread);
32 
33     return 0;
34 }
35