diff options
| author | Cristian Milatinov <[email protected]> | 2025-07-09 20:35:01 -0400 |
|---|---|---|
| committer | Cristian Milatinov <[email protected]> | 2025-11-04 22:39:33 -0500 |
| commit | 141f826e10802a40ac1bca8fdcdfa3da821e0f28 (patch) | |
| tree | e289966bbdb69123a3e996330a0f0741d650e7fb /examples/stm32l4 | |
| parent | ff42c61dc6c0f870b4022aca52f3c45d992ae735 (diff) | |
feat: stm32 spi driver slave mode
Add SPI slave constructors
Fix SPI slave constructors
Fix embedded hal async trait
One more constructor fix
Set SSM bit in SPI driver according to CommunicationMode
Fix embedded_hal_async trait to be generic for both master and slave
Fix I2S driver to use async master SPI
Forgot import from spi mode
Fix CommunicationMode associated const conditionals
Duplicate doc for CommunicationMode const
Add missing nss argument
Fix existing SPI tests not compiling
Fix stm32h7rs examples not compiling
Fix failing stm32l4 example
Fix stm32h7 example
Fix stm32h7 spi_bdma example
Fix stm32h7 spi example
Fix stm32f4 example
docs: added entry in changelog.md
fix: spi_v3 vals mismatch + rise_fall_speed renamed to gpio_speed
fix: added spi_v6 conditional compilation feature
fix: use if_afio macro in slave constructors
fix: add missing trait bound
fix: if_afio for cs pin trait
fix: changelog message
fix: broken rebase
Diffstat (limited to 'examples/stm32l4')
| -rw-r--r-- | examples/stm32l4/src/bin/spe_adin1110_http_server.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/stm32l4/src/bin/spe_adin1110_http_server.rs b/examples/stm32l4/src/bin/spe_adin1110_http_server.rs index 8e54938d1..0dbf515cf 100644 --- a/examples/stm32l4/src/bin/spe_adin1110_http_server.rs +++ b/examples/stm32l4/src/bin/spe_adin1110_http_server.rs | |||
| @@ -28,6 +28,7 @@ use embassy_stm32::gpio::{Input, Level, Output, Pull, Speed}; | |||
| 28 | use embassy_stm32::i2c::{self, Config as I2C_Config, I2c}; | 28 | use embassy_stm32::i2c::{self, Config as I2C_Config, I2c}; |
| 29 | use embassy_stm32::mode::Async; | 29 | use embassy_stm32::mode::Async; |
| 30 | use embassy_stm32::rng::{self, Rng}; | 30 | use embassy_stm32::rng::{self, Rng}; |
| 31 | use embassy_stm32::spi::mode::Master; | ||
| 31 | use embassy_stm32::spi::{Config as SPI_Config, Spi}; | 32 | use embassy_stm32::spi::{Config as SPI_Config, Spi}; |
| 32 | use embassy_stm32::time::Hertz; | 33 | use embassy_stm32::time::Hertz; |
| 33 | use embassy_stm32::{bind_interrupts, exti, pac, peripherals}; | 34 | use embassy_stm32::{bind_interrupts, exti, pac, peripherals}; |
| @@ -54,7 +55,7 @@ const IP_ADDRESS: Ipv4Cidr = Ipv4Cidr::new(Ipv4Address::new(192, 168, 1, 5), 24) | |||
| 54 | // Listen port for the webserver | 55 | // Listen port for the webserver |
| 55 | const HTTP_LISTEN_PORT: u16 = 80; | 56 | const HTTP_LISTEN_PORT: u16 = 80; |
| 56 | 57 | ||
| 57 | pub type SpeSpi = Spi<'static, Async>; | 58 | pub type SpeSpi = Spi<'static, Async, Master>; |
| 58 | pub type SpeSpiCs = ExclusiveDevice<SpeSpi, Output<'static>, Delay>; | 59 | pub type SpeSpiCs = ExclusiveDevice<SpeSpi, Output<'static>, Delay>; |
| 59 | pub type SpeInt = exti::ExtiInput<'static>; | 60 | pub type SpeInt = exti::ExtiInput<'static>; |
| 60 | pub type SpeRst = Output<'static>; | 61 | pub type SpeRst = Output<'static>; |
