mirror of
https://github.com/flyingcys/realtek_ameba.git
synced 2025-07-31 20:31:06 +00:00
update app_start.c
This commit is contained in:
parent
78a92ae102
commit
52c552a1b9
855 changed files with 16 additions and 106855 deletions
|
|
@ -11,6 +11,7 @@
|
|||
#include "build_info.h"
|
||||
|
||||
#include <rtthread.h>
|
||||
#include <wlan_dev.h>
|
||||
|
||||
#ifndef RT_MAIN_THREAD_STACK_SIZE
|
||||
#define RT_MAIN_THREAD_STACK_SIZE 2048
|
||||
|
|
@ -23,6 +24,8 @@ static rt_uint8_t main_stack[RT_MAIN_THREAD_STACK_SIZE];
|
|||
struct rt_thread main_thread;
|
||||
#endif
|
||||
|
||||
extern int amebaz_wifi_init(rt_wlan_mode_t mode);
|
||||
|
||||
/* the system main thread */
|
||||
void main_thread_entry(void *parameter)
|
||||
{
|
||||
|
|
@ -34,6 +37,9 @@ void main_thread_entry(void *parameter)
|
|||
rt_components_init();
|
||||
#endif
|
||||
|
||||
if(amebaz_wifi_init(WIFI_STATION) != RT_EOK)
|
||||
rt_kprintf("amebaz_wifi_start failed...\n");
|
||||
|
||||
/* invoke system main function */
|
||||
#if defined (__CC_ARM)
|
||||
$Super$$main(); /* for ARMCC. */
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1825,6 +1825,10 @@ void wifi_autoreconnect_hdl(rtw_security_t security_type,
|
|||
param.password_len = password_len;
|
||||
param.key_id = key_id;
|
||||
// xTaskCreate(wifi_autoreconnect_thread, (const char *)"wifi_autoreconnect", 512, ¶m, tskIDLE_PRIORITY + 1, NULL);
|
||||
|
||||
// rt_thread_t tid = rt_thread_create("autoconn", wifi_autoreconnect_thread, ¶m, 2048, RT_THREAD_PRIORITY_MAX - 2, 20);
|
||||
// if(tid != RT_NULL)
|
||||
// rt_thread_startup(tid);
|
||||
}
|
||||
|
||||
int wifi_config_autoreconnect(__u8 mode, __u8 retry_times, __u16 timeout)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue