From 6c0cbad0dbd5d2720ce89d93c43cc36647bcfef5 Mon Sep 17 00:00:00 2001 From: Ryan Summers Date: Mon, 11 Mar 2024 11:20:06 +0100 Subject: [PATCH] Fixing docs in SPI --- embedded-hal-bus/Cargo.toml | 2 +- embedded-hal-bus/src/spi/atomic.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/embedded-hal-bus/Cargo.toml b/embedded-hal-bus/Cargo.toml index cec1945a..673037f4 100644 --- a/embedded-hal-bus/Cargo.toml +++ b/embedded-hal-bus/Cargo.toml @@ -20,7 +20,7 @@ async = ["dep:embedded-hal-async"] defmt-03 = ["dep:defmt-03", "embedded-hal/defmt-03", "embedded-hal-async?/defmt-03"] [dependencies] -embedded-hal = { version = "1.0.0", path = "../embedded-hal" } +embedded-hal = { version = "1.0.0" } embedded-hal-async = { version = "1.0.0", path = "../embedded-hal-async", optional = true } critical-section = { version = "1.0" } defmt-03 = { package = "defmt", version = "0.3", optional = true } diff --git a/embedded-hal-bus/src/spi/atomic.rs b/embedded-hal-bus/src/spi/atomic.rs index cca4ce02..c5db18f0 100644 --- a/embedded-hal-bus/src/spi/atomic.rs +++ b/embedded-hal-bus/src/spi/atomic.rs @@ -26,14 +26,14 @@ pub struct AtomicDevice<'a, BUS, CS, D> { } #[derive(Debug, Copy, Clone)] -/// Wrapper type for errors originating from the atomically-checked I2C bus manager. +/// Wrapper type for errors originating from the atomically-checked SPI bus manager. pub enum AtomicError { - /// This error is returned if the I2C bus was already in use when an operation was attempted, + /// This error is returned if the SPI bus was already in use when an operation was attempted, /// which indicates that the driver requirements are not being met with regard to /// synchronization. Busy, - /// An I2C-related error occurred, and the internal error should be inspected. + /// An SPI-related error occurred, and the internal error should be inspected. Other(T), }