I am trying to use the
cortex-m-rtfm with the
timer-queue feature, but at the same time I need to do a blocking wait inside the
The reason for a blocking wait is that I am initializing the
enc28j60 chip, which has a silicone bug that requires a 1ms sleep after reset. The driver takes a
DelayMs implementer to do that sleep. No other blocking sleep is needed after initialization, so it doesn’t keep it.
If I wasn’t using RTFM, I would use the
stm32f1xx_hal::delay::Delay, but that requires the
SYST peripheral, which is not available with RTFM, because it is used for the timer queue.
I know that blocking wait should be generally avoided, but in this case it would be lot easier to just sleep for 1ms during initialization instead of trying to break it into two parts. The initialized
enc28j60 ends up being a RTFM resource, so I need to have it ready at the end of the
Does anyone know how to do a blocking wait in such situation?