@@ -529,8 +529,8 @@ macro_rules! uart_lp {
529529 Event :: Rxne => self . tx. usart. cr1( ) . modify( |_, w| w. rxneie( ) . set_bit( ) ) ,
530530 Event :: Txe => self . tx. usart. cr1( ) . modify( |_, w| w. txeie( ) . set_bit( ) ) ,
531531 Event :: Idle => self . tx. usart. cr1( ) . modify( |_, w| w. idleie( ) . set_bit( ) ) ,
532- _ => { }
533- }
532+ _ => unimplemented! ( ) ,
533+ } ;
534534 }
535535
536536 /// Stop listening for an interrupt event
@@ -539,8 +539,8 @@ macro_rules! uart_lp {
539539 Event :: Rxne => self . tx. usart. cr1( ) . modify( |_, w| w. rxneie( ) . clear_bit( ) ) ,
540540 Event :: Txe => self . tx. usart. cr1( ) . modify( |_, w| w. txeie( ) . clear_bit( ) ) ,
541541 Event :: Idle => self . tx. usart. cr1( ) . modify( |_, w| w. idleie( ) . clear_bit( ) ) ,
542- _ => { }
543- }
542+ _ => unimplemented! ( ) ,
543+ } ;
544544 }
545545
546546 /// Check if interrupt event is pending
@@ -683,8 +683,8 @@ macro_rules! uart_full {
683683 Event :: Rxne => self . tx. usart. cr1( ) . modify( |_, w| w. rxneie( ) . set_bit( ) ) ,
684684 Event :: Txe => self . tx. usart. cr1( ) . modify( |_, w| w. txeie( ) . set_bit( ) ) ,
685685 Event :: Idle => self . tx. usart. cr1( ) . modify( |_, w| w. idleie( ) . set_bit( ) ) ,
686- _ => { }
687- }
686+ _ => unimplemented! ( ) ,
687+ } ;
688688 }
689689
690690 /// Stop listening for an interrupt event
@@ -693,8 +693,8 @@ macro_rules! uart_full {
693693 Event :: Rxne => self . tx. usart. cr1( ) . modify( |_, w| w. rxneie( ) . clear_bit( ) ) ,
694694 Event :: Txe => self . tx. usart. cr1( ) . modify( |_, w| w. txeie( ) . clear_bit( ) ) ,
695695 Event :: Idle => self . tx. usart. cr1( ) . modify( |_, w| w. idleie( ) . clear_bit( ) ) ,
696- _ => { }
697- }
696+ _ => unimplemented! ( ) ,
697+ } ;
698698 }
699699
700700 /// Check if interrupt event is pending
0 commit comments