Skip to content

Commit

Permalink
Add documentation to the function
Browse files Browse the repository at this point in the history
  • Loading branch information
Jalon Huang committed Jun 1, 2023
1 parent b02000d commit 4240bfd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/generate/peripheral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ pub fn render(p_original: &Peripheral, index: &Index, config: &Config) -> Result
Self::PTR
}

///Steal an instance of this peripheral
pub unsafe fn steal(&self) -> Self {
Self { _marker: PhantomData }
}
Expand Down Expand Up @@ -155,6 +156,7 @@ pub fn render(p_original: &Peripheral, index: &Index, config: &Config) -> Result
Self::PTR
}

///Steal an instance of this peripheral
pub unsafe fn steal(&self) -> Self {
Self { _marker: PhantomData }
}
Expand Down

0 comments on commit 4240bfd

Please sign in to comment.