From c56db37864b38218b80b692700e1893f1516d6fb Mon Sep 17 00:00:00 2001 From: Kirill Mikhailov Date: Thu, 4 Jul 2024 10:46:51 +0200 Subject: [PATCH] TRNG/ADC on `esp32c6` warning comment --- esp-hal/src/rng.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/esp-hal/src/rng.rs b/esp-hal/src/rng.rs index 7b37ccc1cd1..3014a15366c 100644 --- a/esp-hal/src/rng.rs +++ b/esp-hal/src/rng.rs @@ -131,6 +131,9 @@ impl rand_core::RngCore for Rng { /// Due to pulling the entropy source from the ADC, it uses the associated /// regiters, so to use TRNG we need to "occupy" the ADC peripheral. /// +/// For now, even after calling `core::mem::drop()` on `TRNG` ADC1 will not be +/// usable (details in esp-hal/#1750) +/// /// ```rust, no_run #[doc = crate::before_snippet!()] /// # use esp_hal::rng::Trng;