diff options
| author | Henrik Alsér <[email protected]> | 2022-11-05 01:12:25 +0100 |
|---|---|---|
| committer | Henrik Alsér <[email protected]> | 2022-11-05 01:12:25 +0100 |
| commit | 7da18e194a8a9fef207803b96b16e7b7bc787ca7 (patch) | |
| tree | ad023aae5b9abd7f465714da79d931771b271c49 /examples | |
| parent | a3e8a6bc3a706bc59b9d017699eaab93c1ba60d3 (diff) | |
Add status checks
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/nrf/src/bin/spis.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nrf/src/bin/spis.rs b/examples/nrf/src/bin/spis.rs index 181e08404..0fce23d31 100644 --- a/examples/nrf/src/bin/spis.rs +++ b/examples/nrf/src/bin/spis.rs | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | use defmt::info; | 5 | use defmt::info; |
| 6 | use embassy_executor::Spawner; | 6 | use embassy_executor::Spawner; |
| 7 | use embassy_nrf::interrupt; | 7 | use embassy_nrf::interrupt; |
| 8 | use embassy_nrf::spis::{self, Config}; | 8 | use embassy_nrf::spis::{Spis, Config}; |
| 9 | use {defmt_rtt as _, panic_probe as _}; | 9 | use {defmt_rtt as _, panic_probe as _}; |
| 10 | 10 | ||
| 11 | #[embassy_executor::main] | 11 | #[embassy_executor::main] |
| @@ -14,7 +14,7 @@ async fn main(_spawner: Spawner) { | |||
| 14 | info!("Running!"); | 14 | info!("Running!"); |
| 15 | 15 | ||
| 16 | let irq = interrupt::take!(SPIM2_SPIS2_SPI2); | 16 | let irq = interrupt::take!(SPIM2_SPIS2_SPI2); |
| 17 | let mut spis = spis::Spis::new(p.SPI2, irq, p.P0_31, p.P0_29, p.P0_28, p.P0_30, Config::default()); | 17 | let mut spis = Spis::new(p.SPI2, irq, p.P0_31, p.P0_29, p.P0_28, p.P0_30, Config::default()); |
| 18 | 18 | ||
| 19 | loop { | 19 | loop { |
| 20 | let mut buf = [0_u8; 64]; | 20 | let mut buf = [0_u8; 64]; |
