mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp_phy: Add IRAM_ATTR for phy i2c spinlock
This commit is contained in:
parent
0164ce894d
commit
ba3770ba30
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user