Merge branch 'bugfix/regi2c_ctrl_spinlock_s2' into 'master'

hw_support: fixed regi2c not protected by lock on ESP32S2

See merge request espressif/esp-idf!16653
This commit is contained in:
Michael (XIAO Xufeng)
2022-03-13 02:47:53 +08:00
69 changed files with 421 additions and 646 deletions

View File

@@ -0,0 +1,18 @@
/*
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include "esp_bit_defs.h"
/* Analog function control register */
#define ANA_CONFIG_REG 0x6000E044
#define ANA_CONFIG_S (8)
#define ANA_CONFIG_M (0x3FF)
/* Clear to enable APLL */
#define I2C_APLL_M (BIT(14))
/* Clear to enable BBPLL */
#define I2C_BBPLL_M (BIT(17))