rtc: reorganize low-power SealedInstance
This commit is contained in:
		
							parent
							
								
									48fd80919a
								
							
						
					
					
						commit
						29934237a5
					
				@ -133,14 +133,20 @@ impl SealedInstance for crate::peripherals::RTC {
 | 
			
		||||
    cfg_if::cfg_if!(
 | 
			
		||||
        if #[cfg(stm32g4)] {
 | 
			
		||||
            const EXTI_WAKEUP_LINE: usize = 20;
 | 
			
		||||
            type WakeupInterrupt = crate::interrupt::typelevel::RTC_WKUP;
 | 
			
		||||
        } else if #[cfg(stm32g0)] {
 | 
			
		||||
            const EXTI_WAKEUP_LINE: usize = 19;
 | 
			
		||||
            type WakeupInterrupt = crate::interrupt::typelevel::RTC_TAMP;
 | 
			
		||||
        } else if #[cfg(any(stm32l5, stm32h5))] {
 | 
			
		||||
            const EXTI_WAKEUP_LINE: usize = 17;
 | 
			
		||||
            type WakeupInterrupt = crate::interrupt::typelevel::RTC;
 | 
			
		||||
        } else if #[cfg(stm32u5)] {
 | 
			
		||||
        }
 | 
			
		||||
    );
 | 
			
		||||
        
 | 
			
		||||
    #[cfg(feature = "low-power")]
 | 
			
		||||
    cfg_if::cfg_if!(
 | 
			
		||||
        if #[cfg(stm32g4)] {
 | 
			
		||||
            type WakeupInterrupt = crate::interrupt::typelevel::RTC_WKUP;
 | 
			
		||||
        } else if #[cfg(any(stm32g0))] {
 | 
			
		||||
            type WakeupInterrupt = crate::interrupt::typelevel::RTC_TAMP;
 | 
			
		||||
        } else if #[cfg(any(stm32l5, stm32h5, stm32u5))] {
 | 
			
		||||
            type WakeupInterrupt = crate::interrupt::typelevel::RTC;
 | 
			
		||||
        }
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user