From 3a5fe2ab639034d6065c36a656a8813dd4dfd465 Mon Sep 17 00:00:00 2001 From: Li Shuai Date: Mon, 14 Nov 2022 21:36:23 +0800 Subject: [PATCH] light sleep: rename sleep mac bb to modem, it includes MAC and baseband of wifi, bt and ieee802.15.4 modules --- components/esp_hw_support/CMakeLists.txt | 2 +- .../include/esp_private/{sleep_mac_bb.h => sleep_modem.h} | 2 +- components/esp_hw_support/{sleep_mac_bb.c => sleep_modem.c} | 2 +- components/esp_hw_support/sleep_modes.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) rename components/esp_hw_support/include/esp_private/{sleep_mac_bb.h => sleep_modem.h} (97%) rename components/esp_hw_support/{sleep_mac_bb.c => sleep_modem.c} (98%) diff --git a/components/esp_hw_support/CMakeLists.txt b/components/esp_hw_support/CMakeLists.txt index 9eccf90b55..eec66402a3 100644 --- a/components/esp_hw_support/CMakeLists.txt +++ b/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" diff --git a/components/esp_hw_support/include/esp_private/sleep_mac_bb.h b/components/esp_hw_support/include/esp_private/sleep_modem.h similarity index 97% rename from components/esp_hw_support/include/esp_private/sleep_mac_bb.h rename to components/esp_hw_support/include/esp_private/sleep_modem.h index 6b4019639d..ae131ba739 100644 --- a/components/esp_hw_support/include/esp_private/sleep_mac_bb.h +++ b/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. */ diff --git a/components/esp_hw_support/sleep_mac_bb.c b/components/esp_hw_support/sleep_modem.c similarity index 98% rename from components/esp_hw_support/sleep_mac_bb.c rename to components/esp_hw_support/sleep_modem.c index 4c53852070..4931eb4cc1 100644 --- a/components/esp_hw_support/sleep_mac_bb.c +++ b/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 diff --git a/components/esp_hw_support/sleep_modes.c b/components/esp_hw_support/sleep_modes.c index 5701d898e2..d5268ceec6 100644 --- a/components/esp_hw_support/sleep_modes.c +++ b/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