mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
Merge branch 'bugfix/fix_phy_i2c_crash_v4.3' into 'release/v4.3'
esp_phy: Add IRAM_ATTR for phy i2c spinlock (v4.3) See merge request espressif/esp-idf!17843
This commit is contained in:
@ -5,6 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include "esp_attr.h"
|
||||||
#include "driver/adc.h"
|
#include "driver/adc.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -41,12 +42,12 @@ void set_xpd_sar(bool en)
|
|||||||
extern void regi2c_enter_critical(void);
|
extern void regi2c_enter_critical(void);
|
||||||
extern void regi2c_exit_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();
|
regi2c_enter_critical();
|
||||||
}
|
}
|
||||||
|
|
||||||
void phy_i2c_exit_critical(void)
|
IRAM_ATTR void phy_i2c_exit_critical(void)
|
||||||
{
|
{
|
||||||
regi2c_exit_critical();
|
regi2c_exit_critical();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user