Merge branch 'bugfix/fix_phy_i2c_crash' into 'master'

esp_phy: Add IRAM_ATTR for phy i2c spinlock

Closes BT-2323

See merge request espressif/esp-idf!17756
This commit is contained in:
Jiang Jiang Jian 2022-04-14 18:25:24 +08:00
commit 2c434ff4a5

View File

@ -39,12 +39,12 @@ void set_xpd_sar(bool en)
}
//add spinlock protection
void phy_i2c_enter_critical(void)
IRAM_ATTR void phy_i2c_enter_critical(void)
{
regi2c_enter_critical();
}
void phy_i2c_exit_critical(void)
IRAM_ATTR void phy_i2c_exit_critical(void)
{
regi2c_exit_critical();
}