From 8599f38ba6817bcb4ed79a59ec3f17d08339ac6d Mon Sep 17 00:00:00 2001 From: Wojciech Olech Date: Fri, 17 Nov 2023 10:48:18 +0100 Subject: [PATCH] SPI: Documentation fixes --- arch/cortex-m/samv71-hal/src/spi/chip_config.rs | 2 +- arch/cortex-m/samv71-hal/src/spi/config.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/cortex-m/samv71-hal/src/spi/chip_config.rs b/arch/cortex-m/samv71-hal/src/spi/chip_config.rs index e763727a..bbb2e14f 100644 --- a/arch/cortex-m/samv71-hal/src/spi/chip_config.rs +++ b/arch/cortex-m/samv71-hal/src/spi/chip_config.rs @@ -54,7 +54,7 @@ pub enum ChipSelectBehavior { /// Chip select line is kept active until a new transfer is requested on a different chip select. KeepActive, /// Chip select line is deactivated after every data transfer. Duration of the inactivity period - /// can be controlled with `delay_between_transfers` field of [`ChipSelectConfig`]. + /// can be controlled with `delay_between_transfers` field of [`ChipConfig`]. DeactivateAfterEveryTransfer, } diff --git a/arch/cortex-m/samv71-hal/src/spi/config.rs b/arch/cortex-m/samv71-hal/src/spi/config.rs index 1cc2d83b..135c77b4 100644 --- a/arch/cortex-m/samv71-hal/src/spi/config.rs +++ b/arch/cortex-m/samv71-hal/src/spi/config.rs @@ -9,7 +9,7 @@ use crate::utils::BoundedU8; pub struct MasterConfig { /// Delay between the inactivation and activation of chip select signal. pub chip_selection_delay: ChipSelectionDelay, - /// Peripheral chip select. This can later be changed using [`Spi::change_chip`]. + /// Peripheral chip select. This can later be changed using [`Spi::change_chip`](super::Spi::change_chip). pub selected_chip: SelectedChip, /// If true, overrun detection will be enabled and an error will occur if data transmission will /// try to be started while there's unread data in RX data register.