[−][src]Crate stm32f3xx_hal_v2
Selecting the right chip
This crate requires you to specify your target chip as a feature.
Please select one of the following
(Note: x
denotes any character in [a-z])
- stm32f301
- stm32f318
- stm32f302xb
- stm32f302xc
- stm32f302xd
- stm32f302xe
- stm32f302x6
- stm32f302x8
- stm32f303xb
- stm32f303xc
- stm32f303xd
- stm32f303xe
- stm32f303x6
- stm32f303x8
- stm32f373
- stm32f378
- stm32f334
- stm32f328
- stm32f358
- stm32f398
Example: The STM32F3Discovery board has a STM32F303VCT6 chip.
So you want to expand your call to cargo
with --features stm32f303xc
.
For more information, see the README
Re-exports
pub use embedded_hal as hal; |
pub use nb; |
Modules
adc | API for the ADC (Analog to Digital Converter) |
clocks | This file provides an alternative way to set clocks than in the |
dac | Configure the internal DAC on the stm32f3xx. Incomplete, but includes basic operation. |
delay | Delays |
dma | Direct memory access (DMA) controller |
flash | Flash memory |
gpio | General Purpose Input / Output |
i2c | Inter-Integrated Circuit (I2C) bus |
interrupt_ | Configure interrupts for the stm32f3xx. |
low_power | This module contains code used to place the STM32F3 in low power modes.
Reference section 3.7: |
pac | |
prelude | Prelude |
pwm | Pulse width modulation |
rcc | Reset and Clock Control |
rtc | Interface to the real time clock. See STM32F303 reference manual, section 27. For more details, see ST AN4759 |
serial | Serial |
spi | Serial Peripheral Interface (SPI) bus |
stm32 | |
time | Time units |
timer | Timers |
usb | USB peripheral |
watchdog | Watchdog |
Macros
block | Turns the non-blocking expression |
make_interrupt_handler | These functions are called when their appropriate interrupt line
is triggered.
Eg:
|
make_rtc_interrupt_handler | To enable RTC wakeup interrupts, run this in the main body of your program, eg:
|
Enums
interrupt | Enumeration of all the interrupts |
Attribute Macros
interrupt | Attribute to declare an interrupt (AKA device-specific exception) handler |