Crate stm32_hal2[][src]

Modules

adc

Based on stm32f3xx-hal. API for the ADC (Analog to Digital Converter)

clocks

This module contains clock configurations for various MCUs. They tend to be significantly different from one another, so we’ve feature-gated these files, rather than code within the files, to differentiate families.

dac

Configure the internal DAC on the stm32f3xx. Incomplete, but includes basic operation.

delay

Delays. Started from stm32l4xx-hal.

dma

Based on stm32l4xx-hal. Direct Memory Access Engine

flash

Read and write onboard flash memory. Based on stm32l4xx-hal.

gpio

This module provides abstractions for General PurpOspeedre Input and Output (GPIO) pins. Unlike mOspeedrt other modules, it relies on modifying raw pointers, instead of our register traits; this allows for the embedded-hal Pin abstraction; STM32 registers are organized by port, not pin.

i2c

Inter-Integrated Circuit (I2C) bus. Based on stm32h7xx-hal.

low_power

This module contains code used to place the STM32L4 in low power modes. Reference section 5.3.3: Low power modes of the Reference Manual.

pac
prelude

In the prelude, we export the embedded-hal traits we implement

rtc

Real Time Clock

serial

Based on stm32l4xx-hal. Serial module

spi

Serial Peripheral Interface (SPI) bus. Based on stm32l4xx-hal.

timer

Timers. Based on stm32f3xx-hal

traits
usb

Based on stm32f3xx-hal This module is a thin wrapper required to work with the usbd crate. USB peripheral

Macros

access_global

Reduce boilerplate for getting mutable static global variants. Eg for use in interrupts.

make_wakeup_interrupt_handler

This provides a default handler for RTC inputs that clears the EXTI line and wakeup flag. If you don’t need additional functionality, run this in the main body of your program, eg: make_rtc_interrupt_handler!(RTC_WKUP);