Crate itsybitsy_m4

source ·

Re-exports§

Modules§

  • Use the SERCOM peripheral for I2C communications
  • Use a SERCOM peripheral for SPI transactions
  • Use the SERCOM peripheral for UART communications

Macros§

Structs§

  • GenericClockController encapsulates the GCLK hardware. It provides a type safe way to configure the system clocks. Initializing the GenericClockController instance configures the system to run at 120MHz by taking the DFLL48 and feeding it into the DPLL0 hardware which multiplies the signal by 2.5x.
  • Hertz
  • Qspi used for read/write of fixed-size octet buffers
  • BSP replacement for the HAL Pins type

Enums§

  • Baudrate calculation in asynchronous mode
  • Type-level variant of IoSet representing SERCOM IOSET 1
  • Type-level variant of IoSet representing SERCOM IOSET 3
  • Baudrate oversampling values
  • Type-level variant of IoSet representing an undocumented SERCOM IOSET

Constants§

Traits§

  • Marker trait that indicates that a timer is periodic

Functions§

  • Convenience for setting up the dotstar LED using bitbang’ed SPI.
  • Convenience for setting up the labelled SDA, SCL pins to operate as an I2C master running at the specified frequency.
  • Convenience for setting up the onboard QSPI flash. Enables the clocks for the QSPI peripheral in single data rate mode assuming 120MHz system clock, for 4MHz QSPI mode 0 operation.
  • Convenience for setting up the default SPI. This powers up SERCOM1 and configures it for use as an SPI Master in SPI Mode 0.
  • Convenience for setting up the labelled RX, TX pins to operate as a UART device running at the specified baud.

Type Aliases§

Attribute Macros§