cleanup
This commit is contained in:
		
							parent
							
								
									85d7779668
								
							
						
					
					
						commit
						db0f4a0b91
					
				| @ -102,9 +102,11 @@ embassy_hal_internal::peripherals! { | |||||||
|     TEMP, |     TEMP, | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // impl_timer!(TIMER0, TIMER0, TIMER0);
 | impl_timer!(TIMER0, TIMER0, TIMER0); | ||||||
| // impl_timer!(TIMER1, TIMER1, TIMER1);
 | impl_timer!(TIMER1, TIMER1, TIMER1); | ||||||
| // impl_timer!(TIMER2, TIMER2, TIMER2);
 | impl_timer!(TIMER2, TIMER2, TIMER2); | ||||||
|  | 
 | ||||||
|  | impl_rng!(RNG, RNG, RNG); | ||||||
| 
 | 
 | ||||||
| impl_pin!(P0_00, 0, 0); | impl_pin!(P0_00, 0, 0); | ||||||
| impl_pin!(P0_01, 0, 1); | impl_pin!(P0_01, 0, 1); | ||||||
|  | |||||||
| @ -284,6 +284,7 @@ impl ConfigurableChannel for AnyConfigurableChannel { | |||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | #[cfg(not(feature = "nrf51"))] | ||||||
| macro_rules! impl_ppi_channel { | macro_rules! impl_ppi_channel { | ||||||
|     ($type:ident, $number:expr) => { |     ($type:ident, $number:expr) => { | ||||||
|         impl crate::ppi::sealed::Channel for peripherals::$type {} |         impl crate::ppi::sealed::Channel for peripherals::$type {} | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| use embassy_hal_internal::into_ref; | use embassy_hal_internal::into_ref; | ||||||
| 
 | 
 | ||||||
| use super::{Channel, ConfigurableChannel, Event, Ppi, StaticChannel, Task}; | use super::{Channel, ConfigurableChannel, Event, Ppi, Task}; | ||||||
| use crate::{pac, Peripheral}; | use crate::{pac, Peripheral}; | ||||||
| 
 | 
 | ||||||
| impl<'d> Task<'d> { | impl<'d> Task<'d> { | ||||||
| @ -19,7 +19,7 @@ pub(crate) fn regs() -> &'static pac::ppi::RegisterBlock { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| #[cfg(not(feature = "nrf51"))] // Not for nrf51 because of the fork task
 | #[cfg(not(feature = "nrf51"))] // Not for nrf51 because of the fork task
 | ||||||
| impl<'d, C: StaticChannel> Ppi<'d, C, 0, 1> { | impl<'d, C: super::StaticChannel> Ppi<'d, C, 0, 1> { | ||||||
|     /// Configure PPI channel to trigger `task`.
 |     /// Configure PPI channel to trigger `task`.
 | ||||||
|     pub fn new_zero_to_one(ch: impl Peripheral<P = C> + 'd, task: Task) -> Self { |     pub fn new_zero_to_one(ch: impl Peripheral<P = C> + 'd, task: Task) -> Self { | ||||||
|         into_ref!(ch); |         into_ref!(ch); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user