Skip to content

Commit

Permalink
UART: Documentation tweaks
Browse files Browse the repository at this point in the history
Co-authored-by: Filip Demski (Glamhoth) <Glamhoth@users.noreply.github.com>
  • Loading branch information
SteelPh0enix and Glamhoth authored Oct 19, 2023
1 parent 71f9853 commit 2de0018
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/cortex-m/samv71-hal/src/uart/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ impl<Instance: UARTMetadata> Reader<Instance> {
}

/// Resets UART status by clearing status flags.
///
/// **This function should usually be called immediately after reading the status.**
#[inline(always)]
pub fn reset_status(&mut self) {
Expand Down
1 change: 1 addition & 0 deletions arch/cortex-m/samv71-hal/src/uart/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ pub struct Writer<Instance: UARTMetadata> {

impl<Instance: UARTMetadata> Writer<Instance> {
/// Transmits a single byte.
///
/// Waits for UART TX register to be empty.
/// Does not wait until transmission is completed, use [`Writer::flush`] if you want to make sure
/// of that.
Expand Down

0 comments on commit 2de0018

Please sign in to comment.