esp-hal icon indicating copy to clipboard operation
esp-hal copied to clipboard

Implement the `embedded_hal_async::delay::DelayUs` trait

Open jessebraham opened this issue 2 years ago • 2 comments
trafficstars

This trait as added in one of the alpha releases, and we never implemented it. This trait will need to be implemented in order to use future versions of embassy.

  • [x] SYSTIMER (#812)
  • [ ] TIMG
  • [ ] Xtensa CPU Timers (?)

jessebraham avatar Aug 23 '23 15:08 jessebraham

This trait has been around since the 0.1 release of the eha, but didn't really need to implement it as embassy-time offers an impl based on the time driver impls. If we were to implement this we should impl on the following

  • Systimer (alarms only)
  • TIMG timers
  • Xtensa internal CPU timers (maybe)
  • Anything else that has a configurable time period + interrupt? Maybe something in the RTC domain

MabezDev avatar Aug 24 '23 13:08 MabezDev

Once https://github.com/esp-rs/esp-hal/issues/1063 is resolved we can revisit this issue.

jessebraham avatar Feb 15 '24 14:02 jessebraham