Skip to content

0.5.0

Latest

Choose a tag to compare

@RossPorter506 RossPorter506 released this 31 Oct 00:30

Additions

  • Add support for low power modes
  • Add SPI slave support. This includes modifying SPI configuration flow and SpiErr.
  • Add support for I2C multi-master, slave, and master-slave roles.
  • Add support for Smart Analog Combo and Enhanced Comparator modules (MSP430FR23xx only)
  • Add support for reading from / writing to backup memory and information memory
  • Add support for hardware CRC module
  • Add implementations for embedded-hal 1.0 traits (including embedded-io and embedded-hal-nb).
  • Support for delays when using sub-1MHz clock sources (e.g. ACLK, VLOCLK).
  • Add methods to enable the internal voltage reference and temperature sensor.
  • Add additional generic delay implementations for eh-0.2.7 DelayMs trait (u8, u32, i32).
  • Derive Debug and Copy for RecvError.

Changes

  • MSRV updated to nightly-2023-09-01 (1.82) due to msp430-rt 0.4.1.
  • Gate embedded-hal 0.2.7 implementations behind embedded-hal-02 feature.
  • Expose functionality from the traits dropped between eh-0.2.7 and eh-1.0 (ADC, timers, RTC, watchdog, etc.) as methods on structs instead.
  • The SPI struct has been renamed from SpiBus to Spi to avoid naming conflicts with the new embedded-hal 1.0 trait SpiBus.
  • Ensure crate builds successfully back to nightly-2023-09-01.
  • Replace public references to void::Void with core::convert::Infallible.

Bugfixes

  • Fix SPI flushing bug.
  • Fix GPIO pins labelled with incorrect SPI functionality for eUSCI A0 and A1.
  • Fixed a bug that would sometimes cause an infinite loop during clock configuration (same bug mentioned in v0.4.0).
  • Bring I2C implementation inline with the contracts mentioned in embedded-hal.