@@ -128,7 +128,7 @@ impl Rtc<RtcClkLse> {
128
128
w. rtcen ( ) . set_bit ( ) ;
129
129
// Set the source of the RTC to LSE
130
130
w. rtcsel ( ) . lse ( )
131
- } )
131
+ } ) ;
132
132
}
133
133
}
134
134
@@ -202,7 +202,7 @@ impl Rtc<RtcClkLsi> {
202
202
w. rtcen ( ) . set_bit ( ) ;
203
203
// Set the source of the RTC to LSI
204
204
w. rtcsel ( ) . lsi ( )
205
- } )
205
+ } ) ;
206
206
}
207
207
}
208
208
@@ -280,7 +280,7 @@ impl Rtc<RtcClkHseDiv128> {
280
280
w. rtcen ( ) . set_bit ( ) ;
281
281
// Set the source of the RTC to HSE/128
282
282
w. rtcsel ( ) . hse ( )
283
- } )
283
+ } ) ;
284
284
}
285
285
}
286
286
@@ -365,22 +365,30 @@ impl<CS> Rtc<CS> {
365
365
366
366
/// Enables triggering the RTC interrupt every time the RTC counter is increased
367
367
pub fn listen_seconds ( & mut self ) {
368
- self . perform_write ( |s| s. regs . crh ( ) . modify ( |_, w| w. secie ( ) . set_bit ( ) ) )
368
+ self . perform_write ( |s| {
369
+ s. regs . crh ( ) . modify ( |_, w| w. secie ( ) . set_bit ( ) ) ;
370
+ } )
369
371
}
370
372
371
373
/// Disables the RTC second interrupt
372
374
pub fn unlisten_seconds ( & mut self ) {
373
- self . perform_write ( |s| s. regs . crh ( ) . modify ( |_, w| w. secie ( ) . clear_bit ( ) ) )
375
+ self . perform_write ( |s| {
376
+ s. regs . crh ( ) . modify ( |_, w| w. secie ( ) . clear_bit ( ) ) ;
377
+ } )
374
378
}
375
379
376
380
/// Clears the RTC second interrupt flag
377
381
pub fn clear_second_flag ( & mut self ) {
378
- self . perform_write ( |s| s. regs . crl ( ) . modify ( |_, w| w. secf ( ) . clear_bit ( ) ) )
382
+ self . perform_write ( |s| {
383
+ s. regs . crl ( ) . modify ( |_, w| w. secf ( ) . clear_bit ( ) ) ;
384
+ } )
379
385
}
380
386
381
387
/// Clears the RTC alarm interrupt flag
382
388
pub fn clear_alarm_flag ( & mut self ) {
383
- self . perform_write ( |s| s. regs . crl ( ) . modify ( |_, w| w. alrf ( ) . clear_bit ( ) ) )
389
+ self . perform_write ( |s| {
390
+ s. regs . crl ( ) . modify ( |_, w| w. alrf ( ) . clear_bit ( ) ) ;
391
+ } )
384
392
}
385
393
386
394
/**
0 commit comments