Skip to main content

init

Function init 

Source
pub unsafe fn init()
Expand description

Initialize the Embassy time driver.

System global clocks must be initialized before calling this function.

§Safety

This function should be called only once.

§Implementation Notes

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