Skip to content

Commit c7fe584

Browse files
bors[bot]rukai
andauthored
Merge #308
308: Fix spelling errors + RTIC name r=jonas-schievink a=rukai Closes #303 Co-authored-by: Rukai <[email protected]>
2 parents 359d3e4 + b5a0faa commit c7fe584

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Every nRF chip has its own crate, listed below:
3434
| [`nRF52833`](https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52833) | [`v1.3`](https://infocenter.nordicsemi.com/pdf/nRF52833_PS_v1.3.pdf) | [`v1.0.1`](http://infocenter.nordicsemi.com/pdf/nRF52833_DK_User_Guide_v1.0.1.pdf) |
3535
| [`nRF52840`](https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52840) | [`v1.1`](https://infocenter.nordicsemi.com/pdf/nRF52840_PS_v1.1.pdf) | [`v1.2`](https://infocenter.nordicsemi.com/pdf/nRF52840_DK_User_Guide_v1.2.pdf) |
3636
| [`nRF9160`](https://www.nordicsemi.com/Products/Low-power-cellular-IoT/nRF9160) | [`v2.0`](https://infocenter.nordicsemi.com/pdf/nRF9160_PS_v2.0.pdf) | [`v0.9.3`](https://infocenter.nordicsemi.com/pdf/nRF9160_DK_HW_User_Guide_v0.9.3.pdf) |
37-
\* These devices do not have a seperate developement kit and share the [NRF52 DK](https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF52-DK)
37+
\* These devices do not have a separate development kit and share the [NRF52 DK](https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF52-DK)
3838

3939
## License
4040

nrf-hal-common/src/ccm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ impl Ccm {
401401
.modify(|_, w| w.mode().decryption().length().variant(length_variant));
402402

403403
// Setup the pointers
404-
// NOTE(unsafe) These addreses are in RAM, checked above
404+
// NOTE(unsafe) These addresses are in RAM, checked above
405405
unsafe {
406406
self.regs
407407
.cnfptr

nrf-hal-common/src/clocks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl<H, L, LSTAT> Clocks<H, L, LSTAT> {
9898
}
9999

100100
/// Allowable configuration options for the low frequency oscillator when
101-
/// driven fron an external crystal.
101+
/// driven from an external crystal.
102102
pub enum LfOscConfiguration {
103103
NoExternalNoBypass,
104104
ExternalNoBypass,

nrf-hal-common/src/i2s.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ impl I2S {
220220
self
221221
}
222222

223-
/// Sets the I2S channel configuation.
223+
/// Sets the I2S channel configuration.
224224
#[inline(always)]
225225
pub fn set_channels(&self, channels: Channels) -> &Self {
226226
self.i2s
@@ -230,7 +230,7 @@ impl I2S {
230230
self
231231
}
232232

233-
/// Returns the I2S channel configuation.
233+
/// Returns the I2S channel configuration.
234234
#[inline(always)]
235235
pub fn channels(&self) -> Channels {
236236
match self.i2s.config.channels.read().bits() {

nrf-hal-common/src/pwm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ where
421421
self
422422
}
423423

424-
/// Loops playback of sequences indefinately.
424+
/// Loops playback of sequences indefinitely.
425425
#[inline(always)]
426426
pub fn loop_inf(&self) -> &Self {
427427
self.set_loop(Loop::Inf);

nrf-hal-common/src/rtc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ where
6868
///
6969
/// If access to the NVIC is not provided, the interrupt must ALSO be enabled
7070
/// there outside of this function (e.g. manually call `nvic.enable`, or through
71-
/// the use of RTFM).
71+
/// the use of RTIC).
7272
pub fn enable_interrupt(&mut self, int: RtcInterrupt, nvic: Option<&mut NVIC>) {
7373
match int {
7474
RtcInterrupt::Tick => self.periph.intenset.write(|w| w.tick().set()),
@@ -87,7 +87,7 @@ where
8787
///
8888
/// If access to the NVIC is not provided, the interrupt must ALSO be disabled
8989
/// there outside of this function (e.g. manually call `nvic.disable`, or through
90-
/// the use of RTFM).
90+
/// the use of RTIC).
9191
pub fn disable_interrupt(&mut self, int: RtcInterrupt, nvic: Option<&mut NVIC>) {
9292
match int {
9393
RtcInterrupt::Tick => self.periph.intenclr.write(|w| w.tick().clear()),

nrf-hal-common/src/saadc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#![cfg_attr(not(feature = "52840"), doc = "```ignore")]
77
//! # use nrf_hal_common as hal;
88
//! # use hal::pac::{saadc, SAADC};
9-
//! // subsititute `hal` with the HAL of your board, e.g. `nrf52840_hal`
9+
//! // substitute `hal` with the HAL of your board, e.g. `nrf52840_hal`
1010
//! use hal::{
1111
//! pac::Peripherals,
1212
//! prelude::*,

nrf-hal-common/src/wdt.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ where
4646
/// This function pets the given watchdog handle.
4747
///
4848
/// NOTE: All active handles must be pet within the time interval to
49-
/// prevent a reset from occuring.
49+
/// prevent a reset from occurring.
5050
#[inline]
5151
pub fn pet(&mut self) {
5252
let hdl = unsafe { &*WDT::ptr() };
@@ -108,7 +108,7 @@ impl Watchdog<Inactive> {
108108
/// The watchdog cannot be deactivated after starting.
109109
///
110110
/// NOTE: All activated handles must be pet within the configured time interval to
111-
/// prevent a reset from occuring.
111+
/// prevent a reset from occurring.
112112
pub fn activate<H: sealed::Handles>(self) -> Parts<H::Handles> {
113113
self.wdt.rren.write(|w| unsafe { w.bits(H::ENABLE) });
114114
self.wdt.tasks_start.write(|w| unsafe { w.bits(1) });
@@ -124,7 +124,7 @@ impl Watchdog<Inactive> {
124124
/// Enable the watchdog interrupt.
125125
///
126126
/// NOTE: Although the interrupt will occur, there is no way to prevent
127-
/// the reset from occuring. From the time the event was fired, the
127+
/// the reset from occurring. From the time the event was fired, the
128128
/// system will reset two LFCLK ticks later (61 microseconds) if the
129129
/// interrupt has been enabled.
130130
#[inline(always)]

0 commit comments

Comments
 (0)