@@ -211,14 +211,14 @@ impl Rtc {
211
211
#[ inline]
212
212
pub fn status ( ) -> pac:: rtc:: sr:: R {
213
213
// saftey: atomic read with no side-effects
214
- unsafe { ( * pac:: RTC :: ptr ( ) ) . sr . read ( ) }
214
+ unsafe { ( * pac:: RTC :: PTR ) . sr . read ( ) }
215
215
}
216
216
217
217
/// Read the RTC masked status (interrupt) register.
218
218
#[ inline]
219
219
pub fn masked_status ( ) -> pac:: rtc:: misr:: R {
220
220
// saftey: atomic read with no side-effects
221
- unsafe { ( * pac:: RTC :: ptr ( ) ) . misr . read ( ) }
221
+ unsafe { ( * pac:: RTC :: PTR ) . misr . read ( ) }
222
222
}
223
223
224
224
/// Clear status (interrupt) flags.
@@ -227,7 +227,7 @@ impl Rtc {
227
227
#[ inline]
228
228
pub fn clear_status ( mask : u32 ) {
229
229
// 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 ) ) }
231
231
}
232
232
233
233
// configure prescaler for a 1Hz clock
@@ -282,7 +282,7 @@ impl Rtc {
282
282
/// * Backup domain write protection is enabled.
283
283
pub fn set_date_time ( & mut self , date_time : chrono:: NaiveDateTime ) {
284
284
// 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( ) } ) ;
286
286
287
287
// enter initialization mode
288
288
self . rtc . icsr . modify ( |_, w| w. init ( ) . init_mode ( ) ) ;
0 commit comments