Skip to content

Commit

Permalink
fix(embassy): avoid rt hang
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Dec 29, 2024
1 parent 3ccf0c8 commit 2f176c8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/embassy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2f176c8

Please sign in to comment.