File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,12 @@ pub enum Event {
150
150
/// your MCU for details.
151
151
RxComplete ,
152
152
153
+ /// A compete byte was sent.
154
+ ///
155
+ /// Corresponds to the `USART_TX` or `USART#_TX` interrupt. Please refer to the datasheet for
156
+ /// your MCU for details.
157
+ TxComplete ,
158
+
153
159
/// All data from the USART data register was transmitted.
154
160
///
155
161
/// Corresponds to the `USART_UDRE` or `USART#_UDRE` interrupt. Please refer to the datasheet
@@ -531,8 +537,10 @@ macro_rules! impl_usart_traditional {
531
537
match event {
532
538
$crate:: usart:: Event :: RxComplete =>
533
539
self . [ <ucsr $n b>] . modify( |_, w| w. [ <rxcie $n>] ( ) . bit( state) ) ,
534
- $crate:: usart:: Event :: DataRegisterEmpty =>
540
+ $crate:: usart:: Event :: TxComplete =>
535
541
self . [ <ucsr $n b>] . modify( |_, w| w. [ <txcie $n>] ( ) . bit( state) ) ,
542
+ $crate:: usart:: Event :: DataRegisterEmpty =>
543
+ self . [ <ucsr $n b>] . modify( |_, w| w. [ <udrie $n>] ( ) . bit( state) ) ,
536
544
}
537
545
}
538
546
}
You can’t perform that action at this time.
0 commit comments