pub(crate) fn revert_trng() {
    unsafe {
        // Restore internal I2C bus state
        regi2c::ADC_SAR1_DREF.write_field(1);
        regi2c::ADC_SAR2_DREF.write_field(1);
        regi2c::ADC_SAR1_ENCAL_REF.write_field(0);
        regi2c::ADC_SAR_ENT_TSENS.write_field(0);
        regi2c::ADC_SAR_ENT_RTC.write_field(0);

        // Restore SARADC to default mode
        SENS::regs()
            .sar_meas1_mux()
            .modify(|_, w| w.sar1_dig_force().clear_bit());

        SYSTEM::regs()
            .perip_clk_en0()
            .modify(|_, w| w.apb_saradc_clk_en().set_bit());

        SENS::regs()
            .sar_power_xpd_sar()
            .modify(|_, w| w.force_xpd_sar().bits(0));

        APB_SARADC::regs()
            .ctrl2()
            .modify(|_, w| w.timer_en().clear_bit());
    }
}
Disable true randomness. Unlocks `ADC` peripheral.
esp-hal/src/soc/esp32s2/trng.rs