pub(crate) fn revert_trng() {
    let apb_saradc = APB_SARADC::regs();
    let rtc_cntl = LPWR::regs();

    unsafe {
        regi2c::ADC_SAR2_ENCAL_REF.write_field(0);

        apb_saradc.ctrl2().modify(|_, w| w.timer_en().clear_bit());

        apb_saradc
            .dma_conf()
            .modify(|_, w| w.adc_trans().clear_bit());

        apb_saradc
            .sar_patt_tab1()
            .modify(|_, w| w.sar_patt_tab1().bits(0xffffff));

        apb_saradc
            .sar_patt_tab2()
            .modify(|_, w| w.sar_patt_tab2().bits(0xffffff));

        apb_saradc.clkm_conf().modify(|_, w| w.clk_en().clear_bit());

        apb_saradc.ctrl().modify(|_, w| w.xpd_sar_force().bits(0));

        rtc_cntl
            .cntl_sensor_ctrl()
            .modify(|_, w| w.force_xpd_sar().bits(0));
    }
}
Disable true randomness. Unlocks `ADC` peripheral.
esp-hal/src/soc/esp32c2/trng.rs