[][src]Crate stm32f103xx_hal

[]

HAL for the STM32F103xx family of microcontrollers

This is an implementation of the embedded-hal traits for the STM32F103xx family of microcontrollers.

Usage

$ git clone https://github.com/japaric/stm32f103xx-hal

# on another terminal
$ openocd -f interface/$INTERFACE.cfg -f target/stm32f1x.cfg

# flash and debug the "Hello, world" example
# NOTE examples assume 64KB of Flash and 20KB of RAM; you can tweak layout in memory.x
$ cd stm32f103xx-hal
$ rustup target add thumbv7m-none-eabi
$ cargo run --example hello

Follow the cortex-m-quickstart instructions and add this crate as a dependency and make sure you enable the "rt" Cargo feature of this crate.

Examples

See the examples module.

Re-exports

pub use stm32f103xx;
pub use stm32f103xx as device;

Modules

afio
bb

Bit banding

delay

Delays

dma
flash

Flash memory

gpio

General Purpose Input / Output

i2c

Inter-Integrated Circuit (I2C) bus

prelude
pwm
pwm2
qei
rcc
serial
spi
time

Time units

timer