mirror of
https://github.com/flyingcys/realtek_ameba.git
synced 2026-03-23 16:54:47 +00:00
update wifi driver
This commit is contained in:
parent
f93445dfa6
commit
7f4971152a
5 changed files with 12 additions and 8 deletions
|
|
@ -11,7 +11,9 @@
|
|||
#include "build_info.h"
|
||||
|
||||
#include <rtthread.h>
|
||||
#ifdef RT_USING_LWIP
|
||||
#include <wlan_dev.h>
|
||||
#endif
|
||||
|
||||
#ifndef RT_MAIN_THREAD_STACK_SIZE
|
||||
#define RT_MAIN_THREAD_STACK_SIZE 2048
|
||||
|
|
@ -24,7 +26,9 @@ static rt_uint8_t main_stack[RT_MAIN_THREAD_STACK_SIZE];
|
|||
struct rt_thread main_thread;
|
||||
#endif
|
||||
|
||||
#ifdef RT_USING_LWIP
|
||||
extern int amebaz_wifi_init(rt_wlan_mode_t mode);
|
||||
#endif
|
||||
|
||||
/* the system main thread */
|
||||
void main_thread_entry(void *parameter)
|
||||
|
|
@ -37,8 +41,10 @@ void main_thread_entry(void *parameter)
|
|||
rt_components_init();
|
||||
#endif
|
||||
|
||||
#ifdef RT_USING_LWIP
|
||||
if(amebaz_wifi_init(WIFI_STATION) != RT_EOK)
|
||||
rt_kprintf("amebaz_wifi_start failed...\n");
|
||||
#endif
|
||||
|
||||
/* invoke system main function */
|
||||
#if defined (__CC_ARM)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue