]> granicus.if.org Git - esp-idf/commitdiff
modem sleep: delete wifi modem sleep callback in idle task.
authorXia Xiao Tian <xiaxiaotian@espressif.com>
Thu, 17 Nov 2016 10:08:35 +0000 (18:08 +0800)
committerXia Xiao Tian <xiaxiaotian@espressif.com>
Thu, 17 Nov 2016 10:08:35 +0000 (18:08 +0800)
components/esp32/include/esp_wifi_internal.h
components/esp32/task_wdt.c
components/freertos/tasks.c
components/nvs_flash/src/nvs_api.cpp

index 1d393b95f274545134c2e5702de6c85216ea09b1..2015b5063d34fb1de20cfcf597c2d56619e99735 100644 (file)
@@ -105,15 +105,6 @@ esp_err_t esp_wifi_internal_reg_rxcb(wifi_interface_t ifx, wifi_rxcb_t fn);
   */
 esp_err_t esp_wifi_internal_set_sta_ip(void);
 
-/**
-  * @brief     The WiFi power save callback function
-  *
-  * @param     none
-  *
-  * @return    none
-  */
-void esp_wifi_ps_idle_cb(void);
-
 #ifdef __cplusplus
 }
 #endif
index 79385f2a5e777b3b22a5f9b2bf49548f81f6e1ec..3428b2a54c8ca90274e1cb1e3fbea47537f241b5 100644 (file)
@@ -29,7 +29,6 @@
 #include "soc/timer_group_struct.h"
 #include "soc/timer_group_reg.h"
 #include "esp_log.h"
-#include "esp_wifi_internal.h"
 
 #include "esp_task_wdt.h"
 
@@ -168,7 +167,6 @@ void vApplicationIdleHook(void) {
     if (xPortGetCoreID()!=0) return;
 #endif
     esp_task_wdt_feed();
-    esp_wifi_ps_idle_cb();
 }
 #endif
 
index f827924f57d6dceb6891daa66a7aaf897b6b1b5f..b79d3a98badf63bd76d92f06d92ed5a2629d7f46 100644 (file)
@@ -113,7 +113,7 @@ functions but without including stdio.h here. */
 /*
  * Defines the size, in words, of the stack allocated to the idle task.
  */
-#define tskIDLE_STACK_SIZE     2048//configMINIMAL_STACK_SIZE
+#define tskIDLE_STACK_SIZE     configMINIMAL_STACK_SIZE
 
 #if( configUSE_PREEMPTION == 0 )
        /* If the cooperative scheduler is being used then a yield should not be
index c1a910260e1d3a73f0012a5385d69011878b4aac..f6c6c588aaab90e548e2f3e372bd60f3b357cb64 100644 (file)
@@ -63,7 +63,7 @@ extern "C" void nvs_dump()
 
 extern "C" esp_err_t nvs_flash_init(void)
 {
-    return nvs_flash_init_custom(6, 3);
+    return nvs_flash_init_custom(9, 3);
 }
 
 extern "C" esp_err_t nvs_flash_init_custom(uint32_t baseSector, uint32_t sectorCount)