Skip to content

Commit

Permalink
Added some docs to make it less confusing.
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolSlimbo committed Jun 27, 2024
1 parent d9bfd46 commit 597b073
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions avr-hal-generic/src/usart_spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ macro_rules! add_usart_spi {
cs: $cspin:ty,
) => {
$crate::paste::paste! {
// This is quite a messy way to get the doc string working properly... but it works!
#[doc = concat!("**Clock:** `", stringify!($sclkpin), "`<br>**MOSI:** `", stringify!($mosipin), "`<br> **MISO:** `", stringify!($misopin), "`<br> **CS:** `", stringify!($cspin), "`")]
pub type [<Usart $n Spi>] = avr_hal_generic::usart_spi::UsartSpi<$HAL, $USART_SPI, $sclkpin, $mosipin, $misopin, $cspin>;

impl $crate::spi::SpiOps<$HAL, $sclkpin, $mosipin, $misopin, $cspin> for $USART_SPI {
Expand Down

0 comments on commit 597b073

Please sign in to comment.