[][src]Crate stm32f1xx_hal

HAL for the STM32F1 family of microcontrollers

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

Usage

  • Trying out the examples
$ git clone https://github.com/stm32-rs/stm32f1xx-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 stm32f1xx-hal
$ rustup target add thumbv7m-none-eabi
$ cargo run --example hello
  • Building an application (binary crate)

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 extern crate stm32f1;

Modules

afio
bb

Bit banding

delay

Delays

dma
flash

Flash memory

gpio

General Purpose Input / Output

i2c

Inter-Integrated Circuit (I2C) bus

prelude
pwm
qei
rcc
serial
spi
stm32
time

Time units

timer