diff options
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs index 5733506ac..7bf3992cd 100644 --- a/src/lib.rs +++ b/src/lib.rs | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | #![no_std] | 1 | #![no_std] |
| 2 | #![no_main] | 2 | #![no_main] |
| 3 | #![feature(type_alias_impl_trait, concat_bytes)] | 3 | #![allow(incomplete_features)] |
| 4 | #![feature(async_fn_in_trait, type_alias_impl_trait, concat_bytes)] | ||
| 4 | #![deny(unused_must_use)] | 5 | #![deny(unused_must_use)] |
| 5 | 6 | ||
| 6 | // This mod MUST go first, so that the others see its macros. | 7 | // This mod MUST go first, so that the others see its macros. |
| @@ -24,6 +25,7 @@ use embedded_hal_1::digital::OutputPin; | |||
| 24 | use embedded_hal_async::spi::{SpiBusRead, SpiBusWrite, SpiDevice}; | 25 | use embedded_hal_async::spi::{SpiBusRead, SpiBusWrite, SpiDevice}; |
| 25 | 26 | ||
| 26 | use crate::bus::Bus; | 27 | use crate::bus::Bus; |
| 28 | pub use crate::bus::SpiBusCyw43; | ||
| 27 | use crate::consts::*; | 29 | use crate::consts::*; |
| 28 | use crate::events::Event; | 30 | use crate::events::Event; |
| 29 | use crate::structs::*; | 31 | use crate::structs::*; |
| @@ -512,7 +514,7 @@ pub async fn new<'a, PWR, SPI>( | |||
| 512 | where | 514 | where |
| 513 | PWR: OutputPin, | 515 | PWR: OutputPin, |
| 514 | SPI: SpiDevice, | 516 | SPI: SpiDevice, |
| 515 | SPI::Bus: SpiBusRead<u32> + SpiBusWrite<u32>, | 517 | SPI::Bus: SpiBusCyw43<u32>, |
| 516 | { | 518 | { |
| 517 | let (ch_runner, device) = ch::new(&mut state.ch, [0; 6]); | 519 | let (ch_runner, device) = ch::new(&mut state.ch, [0; 6]); |
| 518 | let state_ch = ch_runner.state_runner(); | 520 | let state_ch = ch_runner.state_runner(); |
| @@ -551,7 +553,7 @@ impl<'a, PWR, SPI> Runner<'a, PWR, SPI> | |||
| 551 | where | 553 | where |
| 552 | PWR: OutputPin, | 554 | PWR: OutputPin, |
| 553 | SPI: SpiDevice, | 555 | SPI: SpiDevice, |
| 554 | SPI::Bus: SpiBusRead<u32> + SpiBusWrite<u32>, | 556 | SPI::Bus: SpiBusCyw43<u32>, |
| 555 | { | 557 | { |
| 556 | async fn init(&mut self, firmware: &[u8]) { | 558 | async fn init(&mut self, firmware: &[u8]) { |
| 557 | self.bus.init().await; | 559 | self.bus.init().await; |
