riscv-rust / e310x-hal

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

Fix Delay and add Sleep as compatible option #18

Closed almindor closed 5 years ago

almindor commented 5 years ago

This PR does 3 things:

  1. Fixes Delay ticks calculation (for default clock)
  2. Adds Sleep as DelayMs compatible implementation for delays using mtimecmp and wfi()
  3. Bumps version + dependency updates