aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs8
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;
24use embedded_hal_async::spi::{SpiBusRead, SpiBusWrite, SpiDevice}; 25use embedded_hal_async::spi::{SpiBusRead, SpiBusWrite, SpiDevice};
25 26
26use crate::bus::Bus; 27use crate::bus::Bus;
28pub use crate::bus::SpiBusCyw43;
27use crate::consts::*; 29use crate::consts::*;
28use crate::events::Event; 30use crate::events::Event;
29use crate::structs::*; 31use crate::structs::*;
@@ -512,7 +514,7 @@ pub async fn new<'a, PWR, SPI>(
512where 514where
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>
551where 553where
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;