stm32f4xx-hal
                                
                                 stm32f4xx-hal copied to clipboard
                                
                                    stm32f4xx-hal copied to clipboard
                            
                            
                            
                        Passing delay to device driver
Hi, Is there a proper way implemented to use blocking delay inside of a device driver? There doesn't seem to be a way to create a driver struct that has access to a delay without either
- Giving ownership of the delay to the struct
- Passing a reference to a delay within every API call.
Clone and copy are not implemented for stm32f4xx_hal::timer::SYST.
I don't know if I am just missing something obvious or the proper way to do this.
I did look into this here, but I can't find a conclusive answer on how I should be designing drivers.
The second option is much more flexible, so it is more preferable. You can discuss it in matrix if you are not sure.