[][src]Crate drone_stm32_map

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_cortex_m::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
stm32f401ARM® Cortex®-M4F r0p1RM0368adc dma exti gpio tim
stm32f405ARM® Cortex®-M4F r0p1RM0090adc dma exti gpio tim
stm32f407ARM® Cortex®-M4F r0p1RM0090adc dma exti gpio tim
stm32f410ARM® Cortex®-M4F r0p1RM0401adc dma exti gpio tim
stm32f411ARM® Cortex®-M4F r0p1RM0383adc dma exti gpio tim
stm32f412ARM® Cortex®-M4F r0p1RM0402adc dma exti gpio tim
stm32f413ARM® Cortex®-M4F r0p1RM0430adc dma exti gpio tim
stm32f427ARM® Cortex®-M4F r0p1RM0090adc dma exti gpio tim
stm32f429ARM® Cortex®-M4F r0p1RM0090adc dma exti gpio tim
stm32f446ARM® Cortex®-M4F r0p1RM0390adc dma exti gpio tim
stm32f469ARM® Cortex®-M4F r0p1RM0386adc dma exti gpio tim
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_cortex_m::map module documentation.

Usage

Place the following to the Cargo.toml:

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

Modules

periph

STM32 peripheral mappings.

reg

STM32 register mappings.

thr

STM32 interrupt mappings.

Macros

stm32_reg_tokens

Defines an index of STM32L4S9 register tokens.