Merge branch 'bugfix/fix_phy_i2c_crash_v4.4' into 'release/v4.4'

esp_phy: Add IRAM_ATTR for phy i2c spinlock (backport v4.4)

See merge request espressif/esp-idf!17757
This commit is contained in:
Jiang Jiang Jian 2022-04-14 18:26:35 +08:00
commit fdb756b8f9

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();
}