Skip to content

Commit d7d56fa

Browse files
committed
Disable serial IDLE event test
1 parent dad26df commit d7d56fa

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/serial.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ use cortex_m::interrupt;
4646
#[cfg_attr(feature = "enumset", derive(EnumSetType))]
4747
#[cfg_attr(not(feature = "enumset"), derive(Copy, Clone, PartialEq, Eq))]
4848
#[non_exhaustive]
49+
// TODO: Split up in transmission and reception events (RM0316 29.7)
4950
pub enum Event {
5051
/// Transmit data register empty / new data can be sent.
5152
///

testsuite/tests/uart.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,9 @@ mod tests {
394394
unwrap!(nb::block!(serial.write(b'A')).ok());
395395
});
396396

397+
// FIXME: This test is sensitive to timing and the event might already be triggered by a
398+
// previous transmission. (More details about IDLE event RM0316 29.8.1)
399+
#[cfg(feature = "disabled")]
397400
trigger_event(Event::Idle, &mut serial, |serial| {
398401
// Note: The IDLE bit will not be set again until the RXNE bit has been set (i.e. a new
399402
// idle line occurs).

0 commit comments

Comments
 (0)