Closed david-sawatzke closed 1 year ago
I think this would also make sense as a default delay implementation.
Since the delay function only reads the CNT register, we could steal access to the peripheral on each delay call and make SysDelay Copy, which is always nice.
CNT
SysDelay
Copy
Depends on https://github.com/ch32-rs/ch32-rs/pull/15
I think this would also make sense as a default delay implementation.
Since the delay function only reads the
CNT
register, we could steal access to the peripheral on each delay call and makeSysDelay
Copy
, which is always nice.Depends on https://github.com/ch32-rs/ch32-rs/pull/15