mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/fix_common_clock_bug' into 'master'
esp_wifi: fix common clock bug See merge request espressif/esp-idf!16964
This commit is contained in:
commit
ff6b863736
@ -65,11 +65,15 @@ IRAM_ATTR void wifi_bt_common_module_disable(void)
|
|||||||
|
|
||||||
void wifi_module_enable(void)
|
void wifi_module_enable(void)
|
||||||
{
|
{
|
||||||
|
portENTER_CRITICAL_SAFE(&periph_spinlock);
|
||||||
periph_ll_wifi_module_enable_clk_clear_rst();
|
periph_ll_wifi_module_enable_clk_clear_rst();
|
||||||
|
portEXIT_CRITICAL_SAFE(&periph_spinlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wifi_module_disable(void)
|
void wifi_module_disable(void)
|
||||||
{
|
{
|
||||||
|
portENTER_CRITICAL_SAFE(&periph_spinlock);
|
||||||
periph_ll_wifi_module_disable_clk_set_rst();
|
periph_ll_wifi_module_disable_clk_set_rst();
|
||||||
|
portEXIT_CRITICAL_SAFE(&periph_spinlock);
|
||||||
}
|
}
|
||||||
#endif // CONFIG_ESP32_WIFI_ENABLED
|
#endif // CONFIG_ESP32_WIFI_ENABLED
|
||||||
|
Loading…
x
Reference in New Issue
Block a user