We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69faaba commit 21b6ad3Copy full SHA for 21b6ad3
src/serial.rs
@@ -22,6 +22,8 @@ pub enum Event {
22
Rxne,
23
/// New data can be sent
24
Txe,
25
+ /// The line has gone idle
26
+ Idle
27
}
28
29
/// Serial error
@@ -128,6 +130,9 @@ macro_rules! hal {
128
130
Event::Txe => {
129
131
self.usart.cr1.modify(|_, w| w.txeie().set_bit())
132
},
133
+ Event::Idle => {
134
+ self.usart.cr1.modify(|_, w| w.idleie().set_bit())
135
+ },
136
137
138
@@ -140,6 +145,9 @@ macro_rules! hal {
140
145
141
146
self.usart.cr1.modify(|_, w| w.txeie().clear_bit())
142
147
148
149
+ self.usart.cr1.modify(|_, w| w.idleie().clear_bit())
150
143
151
144
152
153
0 commit comments