stm32f103-pac
A low-level peripheral access crate for STM32F103 microcontrollers, generated using svd2rust. This crate gives you direct access to all registers of the MCU, allowing fine-grained control over peripherals without relying on a higher-level HAL.
Features
- Access to all STM32F103 peripherals via safe Rust abstractions over raw registers.
- Supports direct manipulation of GPIO, timers, ADC, USART, I2C, SPI, and more.
- Compatible with
embedded-haltraits when wrapped in your own abstractions. - No dependencies on external HAL crates — minimal and lightweight.
Example: Blinking an LED on PA5
use Peripherals;
use OutputPin;
Usage
Add this crate to your Cargo.toml:
[]
= { = "../stm32f103-pac" }
= "0.2"
This crate is designed for bare-metal development on STM32F103 MCUs
Documentation
Run:
for the full API documentation generated from the PAC.
License
See Licence
Se vuoi, posso scrivere una versione ancora più colloquiale e “friendly”, che spieghi la filosofia della crate e come usarla senza sembrare un documento tecnico pesante. Vuoi che faccia quella versione?