mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
phy_override: add pwdet power function
This commit is contained in:
parent
5be3c21cfc
commit
5ab90e9728
@ -49,3 +49,12 @@ IRAM_ATTR void phy_i2c_exit_critical(void)
|
||||
{
|
||||
regi2c_exit_critical();
|
||||
}
|
||||
|
||||
void phy_set_pwdet_power(bool en)
|
||||
{
|
||||
if (en) {
|
||||
sar_periph_ctrl_pwdet_power_acquire();
|
||||
} else {
|
||||
sar_periph_ctrl_pwdet_power_release();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user