11个不稳定版本 (5个重大更改)

0.14.0 2021年4月9日
0.13.0 2020年11月28日
0.12.3 2020年9月7日
0.12.1 2020年5月3日
0.9.0 2019年9月3日

#2170 in 嵌入式开发

Download history 54/week @ 2024-03-11 33/week @ 2024-03-18 60/week @ 2024-03-25 72/week @ 2024-04-01 24/week @ 2024-04-08 27/week @ 2024-04-15 33/week @ 2024-04-22 34/week @ 2024-04-29 35/week @ 2024-05-06 27/week @ 2024-05-13 35/week @ 2024-05-20 17/week @ 2024-05-27 24/week @ 2024-06-03 24/week @ 2024-06-10 27/week @ 2024-06-17 31/week @ 2024-06-24

每月107次下载
12个crate中使用(通过drone-stm32-map-pieces

MIT/Apache

215KB
167

crates.io maintenance

Drone STM32 Map

STM32外围设备映射,用于Drone嵌入式操作系统。

此crate使用由CMSIS-SVD文件提供的STMicroelectronics自动生成Drone寄存器和中断绑定。然而,只有相应的参考手册是唯一的真实来源。此crate绑定与参考手册之间的差异被认为是错误。修复此类错误不是破坏性更改

此crate重新导出drone_cortexm::map模块的内容,并且是它的直接替代品。

支持的设备

drone_stm32_map 核心名称 参考手册 可用功能
stm32f100 ARM® Cortex®-M3 r1p1 RM0041 dma gpio spi tim
stm32f101 ARM® Cortex®-M3 r1p1 RM0008 dma gpio spi tim
stm32f102 ARM® Cortex®-M3 r1p1 RM0008 dma gpio spi tim
stm32f103 ARM® Cortex®-M3 r1p1 RM0008 dma gpio spi tim
stm32f107 ARM® Cortex®-M3 r1p1 RM0008 dma gpio spi tim
stm32f303 ARM® Cortex®-M4F r0p1 RM0316 adc dma exti gpio i2c tim
stm32f401 ARM® Cortex®-M4F r0p1 RM0368 adc dma exti gpio i2c spi tim uart
stm32f405 ARM® Cortex®-M4F r0p1 RM0090 adc dma exti gpio i2c spi tim uart
stm32f407 ARM® Cortex®-M4F r0p1 RM0090 adc dma exti gpio i2c spi tim uart
stm32f410 ARM® Cortex®-M4F r0p1 RM0401 adc dma exti gpio i2c spi tim uart
stm32f411 ARM® Cortex®-M4F r0p1 RM0383 adc dma exti gpio i2c spi tim uart
stm32f412 ARM® Cortex®-M4F r0p1 RM0402 adc dma exti gpio i2c spi tim uart
stm32f413 ARM® Cortex®-M4F r0p1 RM0430 adc dma exti gpio i2c spi tim uart
stm32f427 ARM® Cortex®-M4F r0p1 RM0090 adc dma exti gpio i2c spi tim uart
stm32f429 ARM® Cortex®-M4F r0p1 RM0090 adc dma exti gpio i2c spi tim uart
stm32f446 ARM® Cortex®-M4F r0p1 RM0390 adc dma exti gpio i2c spi tim uart
stm32f469 ARM® Cortex®-M4F r0p1 RM0386 adc dma exti gpio i2c spi tim uart
stm32l4x1 ARM® Cortex®-M4F r0p1 RM0394 dma exti gpio i2c rtc spi tim uart
stm32l4x2 ARM® Cortex®-M4F r0p1 RM0394 dma exti gpio i2c rtc spi tim uart
stm32l4x3 ARM® Cortex®-M4F r0p1 RM0394 dma exti gpio i2c rtc spi tim uart
stm32l4x5 ARM® Cortex®-M4F r0p1 RM0351 dma exti gpio i2c rtc spi tim uart
stm32l4x6 ARM® Cortex®-M4F r0p1 RM0351 dma exti gpio i2c rtc spi tim uart
stm32l4r5 ARM® Cortex®-M4F r0p1 RM0432 adc dma exti gpio i2c rtc spi tim uart
stm32l4s5 ARM® Cortex®-M4F r0p1 RM0432 adc dma exti gpio i2c rtc spi tim uart
stm32l4r7 ARM® Cortex®-M4F r0p1 RM0432 adc dma exti gpio i2c rtc spi tim uart
stm32l4s7 ARM® Cortex®-M4F r0p1 RM0432 adc dma exti gpio i2c rtc spi tim uart
stm32l4r9 ARM® Cortex®-M4F r0p1 RM0432 adc dma exti gpio i2c rtc spi tim uart
stm32l4s9 ARM® Cortex®-M4F r0p1 RM0432 adc dma exti gpio i2c rtc spi tim uart

drone_stm32_map 配置标志应按照此表在应用级别设置。

文档

API 文档有意跳过了自动生成的 [reg] 和 [thr] 绑定。否则它将占用几个GB的空间,并在浏览器中渲染非常慢。应参考参考手册。要了解无人机端API的样式,请查看 drone_cortexm::map 模块文档。

使用

将该包添加到您的 Cargo.toml 依赖项中

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

如下添加或扩展 host 功能

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

许可

根据您的选择,受以下任一项许可协议的约束

贡献

除非您明确声明,否则根据 Apache-2.0 许可证定义的,您有意提交的任何贡献,都应如上所述双重许可,不附加任何额外条款或条件。

依赖关系

~5–7MB
~135K SLoC