Crate stm32f3xx_hal[−][src]
Expand description
stm32f3xx-hal
stm32f3xx-hal
contains a multi device hardware abstraction on top of the
peripheral access API for the STMicro STM32F3 series microcontrollers.
Cargo features
Target chip selection
This crate requires you to specify your target chip as a feature.
Please select one of the following (x
denotes any character in [a-z]):
- stm32f301x6
- stm32f301x8
- stm32f318x8
- stm32f302x6
- stm32f302x8
- stm32f302xb
- stm32f302xc
- stm32f302xd
- stm32f302xe
- stm32f303x6
- stm32f303x8
- stm32f303xb
- stm32f303xc
- stm32f303xd
- stm32f303xe
- stm32f328x8
- stm32f358xc
- stm32f398xe
- stm32f373x8
- stm32f373xb
- stm32f373xc
- stm32f378xc
- stm32f334x4
- stm32f334x6
- stm32f334x8
Example: The STM32F3Discovery board has a STM32F303VCT6 chip.
So you need to specify stm32f303xc
in your Cargo.toml
(note that VC → xc).
For more information, see the README.
ld
When this feature is enabled the memory.x
linker script for target chip is automatically
provided by this crate. See cortex-m-rt
document for more info.
rt
This feature enables stm32f3
’s rt
feature. See cortex-m-rt
document for more info.
can
Enable CAN peripherals on supported targets.
stm32-usbd
Enable USB peripherals on supported targets.
defmt
Currently these are only used for panicking calls, like
assert!
panic!
or unwrap()
. These are enabled using the defmt
filter.
For now defmt is mostly intended for internal development and testing
to further reduce panicking calls in this crate.
The support of this feature is subject to change as the development
of defmt is advancing.
To use this feature follow the Application Setup of the defmt-book
.
Re-exports
pub use embedded_hal as hal; | |
pub use nb; | |
pub use embedded_time as time; |
Modules
adc | Analog to Digital Converter. |
can | Controller Area Network. |
delay | Delays |
dma | Direct memory access (DMA) controller. |
flash | Flash memory |
gpio | General Purpose Input / Output |
i2c | Inter-Integrated Circuit (I2C) bus |
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 |
syscfg | System configuration controller |
timer | Timers |
usb | USB peripheral. |
watchdog | Watchdog |
Macros
block | Turns the non-blocking expression |
Enums
interrupt | Enable use of interrupt macro. (Requires feature |
Attribute Macros
interrupt | Enable use of interrupt macro. (Requires feature |