fix examples
This commit is contained in:
		
							parent
							
								
									b4eb4a3d18
								
							
						
					
					
						commit
						50619638ee
					
				| @ -16,7 +16,8 @@ use embassy_hal_internal::{Peripheral, PeripheralRef}; | |||||||
| use embassy_sync::waitqueue::AtomicWaker; | use embassy_sync::waitqueue::AtomicWaker; | ||||||
| #[cfg(feature = "time")] | #[cfg(feature = "time")] | ||||||
| use embassy_time::{Duration, Instant}; | use embassy_time::{Duration, Instant}; | ||||||
| use mode::{Master, MasterMode}; | use mode::{MasterMode}; | ||||||
|  | pub use mode::{Master, MultiMaster}; | ||||||
| 
 | 
 | ||||||
| use crate::dma::ChannelAndRequest; | use crate::dma::ChannelAndRequest; | ||||||
| use crate::gpio::{AnyPin, SealedPin as _}; | use crate::gpio::{AnyPin, SealedPin as _}; | ||||||
|  | |||||||
| @ -23,7 +23,7 @@ const SHTC3_WAKEUP: [u8; 2] = [0x35, 0x17]; | |||||||
| const SHTC3_MEASURE_RH_FIRST: [u8; 2] = [0x5c, 0x24]; | const SHTC3_MEASURE_RH_FIRST: [u8; 2] = [0x5c, 0x24]; | ||||||
| const SHTC3_SLEEP: [u8; 2] = [0xb0, 0x98]; | const SHTC3_SLEEP: [u8; 2] = [0xb0, 0x98]; | ||||||
| 
 | 
 | ||||||
| static I2C_BUS: StaticCell<NoopMutex<RefCell<I2c<'static, Async>>>> = StaticCell::new(); | static I2C_BUS: StaticCell<NoopMutex<RefCell<I2c<'static, Async, i2c::Master>>>> = StaticCell::new(); | ||||||
| 
 | 
 | ||||||
| bind_interrupts!(struct Irqs { | bind_interrupts!(struct Irqs { | ||||||
|     I2C1_EV => i2c::EventInterruptHandler<peripherals::I2C1>; |     I2C1_EV => i2c::EventInterruptHandler<peripherals::I2C1>; | ||||||
|  | |||||||
| @ -60,7 +60,7 @@ pub type SpeSpiCs = ExclusiveDevice<SpeSpi, Output<'static>, Delay>; | |||||||
| pub type SpeInt = exti::ExtiInput<'static>; | pub type SpeInt = exti::ExtiInput<'static>; | ||||||
| pub type SpeRst = Output<'static>; | pub type SpeRst = Output<'static>; | ||||||
| pub type Adin1110T = ADIN1110<SpeSpiCs>; | pub type Adin1110T = ADIN1110<SpeSpiCs>; | ||||||
| pub type TempSensI2c = I2c<'static, Async>; | pub type TempSensI2c = I2c<'static, Async, i2c::Master>; | ||||||
| 
 | 
 | ||||||
| static TEMP: AtomicI32 = AtomicI32::new(0); | static TEMP: AtomicI32 = AtomicI32::new(0); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user