forked from espressif/esp-idf
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