esp32: move disabling rom log to esp_rom

This commit is contained in:
Renz Bagaporo
2020-04-15 16:46:10 +08:00
parent dc22501b47
commit 14902da344
6 changed files with 31 additions and 10 deletions

View File

@@ -714,10 +714,6 @@ static uint32_t get_power_down_flags(void)
void esp_deep_sleep_disable_rom_logging(void)
{
/* To disable logging in the ROM, only the least significant bit of the register is used,
* but since this register is also used to store the frequency of the main crystal (RTC_XTAL_FREQ_REG),
* you need to write to this register in the same format.
* Namely, the upper 16 bits and lower should be the same.
*/
REG_SET_BIT(RTC_CNTL_STORE4_REG, RTC_DISABLE_ROM_LOG);
esp_rom_disable_logging();
}