esp_phy: Add IRAM_ATTR for phy i2c spinlock

This commit is contained in:
xiewenxiang 2022-04-13 12:15:38 +08:00 committed by Michael (XIAO Xufeng)
parent a8e00c3691
commit dcf385b356

View File

@ -5,6 +5,7 @@
*/
#include <stdbool.h>
#include "esp_attr.h"
#include "driver/adc.h"
/*
@ -41,12 +42,12 @@ void set_xpd_sar(bool en)
extern void regi2c_enter_critical(void);
extern void regi2c_exit_critical(void);
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();
}