Skip to content

Commit

Permalink
SPI: Enabled mode fault detection
Browse files Browse the repository at this point in the history
  • Loading branch information
SteelPh0enix committed Nov 16, 2023
1 parent f56156e commit cb7f656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/cortex-m/samv71-hal/src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
//! * Hardware management of fixed Chip Select signal
//! * Loopback mode
//! * Interrupt configuration and status management
//! * Mode Fault Detection
//! * DMA transfers
//!
//! Specifically, it currently does **NOT** support:
//! * SPI Client mode
//! * Variable Chip Select signal management
//! * Mode Fault Detection
//! * Register Write Protection

use core::marker::PhantomData;
Expand Down Expand Up @@ -119,7 +119,7 @@ impl<Instance: SPIMetadata> Spi<Instance, NotConfigured> {
.pcsdec()
.clear_bit() // Chip-select signal is connected directly to periph.
.modfdis()
.set_bit() // Mode fault detection disabled
.clear_bit() // Mode fault detection enabled
.wdrbt()
.variant(config.enable_overrun_detection)
.llb()
Expand Down

0 comments on commit cb7f656

Please sign in to comment.