Просмотр исходного кода

light sleep: rename sleep mac bb to modem, it includes MAC and baseband of wifi, bt and ieee802.15.4 modules

Li Shuai 3 лет назад
Родитель
Сommit
3a5fe2ab63

+ 1 - 1
components/esp_hw_support/CMakeLists.txt

@@ -23,7 +23,7 @@ if(NOT BOOTLOADER_BUILD)
                      "rtc_module.c"
                      "sleep_modes.c"
                      "sleep_gpio.c"
-                     "sleep_mac_bb.c"
+                     "sleep_modem.c"
                      "regi2c_ctrl.c"
                      "port/${target}/io_mux.c"
                      "port/${target}/clk_tree.c"

+ 1 - 1
components/esp_hw_support/include/esp_private/sleep_mac_bb.h → components/esp_hw_support/include/esp_private/sleep_modem.h

@@ -13,7 +13,7 @@ extern "C" {
 #endif
 
 /**
- * @file sleep_mac_bb.h
+ * @file sleep_modem.h
  *
  * This file contains declarations of MAC and baseband power consumption related functions in light sleep mode.
  */

+ 1 - 1
components/esp_hw_support/sleep_mac_bb.c → components/esp_hw_support/sleep_modem.c

@@ -12,7 +12,7 @@
 #include "esp_attr.h"
 #include "esp_sleep.h"
 #include "soc/soc_caps.h"
-#include "esp_private/sleep_mac_bb.h"
+#include "esp_private/sleep_modem.h"
 #include "sdkconfig.h"
 
 #if CONFIG_MAC_BB_PD

+ 2 - 2
components/esp_hw_support/sleep_modes.c

@@ -66,10 +66,10 @@
 #include "esp_private/gpio.h"
 #elif CONFIG_IDF_TARGET_ESP32S3
 #include "esp32s3/rom/rtc.h"
-#include "esp_private/sleep_mac_bb.h"
+#include "esp_private/sleep_modem.h"
 #elif CONFIG_IDF_TARGET_ESP32C3
 #include "esp32c3/rom/rtc.h"
-#include "esp_private/sleep_mac_bb.h"
+#include "esp_private/sleep_modem.h"
 #elif CONFIG_IDF_TARGET_ESP32H4
 #include "esp32h4/rom/rtc.h"
 #elif CONFIG_IDF_TARGET_ESP32C2