ch32-rs / ch32v00x-hal

HAL for the CH32V003 family of microcontrollers
29 stars 11 forks source link

Add delay based on systick #1

Closed david-sawatzke closed 1 year ago

david-sawatzke commented 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.

Depends on https://github.com/ch32-rs/ch32-rs/pull/15