Crate drone_stm32_map[][src]

STM32 peripheral mappings for Drone, an Embedded Operating System.

This crate uses CMSIS-SVD files provided by STMicroelectronics to automatically generate Drone register and interrupt bindings. However only the corresponding Reference Manual is the single source of truth. A difference between this crate bindings and the Reference Manual is considered a bug. Fixing such a bug is not a breaking change.

This crate re-exports the contents of drone_cortexm::map module and is a drop-in replacement for it.

Supported Devices

stm32_mcuCore nameReference manualAvailable features
stm32f100ARM® Cortex®-M3 r1p1RM0041dma gpio spi tim
stm32f101ARM® Cortex®-M3 r1p1RM0008dma gpio spi tim
stm32f102ARM® Cortex®-M3 r1p1RM0008dma gpio spi tim
stm32f103ARM® Cortex®-M3 r1p1RM0008dma gpio spi tim
stm32f107ARM® Cortex®-M3 r1p1RM0008dma gpio spi tim
stm32f303ARM® Cortex®-M4F r0p1RM0316adc dma exti gpio i2c tim
stm32f401ARM® Cortex®-M4F r0p1RM0368adc dma exti gpio i2c spi tim uart
stm32f405ARM® Cortex®-M4F r0p1RM0090adc dma exti gpio i2c spi tim uart
stm32f407ARM® Cortex®-M4F r0p1RM0090adc dma exti gpio i2c spi tim uart
stm32f410ARM® Cortex®-M4F r0p1RM0401adc dma exti gpio i2c spi tim uart
stm32f411ARM® Cortex®-M4F r0p1RM0383adc dma exti gpio i2c spi tim uart
stm32f412ARM® Cortex®-M4F r0p1RM0402adc dma exti gpio i2c spi tim uart
stm32f413ARM® Cortex®-M4F r0p1RM0430adc dma exti gpio i2c spi tim uart
stm32f427ARM® Cortex®-M4F r0p1RM0090adc dma exti gpio i2c spi tim uart
stm32f429ARM® Cortex®-M4F r0p1RM0090adc dma exti gpio i2c spi tim uart
stm32f446ARM® Cortex®-M4F r0p1RM0390adc dma exti gpio i2c spi tim uart
stm32f469ARM® Cortex®-M4F r0p1RM0386adc dma exti gpio i2c spi tim uart
stm32l4x1ARM® Cortex®-M4F r0p1RM0394dma exti gpio i2c rtc spi tim uart
stm32l4x2ARM® Cortex®-M4F r0p1RM0394dma exti gpio i2c rtc spi tim uart
stm32l4x3ARM® Cortex®-M4F r0p1RM0394dma exti gpio i2c rtc spi tim uart
stm32l4x5ARM® Cortex®-M4F r0p1RM0351dma exti gpio i2c rtc spi tim uart
stm32l4x6ARM® Cortex®-M4F r0p1RM0351dma exti gpio i2c rtc spi tim uart
stm32l4r5ARM® Cortex®-M4F r0p1RM0432adc dma exti gpio i2c rtc spi tim uart
stm32l4s5ARM® Cortex®-M4F r0p1RM0432adc dma exti gpio i2c rtc spi tim uart
stm32l4r7ARM® Cortex®-M4F r0p1RM0432adc dma exti gpio i2c rtc spi tim uart
stm32l4s7ARM® Cortex®-M4F r0p1RM0432adc dma exti gpio i2c rtc spi tim uart
stm32l4r9ARM® Cortex®-M4F r0p1RM0432adc dma exti gpio i2c rtc spi tim uart
stm32l4s9ARM® Cortex®-M4F r0p1RM0432adc dma exti gpio i2c rtc spi tim uart

stm32_mcu config flag should be set at the application level according to this table.

Documentation

The API documentation intentionally skips auto-generated reg and thr bindings. Otherwise it would use several gigabytes of space and would be very slow to render in a browser. One should refer to the Reference Manual instead. And to get an idea of what the API looks like on the Drone side, look at the drone_cortexm::map module documentation.

Usage

Add the crate to your Cargo.toml dependencies:

[dependencies]
drone-stm32-map = { version = "0.14.0", features = [...] }

Add or extend std feature as follows:

[features]
std = ["drone-stm32-map/std"]

Modules

periph

STM32 peripheral mappings.

reg

STM32 register mappings.

thr

STM32 interrupt mappings.

Macros

stm32_reg_tokens

Defines an index of STM32L4S9 register tokens.