mirror of
https://github.com/espressif/esp-idf
synced 2025-03-31 03:41:07 -04:00
Merge branch 'bugfix/move_phy_api_to_iram' into 'master'
components/phy: add IRAM_ATTR attribute to the two APIs used in phy calibration See merge request !1858
This commit is contained in:
commit
bbfe2fc5f1
@ -46,12 +46,12 @@ static int s_phy_rf_init_count = 0;
|
|||||||
|
|
||||||
static _lock_t s_phy_rf_init_lock;
|
static _lock_t s_phy_rf_init_lock;
|
||||||
|
|
||||||
uint32_t phy_enter_critical(void)
|
uint32_t IRAM_ATTR phy_enter_critical(void)
|
||||||
{
|
{
|
||||||
return portENTER_CRITICAL_NESTED();
|
return portENTER_CRITICAL_NESTED();
|
||||||
}
|
}
|
||||||
|
|
||||||
void phy_exit_critical(uint32_t level)
|
void IRAM_ATTR phy_exit_critical(uint32_t level)
|
||||||
{
|
{
|
||||||
portEXIT_CRITICAL_NESTED(level);
|
portEXIT_CRITICAL_NESTED(level);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user