@@ -211,14 +211,14 @@ impl Rtc {
211211 #[ inline]
212212 pub fn status ( ) -> pac:: rtc:: sr:: R {
213213 // saftey: atomic read with no side-effects
214- unsafe { ( * pac:: RTC :: ptr ( ) ) . sr . read ( ) }
214+ unsafe { ( * pac:: RTC :: PTR ) . sr . read ( ) }
215215 }
216216
217217 /// Read the RTC masked status (interrupt) register.
218218 #[ inline]
219219 pub fn masked_status ( ) -> pac:: rtc:: misr:: R {
220220 // saftey: atomic read with no side-effects
221- unsafe { ( * pac:: RTC :: ptr ( ) ) . misr . read ( ) }
221+ unsafe { ( * pac:: RTC :: PTR ) . misr . read ( ) }
222222 }
223223
224224 /// Clear status (interrupt) flags.
@@ -227,7 +227,7 @@ impl Rtc {
227227 #[ inline]
228228 pub fn clear_status ( mask : u32 ) {
229229 // safety: mask is masked with valid register fields
230- unsafe { ( * pac:: RTC :: ptr ( ) ) . scr . write ( |w| w. bits ( mask & stat:: ALL ) ) }
230+ unsafe { ( * pac:: RTC :: PTR ) . scr . write ( |w| w. bits ( mask & stat:: ALL ) ) }
231231 }
232232
233233 // configure prescaler for a 1Hz clock
@@ -282,7 +282,7 @@ impl Rtc {
282282 /// * Backup domain write protection is enabled.
283283 pub fn set_date_time ( & mut self , date_time : chrono:: NaiveDateTime ) {
284284 // safety: atomic read with no side effects
285- assert ! ( unsafe { ( * pac:: PWR :: ptr ( ) ) . cr1. read( ) . dbp( ) . bit_is_set( ) } ) ;
285+ assert ! ( unsafe { ( * pac:: PWR :: PTR ) . cr1. read( ) . dbp( ) . bit_is_set( ) } ) ;
286286
287287 // enter initialization mode
288288 self . rtc . icsr . modify ( |_, w| w. init ( ) . init_mode ( ) ) ;
0 commit comments