Skip to content

imxrt-hal 0.5.5

Compare
Choose a tag to compare
@mciantyre mciantyre released this 27 May 23:29
· 55 commits to main since this release

Add embedded-hal 1 implementations for the following drivers:

  • GPIO
  • LPUART
  • LPI2C

Introduce LPSPI improvements:

  • Add additional checks for LPSPI frame sizes.
  • Rework LPSPI clock settings, initialization, and disable.
  • Add flush() method.
  • Add soft_reset() method.
  • Allow users to change the mode while enabled. Deprecate the corresponding
    method on the Disabled helper.
  • Allow users to change the watermark while enabled. Deprecate the corresponding
    method on the Disabled helper.

Change how the LPSPI driver manages the FIFOs. As a result of this change, the
driver never returns the Busy or NoData errors through the embedded-hal
interfaces. Instead of returning Busy, the driver blocks until there's space in
the FIFO. If the caller provides an empty buffer, then the result is OK.

The LPSPI embedded-hal (0.2) implementations will implicitly flush after blocking
I/O. Users can rely on this behavior to synchronize external components.