-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from stm32-data 9477a073d73f6160fba6a05be7f865c58ba5cf13
- Loading branch information
Embassy CI
committed
Jan 10, 2025
1 parent
c583333
commit bba1544
Showing
3 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# stm32-metapac | ||
|
||
This is a [Peripheral Access Crate](https://rust-embedded.github.io/book/start/registers.html) for STMicroelectronics STM32 microcontrollers. | ||
|
||
This crate has been automatically generated based on data in the [`stm32-data` project](https://github.com/embassy-rs/stm32-data), and is used for the [`embassy-stm32`](github.com/embassy-rs/embassy/) Rust Hardware Abstraction Layer (HAL) for the STM32 microcontrollers. | ||
|
||
## Metadata | ||
|
||
This PAC additionally exports "metadata" about the chips. To use it, enable the `metadata` feature and access it at `stm32_metapac::METADATA`. It is intended to be consumed from `build.rs` scripts or code-generation tools running on PCs, not from the firmware itself. | ||
|
||
The metadata includes the following info: | ||
|
||
- Memory maps for RAM, flash. | ||
- Interrupts | ||
- GPIO Alternate Function mappings | ||
- Interrupt -> peripheral mappings | ||
- DMA channel -> peripehral mappings | ||
- RCC clock tree information for each peripheral (what clocks does it receive, which RCC registers to poke to enable, reset, or choose the clock) | ||
|
||
## Supported chips | ||
|
||
This PAC aims to support all STM32 chip families: | ||
|
||
- STM32F0 | ||
- STM32F1 | ||
- STM32F2 | ||
- STM32F3 | ||
- STM32F4 | ||
- STM32F7 | ||
- STM32C0 | ||
- STM32G0 | ||
- STM32G4 | ||
- STM32H5 | ||
- STM32H7 | ||
- STM32H7RS | ||
- STM32L0 | ||
- STM32L1 | ||
- STM32L4 | ||
- STM32L5 | ||
- STM32U0 | ||
- STM32U5 | ||
- STM32WB | ||
- STM32WBA | ||
- STM32WL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters