mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-07 14:44:32 +02:00
phy_override: add pwdet power function
This commit is contained in:
@@ -49,3 +49,12 @@ IRAM_ATTR void phy_i2c_exit_critical(void)
|
|||||||
{
|
{
|
||||||
regi2c_exit_critical();
|
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user