riscv-rust / e310x-hal

Implementation of the `embedded-hal` traits for E310x microcontrollers
17 stars 18 forks source link

implement DelayUs for Delay #34

Closed almindor closed 3 years ago

almindor commented 3 years ago

Implement DelayUs for Delay so it can be used where DelayUs is required.

Disasm commented 3 years ago

I'm not sure it's a good idea as the timer precision is quite poor. See also: https://github.com/riscv-rust/e310x-hal/issues/23 Adding a separate mcycle-based delay with DelayUs sounds like a better idea

Disasm commented 3 years ago

Let's merge it and improve later.