This commit is contained in:
pvvx 2017-04-28 05:01:54 +03:00
parent 58093484e1
commit 163c8c1876
17 changed files with 336 additions and 409 deletions

View file

@ -8,6 +8,7 @@
#include "platform_autoconf.h"
#include "autoconf.h"
#include "FreeRTOS.h"
#include "freertos_pmu.h"
#include "task.h"
#include "diag.h"
#include "netbios/netbios.h"
@ -71,6 +72,7 @@ void user_init_thrd(void) {
/* Load cfg, init WiFi + LwIP init, WiFi start if wifi_cfg.mode != RTW_MODE_NONE */
wifi_init();
#if defined(USE_NETBIOS)
if(syscfg.cfg.b.netbios_ena) netbios_init();
#endif
@ -80,6 +82,10 @@ void user_init_thrd(void) {
// webstuff_init(); // httpd_init();
webserver_init(syscfg.web_port);
if(syscfg.cfg.b.powersave_enable) {
release_wakelock(~WAKELOCK_WLAN);
}
// xTaskCreate(x_init_thrd, "wifi_init", 1024, NULL, tskIDLE_PRIORITY + 1 + PRIORITIE_OFFSET, NULL);
/* Kill init thread after all init tasks done */