refractor WiFi clock setting

Do not set WiFi clock in PHY initializing function, move it to WiFi
   start/stop function.
This commit is contained in:
XiaXiaotian
2017-10-28 10:19:49 +08:00
committed by wangmengyang
parent bd6394db92
commit 42cefc173f
6 changed files with 22 additions and 9 deletions

View File

@@ -29,6 +29,7 @@
#include "soc/rtc_cntl_reg.h"
#include "soc/dport_reg.h"
#include "soc/i2s_reg.h"
#include "driver/periph_ctrl.h"
#include "xtensa/core-macros.h"
/* Number of cycles to wait from the 32k XTAL oscillator to consider it running.
@@ -236,4 +237,7 @@ void esp_perip_clk_init(void)
/* Disable WiFi/BT/SDIO clocks. */
DPORT_CLEAR_PERI_REG_MASK(DPORT_WIFI_CLK_EN_REG, wifi_bt_sdio_clk);
/* Enable RNG clock. */
periph_module_enable(PERIPH_RNG_MODULE);
}