Merge pull request #4100 from ckrenslehner/fix/stm32wb-low-power
fix: stm32wb55 low power feature did not compile
This commit is contained in:
		
						commit
						2bb9c0f10d
					
				
							
								
								
									
										1
									
								
								ci.sh
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								ci.sh
									
									
									
									
									
								
							@ -168,6 +168,7 @@ cargo batch \
 | 
			
		||||
    --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv8m.main-none-eabihf --features stm32u5f9zj,defmt,exti,time-driver-any,time \
 | 
			
		||||
    --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv8m.main-none-eabihf --features stm32u5g9nj,defmt,exti,time-driver-any,time \
 | 
			
		||||
    --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32wb35ce,defmt,exti,time-driver-any,time \
 | 
			
		||||
    --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32wb55rg,defmt,exti,time-driver-any,low-power,time \
 | 
			
		||||
    --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv6m-none-eabi --features stm32u031r8,defmt,exti,time-driver-any,time \
 | 
			
		||||
    --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv6m-none-eabi --features stm32u073mb,defmt,exti,time-driver-any,time \
 | 
			
		||||
    --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv6m-none-eabi --features stm32u083rc,defmt,exti,time-driver-any,time \
 | 
			
		||||
 | 
			
		||||
@ -231,8 +231,16 @@ impl Rtc {
 | 
			
		||||
        {
 | 
			
		||||
            use crate::pac::EXTI;
 | 
			
		||||
            EXTI.rtsr(0).modify(|w| w.set_line(RTC::EXTI_WAKEUP_LINE, true));
 | 
			
		||||
 | 
			
		||||
            #[cfg(not(stm32wb))]
 | 
			
		||||
            {
 | 
			
		||||
                EXTI.imr(0).modify(|w| w.set_line(RTC::EXTI_WAKEUP_LINE, true));
 | 
			
		||||
            }
 | 
			
		||||
            #[cfg(stm32wb)]
 | 
			
		||||
            {
 | 
			
		||||
                EXTI.cpu(0).imr(0).modify(|w| w.set_line(RTC::EXTI_WAKEUP_LINE, true));
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        #[cfg(stm32u5)]
 | 
			
		||||
        {
 | 
			
		||||
            use crate::pac::RCC;
 | 
			
		||||
 | 
			
		||||
@ -137,7 +137,10 @@ impl SealedInstance for crate::peripherals::RTC {
 | 
			
		||||
    #[cfg(all(feature = "low-power", stm32l0))]
 | 
			
		||||
    const EXTI_WAKEUP_LINE: usize = 20;
 | 
			
		||||
 | 
			
		||||
    #[cfg(all(feature = "low-power", any(stm32f4, stm32l4)))]
 | 
			
		||||
    #[cfg(all(feature = "low-power", stm32wb))]
 | 
			
		||||
    const EXTI_WAKEUP_LINE: usize = 19;
 | 
			
		||||
 | 
			
		||||
    #[cfg(all(feature = "low-power", any(stm32f4, stm32l4, stm32wb)))]
 | 
			
		||||
    type WakeupInterrupt = crate::interrupt::typelevel::RTC_WKUP;
 | 
			
		||||
 | 
			
		||||
    #[cfg(all(feature = "low-power", stm32l0))]
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user