mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/fix_esp32_ci_v4.3' into 'release/v4.3'
unit_test: power on wifi or bt domain before phy enable(v4.3) See merge request espressif/esp-idf!19176
This commit is contained in:
commit
cd9541fdb4
@ -12,6 +12,7 @@
|
||||
#include <freertos/task.h>
|
||||
#include <freertos/semphr.h>
|
||||
#include "soc/soc_caps.h"
|
||||
#include "esp_private/wifi.h"
|
||||
|
||||
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32S2, ESP32C3)
|
||||
|
||||
@ -52,6 +53,9 @@ static void test_phy_rtc_init(void)
|
||||
|
||||
static IRAM_ATTR void test_phy_rtc_cache_task(void *arg)
|
||||
{
|
||||
//power up wifi and bt mac bb power domain
|
||||
esp_wifi_power_domain_on();
|
||||
|
||||
test_phy_rtc_init();
|
||||
|
||||
#if CONFIG_IDF_TARGET_ESP32
|
||||
@ -102,6 +106,10 @@ static IRAM_ATTR void test_phy_rtc_cache_task(void *arg)
|
||||
|
||||
#endif //SOC_BT_SUPPORTED
|
||||
|
||||
|
||||
//power down wifi and bt mac bb power domain
|
||||
esp_wifi_power_domain_off();
|
||||
|
||||
TEST_ASSERT( xSemaphoreGive(semphr_done) );
|
||||
|
||||
vTaskDelete(NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user