Skip to content

Commit 2f176c8

Browse files
committed
fix(embassy): avoid rt hang
1 parent 3ccf0c8 commit 2f176c8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/embassy/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ pub mod time_driver_impl;
2323
/// The WCH QingKe RISC-V core deviates from standard RISC-V specification:
2424
/// - `WFI` instruction will not wake up from disabled interrupts
2525
/// - Either `WFITOWFE` or `SEVONPEND` must be enabled for proper wake-up behavior
26-
///
27-
/// `WFITOWFE` is configured in `qingke-rt`, so no additional setup needed here
2826
pub unsafe fn init() {
29-
// crate::pac::PFIC.sctlr().modify(|w| w.set_sevonpend(true));
27+
crate::pac::PFIC.sctlr().modify(|w| w.set_sevonpend(true));
3028

3129
#[cfg(all(qingke_v4, not(time_driver_timer)))]
3230
time_driver_impl::init();

0 commit comments

Comments
 (0)