Skip to content

Commit

Permalink
Typos and endless recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Sep 9, 2024
1 parent 7a73547 commit e5e1e5b
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 32 deletions.
28 changes: 8 additions & 20 deletions esp-hal/src/gpio/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2174,19 +2174,13 @@ pub(crate) mod internal {
}

fn connect_input_to_peripheral(&mut self, signal: InputSignal, _: private::Internal) {
handle_gpio_input!(&mut self.0, target, {
PeripheralInputPin::connect_input_to_peripheral(target, signal, private::Internal)
})
interconnect::InputSignal::new(self.degrade_internal(private::Internal))
.connect_input_to_peripheral(signal, private::Internal);
}

fn disconnect_input_from_peripheral(&mut self, signal: InputSignal, _: private::Internal) {
handle_gpio_input!(&mut self.0, target, {
PeripheralInputPin::disconnect_input_from_peripheral(
target,
signal,
private::Internal,
)
})
interconnect::InputSignal::new(self.degrade_internal(private::Internal))
.disconnect_input_from_peripheral(signal, private::Internal);
}
}

Expand Down Expand Up @@ -2316,23 +2310,17 @@ pub(crate) mod internal {
}

fn connect_peripheral_to_output(&mut self, signal: OutputSignal, _: private::Internal) {
handle_gpio_output!(&mut self.0, target, {
PeripheralOutputPin::connect_peripheral_to_output(target, signal, private::Internal)
})
interconnect::OutputSignal::new(self.degrade_internal(private::Internal))
.connect_peripheral_to_output(signal, private::Internal);
}

fn disconnect_from_peripheral_output(
&mut self,
signal: OutputSignal,
_: private::Internal,
) {
handle_gpio_output!(&mut self.0, target, {
PeripheralOutputPin::disconnect_from_peripheral_output(
target,
signal,
private::Internal,
)
})
interconnect::OutputSignal::new(self.degrade_internal(private::Internal))
.disconnect_from_peripheral_output(signal, private::Internal);
}
}

Expand Down
2 changes: 1 addition & 1 deletion examples/src/bin/embassy_i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//! This is an example of running the embassy executor with IC2. It uses an
//! LIS3DH to get accelerometer data.
//!
//! Folowing pins are used:
//! Following pins are used:
//! - SDA => GPIO4
//! - SCL => GPIO5
Expand Down
2 changes: 1 addition & 1 deletion examples/src/bin/embassy_i2c_bmp180_calibration_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! This example dumps the calibration data from a BMP180 sensor by reading by reading
//! with the direct I2C API and the embedded-hal-async I2C API.
//!
//! Folowing pins are used:
//! Following pins are used:
//! - SDA => GPIO4
//! - SCL => GPIO5
//!
Expand Down
2 changes: 1 addition & 1 deletion hil-test/tests/i2c.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! I2C test
//!
//! Folowing pins are used:
//! Following pins are used:
//! SDA GPIO2 (esp32s2 and esp32s3)
//! GPIO6 (esp32c6)
//! GPIO18 (esp32c2)
Expand Down
2 changes: 1 addition & 1 deletion hil-test/tests/spi_full_duplex.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! SPI Full Duplex Test
//!
//! Folowing pins are used:
//! Following pins are used:
//! SCLK GPIO0
//! MISO GPIO2 / GPIO9 (esp32s2 / esp32s3) / GPIO26 (esp32)
//! MOSI GPIO3 / GPIO10 (esp32s2 / esp32s3) / GPIO27 (esp32)
Expand Down
2 changes: 1 addition & 1 deletion hil-test/tests/spi_full_duplex_dma.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! SPI Full Duplex DMA ASYNC Test
//!
//! Folowing pins are used:
//! Following pins are used:
//! SCLK GPIO0
//! MISO GPIO2 / GPIO9 (esp32s2 / esp32s3) / GPIO26 (esp32)
//! MOSI GPIO3 / GPIO10 (esp32s2 / esp32s3) / GPIO27 (esp32)
Expand Down
2 changes: 1 addition & 1 deletion hil-test/tests/spi_full_duplex_dma_pcnt.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! SPI Full Duplex DMA ASYNC Test with PCNT readback.
//!
//! Folowing pins are used:
//! Following pins are used:
//! SCLK GPIO0
//! MOSI GPIO3 / GPIO10 (esp32s3)
//! PCNT GPIO2 / GPIO9 (esp32s3)
Expand Down
2 changes: 1 addition & 1 deletion hil-test/tests/spi_half_duplex_read.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! SPI Half Duplex Read Test
//!
//! Folowing pins are used:
//! Following pins are used:
//! SCLK GPIO0
//! MISO GPIO2 / GPIO9 (esp32s2 / esp32s3) / GPIO26 (esp32)
//!
Expand Down
2 changes: 1 addition & 1 deletion hil-test/tests/twai.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! TWAI test
//!
//! Folowing pins are used:
//! Following pins are used:
//! TX GPIO2 / GPIO9 (esp32s2 / esp32s3) / GPIO26 (esp32)
//! RX GPIO3 / GPIO10 (esp32s2 / esp32s3) / GPIO27 (esp32)
//!
Expand Down
2 changes: 1 addition & 1 deletion hil-test/tests/uart.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! UART Test
//!
//! Folowing pins are used:
//! Following pins are used:
//! TX GPIO2 / GPIO9 (esp32s2 / esp32s3) / GPIO26 (esp32)
//! RX GPIO3 / GPIO10 (esp32s2 / esp32s3) / GPIO27 (esp32)
//!
Expand Down
2 changes: 1 addition & 1 deletion hil-test/tests/uart_async.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! UART Test
//!
//! Folowing pins are used:
//! Following pins are used:
//! TX GPIO2 / GPIO9 (esp32s2 / esp32s3) / GPIO26 (esp32)
//! RX GPIO3 / GPIO10 (esp32s2 / esp32s3) / GPIO27 (esp32)
//!
Expand Down
2 changes: 1 addition & 1 deletion hil-test/tests/uart_tx_rx.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! UART TX/RX Test
//!
//! Folowing pins are used:
//! Following pins are used:
//! TX GPIO2 / GPIO9 (esp32s2 / esp32s3) / GPIO26 (esp32)
//! RX GPIO3 / GPIO10 (esp32s2 / esp32s3) / GPIO27 (esp32)
//!
Expand Down
2 changes: 1 addition & 1 deletion hil-test/tests/uart_tx_rx_async.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! UART TX/RX Async Test
//!
//! Folowing pins are used:
//! Following pins are used:
//! TX GPIO2 / GPIO9 (esp32s2 / esp32s3) / GPIO26 (esp32)
//! RX GPIO3 / GPIO10 (esp32s2 / esp32s3) / GPIO27 (esp32)
//!
Expand Down

0 comments on commit e5e1e5b

Please sign in to comment.