提交 d7c5c4e3 编写于 作者: T tanek liang

using components init

上级 50d96d7d
......@@ -29,32 +29,14 @@
#include <lwip/sys.h>
#include <lwip/api.h>
#include <netif/ethernetif.h>
#include "stm32_eth.h"
#endif
void rt_init_thread_entry(void* parameter)
{
/* LwIP Initialization */
#ifdef RT_USING_LWIP
{
extern void lwip_sys_init(void);
/* register ethernetif device */
eth_system_device_init();
rt_hw_stm32_eth_init();
/* re-init device driver */
rt_device_init_all();
/* init lwip system */
lwip_sys_init();
rt_kprintf("TCP/IP initialized!\n");
}
#ifdef RT_USING_COMPONENTS_INIT
/* initialization RT-Thread Components */
rt_components_init();
#endif
//FS
//GUI
}
float f_var1;
......
......@@ -64,6 +64,9 @@
/* Using Serial Device Driver Framework" default="true" */
#define RT_USING_SERIAL
// <section name="RT_USING_COMPONENTS_INIT" description="Using components init" default="false" >
#define RT_USING_COMPONENTS_INIT
// </section>
/* SECTION: Console options */
#define RT_USING_CONSOLE
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册