From 416baf64054ed038af804408ca03a8d861a4db9b Mon Sep 17 00:00:00 2001 From: 9names <60134748+9names@users.noreply.github.com> Date: Tue, 4 May 2021 18:08:06 +1000 Subject: [PATCH] Add #Safety tag to unsafe rationale docstring --- rp2040-hal/src/xosc.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rp2040-hal/src/xosc.rs b/rp2040-hal/src/xosc.rs index a499488..6f67b1e 100644 --- a/rp2040-hal/src/xosc.rs +++ b/rp2040-hal/src/xosc.rs @@ -175,6 +175,8 @@ impl CrystalOscillator { } /// Put the XOSC in DORMANT state. + /// + /// # Safety /// This method is marked unsafe because prior to switch the XOSC into DORMANT state, /// PLLs must be stopped and IRQs have to be properly configured. /// This method does not do any of that, it merely switches the XOSC to DORMANT state.