Re-exports

pub use atsamd_hal as hal;
pub use crate::pins::Pins;
pub use hal::pac;

Modules

Delays

GPIO

PyPortal pins

Import the prelude to gain convenient access to helper traits

Real-time clock/counter

Configure the SERCOM peripherals

Delays with WFI sleep while we wait using a timer

spi_commonDeprecated

Time units

helper struct to calculate divider & cycles settings for timers.

Enums

ResetCause represents the reason the MCU was reset.

Functions

UART is connected to the ESP32 Wi-Fi co-processor

Convenience for setting up the labelled SDA, SCL pins to operate as an I2C master running at the specified frequency.

Returns the cause of the last reset.

Returns the serial number of the chip as an array of bytes. The serial number is only guaranteed to be unique if all 16 bytes are used.

This powers up SERCOM2 and configures it for use as an SPI Master in SPI Mode 0. Unlike the flash_spi_master function, this one does not accept a CS pin; configuring a pin for CS is the responsibility of the caller, because it could be any OutputPin, or even a pulled up line on the slave.

Returns the serial number of the chip as 4 32-bit integers. The serial number is only guaranteed to be unique if all 128 bits are used.

Attribute Macros