From 63a2d407ee15a0d03f863edbb300ecba597ed94b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Mon, 12 Aug 2024 14:20:58 +0200 Subject: [PATCH] Fix some typos (#1930) --- esp-hal/src/analog/adc/mod.rs | 2 +- esp-hal/src/dma/mod.rs | 2 +- esp-hal/src/gpio/etm.rs | 2 +- esp-hal/src/rsa/esp32sX.rs | 2 +- hil-test/tests/embassy_timers_executors.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/esp-hal/src/analog/adc/mod.rs b/esp-hal/src/analog/adc/mod.rs index 1185d05ba..ff9981d62 100644 --- a/esp-hal/src/analog/adc/mod.rs +++ b/esp-hal/src/analog/adc/mod.rs @@ -66,7 +66,7 @@ mod implementation; /// The attenuation of the ADC pin. /// -/// The effective measurement range for a given attuenation is dependent on the +/// The effective measurement range for a given attenuation is dependent on the /// device being targeted. Please refer to "ADC Characteristics" section of your /// device's datasheet for more information. #[derive(Debug, Clone, Copy, PartialEq, Eq)] diff --git a/esp-hal/src/dma/mod.rs b/esp-hal/src/dma/mod.rs index 535c35335..38df86507 100644 --- a/esp-hal/src/dma/mod.rs +++ b/esp-hal/src/dma/mod.rs @@ -3,7 +3,7 @@ //! ## Overview //! The DMA driver provides an interface to efficiently transfer data between //! different memory regions and peripherals within the ESP microcontroller -//! without involving the CPU. The DMA controller is reponsible for managing +//! without involving the CPU. The DMA controller is responsible for managing //! these data transfers. //! //! Notice, that this module is a common version of the DMA driver, `ESP32` and diff --git a/esp-hal/src/gpio/etm.rs b/esp-hal/src/gpio/etm.rs index 9b0210070..2c99f21d8 100644 --- a/esp-hal/src/gpio/etm.rs +++ b/esp-hal/src/gpio/etm.rs @@ -22,7 +22,7 @@ //! reversed //! //! ## Examples -//! ### Toogle an LED When a Button is Pressed +//! ### Toggle an LED When a Button is Pressed //! ```rust, no_run #![doc = crate::before_snippet!()] //! # use esp_hal::gpio::Io; diff --git a/esp-hal/src/rsa/esp32sX.rs b/esp-hal/src/rsa/esp32sX.rs index cf66a69c0..311200335 100644 --- a/esp-hal/src/rsa/esp32sX.rs +++ b/esp-hal/src/rsa/esp32sX.rs @@ -21,7 +21,7 @@ impl<'d, DM: crate::Mode> Rsa<'d, DM> { Ok(()) } - /// Enables/disables rsa interrupt, when enabled rsa perpheral would + /// Enables/disables rsa interrupt, when enabled rsa peripheral would /// generate an interrupt when a operation is finished. pub fn enable_disable_interrupt(&mut self, enable: bool) { match enable { diff --git a/hil-test/tests/embassy_timers_executors.rs b/hil-test/tests/embassy_timers_executors.rs index c5cd4861b..e30bd5672 100644 --- a/hil-test/tests/embassy_timers_executors.rs +++ b/hil-test/tests/embassy_timers_executors.rs @@ -16,7 +16,7 @@ //! - run_test_interrupt_executor(): Tests InterruptExecutor and Thread //! (default) executor in parallel //! - run_tick_test_timg(): Tests Timg configured as OneShotTimer if it fires -//! immediatelly in the case of the time scheduling was already in the past +//! immediately in the case of the time scheduling was already in the past //! (timestamp being too big) // esp32c2 is disabled currently as it fails