[−][src]Crate stm32f3xx_hal_v2
stm32f3xx-hal
stm32f3xx-hal
contains a multi device hardware abstraction on top of the
peripheral access API for the STMicro STM32F3 series microcontrollers. The
selection of the MCU is done by feature gates
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) |
can | Controller Area Network |
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 |
exti | Configure external interrupts for the stm32f3xx. See STM32f303 reference man section 14, including Table 82. |
flash | Flash memory |
gpio | General Purpose Input / Output |
i2c | Inter-Integrated Circuit (I2C) bus |
low_power | This module contains code used to place the STM32F3 in low power modes.
Reference section 3.7: |
pac | Peripheral access |
prelude | Prelude |
pwm | Pulse width modulation |
rcc | Reset and Clock Control |
rtc | Real Time Clock |
serial | Serial |
spi | Serial Peripheral Interface (SPI) bus |
stm32 | Peripheral access |
time | Time units |
timer | Timers |
usb | USB peripheral |
watchdog | Watchdog |
Macros
block | Turns the non-blocking expression |
expect | Wrapper macro for |
make_wakeup_interrupt_handler | This provides a default handler for RTC inputs that clears the EXTI line and
wakeup flag. If you don't need additional functionality, run this in the main body of your program, eg:
|
unwrap | Wrapper macro for |
Enums
interrupt | Enumeration of all the interrupts |
Attribute Macros
interrupt | Attribute to declare an interrupt (AKA device-specific exception) handler |