From 8dd77e6635874d78684c3b4fe05e930f20b24a9b Mon Sep 17 00:00:00 2001 From: ivmarkov Date: Thu, 18 Jan 2024 20:22:57 +0000 Subject: [PATCH] Get rid of the riscv-ulp-hal feature --- src/peripherals.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/peripherals.rs b/src/peripherals.rs index 0a44dd4f9..202e3263d 100644 --- a/src/peripherals.rs +++ b/src/peripherals.rs @@ -100,17 +100,6 @@ static TAKEN: core::sync::atomic::AtomicBool = core::sync::atomic::AtomicBool::n static TAKEN_CS: crate::task::CriticalSection = crate::task::CriticalSection::new(); impl Peripherals { - pub fn take() -> Result { - if unsafe { TAKEN } { - panic!("Peripheral already taken") - } else { - unsafe { - TAKEN = true; - } - Ok(unsafe { Peripherals::new() }) - } - } - pub fn take() -> Result { if TAKEN.load(core::sync::atomic::Ordering::SeqCst) { Err(crate::sys::EspError::from_infallible::<