-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/support_esp32s3_wifi_lightsleep' into 'master'
support esp32s3 wifi lightsleep Closes IDF-1781 See merge request espressif/esp-idf!14569
- Loading branch information
Showing
12 changed files
with
72 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2019-2021 Espressif Systems (Shanghai) CO LTD | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#pragma once | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
void ets_apb_backup_init_lock_func(void(* _apb_backup_lock)(void), void(* _apb_backup_unlock)(void)); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2019-2021 Espressif Systems (Shanghai) CO LTD | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include "soc/soc_caps.h" | ||
#include "esp_attr.h" | ||
#include "freertos/FreeRTOS.h" | ||
#include "freertos/portmacro.h" | ||
#include "esp32s3/rom/apb_backup_dma.h" | ||
|
||
static portMUX_TYPE s_apb_backup_dma_mutex = portMUX_INITIALIZER_UNLOCKED; | ||
|
||
static void IRAM_ATTR apb_backup_dma_lock(void) | ||
{ | ||
if (xPortInIsrContext()) { | ||
portENTER_CRITICAL_ISR(&s_apb_backup_dma_mutex); | ||
} else { | ||
portENTER_CRITICAL(&s_apb_backup_dma_mutex); | ||
} | ||
} | ||
|
||
static void IRAM_ATTR apb_backup_dma_unlock(void) | ||
{ | ||
if (xPortInIsrContext()) { | ||
portEXIT_CRITICAL_ISR(&s_apb_backup_dma_mutex); | ||
} else { | ||
portEXIT_CRITICAL(&s_apb_backup_dma_mutex); | ||
} | ||
} | ||
|
||
void esp_apb_backup_dma_lock_init(void) | ||
{ | ||
ets_apb_backup_init_lock_func(apb_backup_dma_lock, apb_backup_dma_unlock); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule lib
updated
32 files
+ − | esp32/libcoexist.a | |
+ − | esp32/libcore.a | |
+ − | esp32/libespnow.a | |
+ − | esp32/libmesh.a | |
+ − | esp32/libnet80211.a | |
+ − | esp32/libpp.a | |
+ − | esp32/libsmartconfig.a | |
+ − | esp32/libwapi.a | |
+ − | esp32c3/libcoexist.a | |
+ − | esp32c3/libcore.a | |
+ − | esp32c3/libespnow.a | |
+ − | esp32c3/libmesh.a | |
+ − | esp32c3/libnet80211.a | |
+ − | esp32c3/libpp.a | |
+ − | esp32c3/libsmartconfig.a | |
+ − | esp32c3/libwapi.a | |
+ − | esp32s2/libcoexist.a | |
+ − | esp32s2/libcore.a | |
+ − | esp32s2/libespnow.a | |
+ − | esp32s2/libmesh.a | |
+ − | esp32s2/libnet80211.a | |
+ − | esp32s2/libpp.a | |
+ − | esp32s2/libsmartconfig.a | |
+ − | esp32s2/libwapi.a | |
+ − | esp32s3/libcoexist.a | |
+ − | esp32s3/libcore.a | |
+ − | esp32s3/libespnow.a | |
+ − | esp32s3/libmesh.a | |
+ − | esp32s3/libnet80211.a | |
+ − | esp32s3/libpp.a | |
+ − | esp32s3/libsmartconfig.a | |
+ − | esp32s3/libwapi.a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters