diff options
| author | Mathias <[email protected]> | 2022-08-23 13:24:52 +0200 |
|---|---|---|
| committer | Mathias <[email protected]> | 2022-08-23 13:24:52 +0200 |
| commit | 36cf719a1899202caeae39a8a6d5443a4acbdcfe (patch) | |
| tree | 4b58c2773f577dd7bb739358e48052841fff1432 /tests | |
| parent | 7e3ce2c90befe19ea30c6a784710f6cebf5a48f2 (diff) | |
| parent | cb9f0ef5b800ce4a22cde1805e0eb88425f1e07b (diff) | |
Merge branch 'master' of https://github.com/embassy-rs/embassy into embassy-rp/dma
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/rp/Cargo.toml | 2 | ||||
| -rw-r--r-- | tests/stm32/Cargo.toml | 2 | ||||
| -rw-r--r-- | tests/stm32/src/bin/usart.rs | 8 | ||||
| -rw-r--r-- | tests/stm32/src/bin/usart_dma.rs | 8 |
4 files changed, 4 insertions, 16 deletions
diff --git a/tests/rp/Cargo.toml b/tests/rp/Cargo.toml index 8740cc488..4d6877ccd 100644 --- a/tests/rp/Cargo.toml +++ b/tests/rp/Cargo.toml | |||
| @@ -4,7 +4,7 @@ name = "embassy-rp-tests" | |||
| 4 | version = "0.1.0" | 4 | version = "0.1.0" |
| 5 | 5 | ||
| 6 | [dependencies] | 6 | [dependencies] |
| 7 | embassy-util = { version = "0.1.0", path = "../../embassy-util", features = ["defmt"] } | 7 | embassy-sync = { version = "0.1.0", path = "../../embassy-sync", features = ["defmt"] } |
| 8 | embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["defmt", "integrated-timers"] } | 8 | embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["defmt", "integrated-timers"] } |
| 9 | embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["defmt"] } | 9 | embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["defmt"] } |
| 10 | embassy-rp = { version = "0.1.0", path = "../../embassy-rp", features = ["nightly", "defmt", "unstable-pac", "unstable-traits"] } | 10 | embassy-rp = { version = "0.1.0", path = "../../embassy-rp", features = ["nightly", "defmt", "unstable-pac", "unstable-traits"] } |
diff --git a/tests/stm32/Cargo.toml b/tests/stm32/Cargo.toml index 1d12995a2..f1441d00c 100644 --- a/tests/stm32/Cargo.toml +++ b/tests/stm32/Cargo.toml | |||
| @@ -13,7 +13,7 @@ stm32wb55rg = ["embassy-stm32/stm32wb55rg"] # Nucleo | |||
| 13 | stm32u585ai = ["embassy-stm32/stm32u585ai"] # IoT board | 13 | stm32u585ai = ["embassy-stm32/stm32u585ai"] # IoT board |
| 14 | 14 | ||
| 15 | [dependencies] | 15 | [dependencies] |
| 16 | embassy-util = { version = "0.1.0", path = "../../embassy-util", features = ["defmt"] } | 16 | embassy-sync = { version = "0.1.0", path = "../../embassy-sync", features = ["defmt"] } |
| 17 | embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["defmt", "integrated-timers"] } | 17 | embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["defmt", "integrated-timers"] } |
| 18 | embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["defmt", "tick-32768hz"] } | 18 | embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["defmt", "tick-32768hz"] } |
| 19 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "defmt", "unstable-pac", "memory-x", "time-driver-tim2"] } | 19 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "defmt", "unstable-pac", "memory-x", "time-driver-tim2"] } |
diff --git a/tests/stm32/src/bin/usart.rs b/tests/stm32/src/bin/usart.rs index fb4b3fcca..7673bfe6d 100644 --- a/tests/stm32/src/bin/usart.rs +++ b/tests/stm32/src/bin/usart.rs | |||
| @@ -15,12 +15,6 @@ async fn main(_spawner: Spawner) { | |||
| 15 | let p = embassy_stm32::init(config()); | 15 | let p = embassy_stm32::init(config()); |
| 16 | info!("Hello World!"); | 16 | info!("Hello World!"); |
| 17 | 17 | ||
| 18 | #[cfg(feature = "stm32wb55rg")] | ||
| 19 | { | ||
| 20 | info!("Test SKIPPED"); | ||
| 21 | cortex_m::asm::bkpt(); | ||
| 22 | } | ||
| 23 | |||
| 24 | // Arduino pins D0 and D1 | 18 | // Arduino pins D0 and D1 |
| 25 | // They're connected together with a 1K resistor. | 19 | // They're connected together with a 1K resistor. |
| 26 | #[cfg(feature = "stm32f103c8")] | 20 | #[cfg(feature = "stm32f103c8")] |
| @@ -32,7 +26,7 @@ async fn main(_spawner: Spawner) { | |||
| 32 | #[cfg(feature = "stm32f429zi")] | 26 | #[cfg(feature = "stm32f429zi")] |
| 33 | let (tx, rx, usart) = (p.PG14, p.PG9, p.USART6); | 27 | let (tx, rx, usart) = (p.PG14, p.PG9, p.USART6); |
| 34 | #[cfg(feature = "stm32wb55rg")] | 28 | #[cfg(feature = "stm32wb55rg")] |
| 35 | let (tx, rx, usart) = (p.PA9, p.PA10, p.USART1); // TODO this is wrong | 29 | let (tx, rx, usart) = (p.PA2, p.PA3, p.LPUART1); |
| 36 | #[cfg(feature = "stm32h755zi")] | 30 | #[cfg(feature = "stm32h755zi")] |
| 37 | let (tx, rx, usart) = (p.PB6, p.PB7, p.USART1); | 31 | let (tx, rx, usart) = (p.PB6, p.PB7, p.USART1); |
| 38 | #[cfg(feature = "stm32u585ai")] | 32 | #[cfg(feature = "stm32u585ai")] |
diff --git a/tests/stm32/src/bin/usart_dma.rs b/tests/stm32/src/bin/usart_dma.rs index 09382a022..e0389446f 100644 --- a/tests/stm32/src/bin/usart_dma.rs +++ b/tests/stm32/src/bin/usart_dma.rs | |||
| @@ -14,12 +14,6 @@ async fn main(_spawner: Spawner) { | |||
| 14 | let p = embassy_stm32::init(config()); | 14 | let p = embassy_stm32::init(config()); |
| 15 | info!("Hello World!"); | 15 | info!("Hello World!"); |
| 16 | 16 | ||
| 17 | #[cfg(feature = "stm32wb55rg")] | ||
| 18 | { | ||
| 19 | info!("Test SKIPPED"); | ||
| 20 | cortex_m::asm::bkpt(); | ||
| 21 | } | ||
| 22 | |||
| 23 | // Arduino pins D0 and D1 | 17 | // Arduino pins D0 and D1 |
| 24 | // They're connected together with a 1K resistor. | 18 | // They're connected together with a 1K resistor. |
| 25 | #[cfg(feature = "stm32f103c8")] | 19 | #[cfg(feature = "stm32f103c8")] |
| @@ -31,7 +25,7 @@ async fn main(_spawner: Spawner) { | |||
| 31 | #[cfg(feature = "stm32f429zi")] | 25 | #[cfg(feature = "stm32f429zi")] |
| 32 | let (tx, rx, usart, tx_dma, rx_dma) = (p.PG14, p.PG9, p.USART6, p.DMA2_CH6, p.DMA2_CH1); | 26 | let (tx, rx, usart, tx_dma, rx_dma) = (p.PG14, p.PG9, p.USART6, p.DMA2_CH6, p.DMA2_CH1); |
| 33 | #[cfg(feature = "stm32wb55rg")] | 27 | #[cfg(feature = "stm32wb55rg")] |
| 34 | let (tx, rx, usart, tx_dma, rx_dma) = (p.PA9, p.PA10, p.USART1, p.DMA1_CH1, p.DMA1_CH2); // TODO this is wrong | 28 | let (tx, rx, usart, tx_dma, rx_dma) = (p.PA2, p.PA3, p.LPUART1, p.DMA1_CH1, p.DMA1_CH2); |
| 35 | #[cfg(feature = "stm32h755zi")] | 29 | #[cfg(feature = "stm32h755zi")] |
| 36 | let (tx, rx, usart, tx_dma, rx_dma) = (p.PB6, p.PB7, p.USART1, p.DMA1_CH0, p.DMA1_CH1); | 30 | let (tx, rx, usart, tx_dma, rx_dma) = (p.PB6, p.PB7, p.USART1, p.DMA1_CH0, p.DMA1_CH1); |
| 37 | #[cfg(feature = "stm32u585ai")] | 31 | #[cfg(feature = "stm32u585ai")] |
