From fe467b44f129cc6fc8c335b62f9b67686994c232 Mon Sep 17 00:00:00 2001 From: Andelf Date: Wed, 20 Nov 2024 14:55:57 +0800 Subject: [PATCH] fix(embassy): avoid rt hang --- src/embassy/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/embassy/mod.rs b/src/embassy/mod.rs index 8f53945..3db1ae1 100644 --- a/src/embassy/mod.rs +++ b/src/embassy/mod.rs @@ -23,10 +23,8 @@ pub mod time_driver_impl; /// The WCH QingKe RISC-V core deviates from standard RISC-V specification: /// - `WFI` instruction will not wake up from disabled interrupts /// - Either `WFITOWFE` or `SEVONPEND` must be enabled for proper wake-up behavior -/// -/// `WFITOWFE` is configured in `qingke-rt`, so no additional setup needed here pub unsafe fn init() { - // crate::pac::PFIC.sctlr().modify(|w| w.set_sevonpend(true)); + crate::pac::PFIC.sctlr().modify(|w| w.set_sevonpend(true)); #[cfg(all(qingke_v4, not(time_driver_timer)))] time_driver_impl::init();