diff options
| -rw-r--r-- | tests/stm32/src/bin/i2c_v2_master.rs | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/tests/stm32/src/bin/i2c_v2_master.rs b/tests/stm32/src/bin/i2c_v2_master.rs index b841d556a..34f9b48d3 100644 --- a/tests/stm32/src/bin/i2c_v2_master.rs +++ b/tests/stm32/src/bin/i2c_v2_master.rs | |||
| @@ -48,12 +48,7 @@ async fn main(_spawner: Spawner) { | |||
| 48 | // ========== BLOCKING DIRECT API TESTS ========== | 48 | // ========== BLOCKING DIRECT API TESTS ========== |
| 49 | info!("========== BLOCKING DIRECT API TESTS =========="); | 49 | info!("========== BLOCKING DIRECT API TESTS =========="); |
| 50 | { | 50 | { |
| 51 | let mut i2c = I2c::new_blocking( | 51 | let mut i2c = I2c::new_blocking(i2c_peri.reborrow(), scl.reborrow(), sda.reborrow(), config); |
| 52 | i2c_peri.reborrow(), | ||
| 53 | scl.reborrow(), | ||
| 54 | sda.reborrow(), | ||
| 55 | config, | ||
| 56 | ); | ||
| 57 | 52 | ||
| 58 | info!("=== Test 1: Direct blocking_write ==="); | 53 | info!("=== Test 1: Direct blocking_write ==="); |
| 59 | test_blocking_write(&mut i2c, slave_addr); | 54 | test_blocking_write(&mut i2c, slave_addr); |
| @@ -78,12 +73,7 @@ async fn main(_spawner: Spawner) { | |||
| 78 | // ========== BLOCKING TRANSACTION TESTS ========== | 73 | // ========== BLOCKING TRANSACTION TESTS ========== |
| 79 | info!("========== BLOCKING TRANSACTION TESTS =========="); | 74 | info!("========== BLOCKING TRANSACTION TESTS =========="); |
| 80 | { | 75 | { |
| 81 | let mut i2c = I2c::new_blocking( | 76 | let mut i2c = I2c::new_blocking(i2c_peri.reborrow(), scl.reborrow(), sda.reborrow(), config); |
| 82 | i2c_peri.reborrow(), | ||
| 83 | scl.reborrow(), | ||
| 84 | sda.reborrow(), | ||
| 85 | config, | ||
| 86 | ); | ||
| 87 | 77 | ||
| 88 | info!("=== Test 6: Consecutive Writes (Should Merge) ==="); | 78 | info!("=== Test 6: Consecutive Writes (Should Merge) ==="); |
| 89 | test_consecutive_writes_blocking(&mut i2c, slave_addr); | 79 | test_consecutive_writes_blocking(&mut i2c, slave_addr); |
