Skip to content

Commit

Permalink
Remove redundant inits
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Aug 26, 2024
1 parent 1a9f3e5 commit 756e46f
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion esp-hal/src/mcpwm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
//! # use esp_hal::mcpwm::{operator::{DeadTimeCfg, PWMStream, PwmPinConfig}, timer::PwmWorkingMode, McPwm, PeripheralClockConfig};
//! # use esp_hal::gpio::Io;
//!
//! # let (peripherals, clocks) = esp_hal::init(Config::default());
//! # let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);
//! # let pin = io.pins.gpio0;
//!
Expand Down
2 changes: 0 additions & 2 deletions esp-hal/src/rom/md5.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
//! # use esp_hal::gpio::Io;
//! # use core::writeln;
//! # use core::fmt::Write;
//! # let (peripherals, clocks) = esp_hal::init(Config::default());
//! # let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);
//! # let mut uart0 = Uart::new(peripherals.UART0, &clocks, io.pins.gpio1, io.pins.gpio2).unwrap();
//! # let data = "Dummy";
Expand All @@ -52,7 +51,6 @@
//! # use esp_hal::gpio::Io;
//! # use core::writeln;
//! # use core::fmt::Write;
//! # let (peripherals, clocks) = esp_hal::init(Config::default());
//! # let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);
//! # let mut uart0 = Uart::new(peripherals.UART0, &clocks, io.pins.gpio1, io.pins.gpio2).unwrap();
//! # let data0 = "Dummy";
Expand Down
1 change: 0 additions & 1 deletion esp-hal/src/soc/esp32/efuse/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
//! # use esp_hal::uart::Uart;
//! # use core::writeln;
//! # use core::fmt::Write;
//! # let (peripherals, clocks) = esp_hal::init(Config::default());
//! # let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);
//! # let mut serial_tx = Uart::new(peripherals.UART0, &clocks, io.pins.gpio4, io.pins.gpio5).unwrap();
//! let mac_address = Efuse::read_base_mac_address();
Expand Down
1 change: 0 additions & 1 deletion esp-hal/src/soc/esp32c2/efuse/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
//! # use esp_hal::uart::Uart;
//! # use core::writeln;
//! # use core::fmt::Write;
//! # let (peripherals, clocks) = esp_hal::init(Config::default());
//! # let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);
//! # let mut serial_tx = Uart::new(peripherals.UART0, &clocks, io.pins.gpio4, io.pins.gpio5).unwrap();
//! let mac_address = Efuse::read_base_mac_address();
Expand Down
1 change: 0 additions & 1 deletion esp-hal/src/soc/esp32c3/efuse/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
//! # use esp_hal::uart::Uart;
//! # use core::writeln;
//! # use core::fmt::Write;
//! # let (peripherals, clocks) = esp_hal::init(Config::default());
//! # let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);
//! # let mut serial_tx = Uart::new(peripherals.UART0, &clocks, io.pins.gpio4, io.pins.gpio5).unwrap();
//! let mac_address = Efuse::read_base_mac_address();
Expand Down
1 change: 0 additions & 1 deletion esp-hal/src/soc/esp32c6/efuse/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
//! # use esp_hal::uart::Uart;
//! # use core::writeln;
//! # use core::fmt::Write;
//! # let (peripherals, clocks) = esp_hal::init(Config::default());
//! # let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);
//! # let mut serial_tx = Uart::new(peripherals.UART0, &clocks, io.pins.gpio4, io.pins.gpio5).unwrap();
//! let mac_address = Efuse::read_base_mac_address();
Expand Down
1 change: 0 additions & 1 deletion esp-hal/src/soc/esp32h2/efuse/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
//! # use esp_hal::uart::Uart;
//! # use core::writeln;
//! # use core::fmt::Write;
//! # let (peripherals, clocks) = esp_hal::init(Config::default());
//! # let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);
//! # let mut serial_tx = Uart::new(peripherals.UART0, &clocks, io.pins.gpio4, io.pins.gpio5).unwrap();
//! let mac_address = Efuse::read_base_mac_address();
Expand Down
1 change: 0 additions & 1 deletion esp-hal/src/soc/esp32s2/efuse/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
//! # use esp_hal::uart::Uart;
//! # use core::writeln;
//! # use core::fmt::Write;
//! # let (peripherals, clocks) = esp_hal::init(Config::default());
//! # let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);
//! # let mut serial_tx = Uart::new(peripherals.UART0, &clocks, io.pins.gpio4, io.pins.gpio5).unwrap();
//! let mac_address = Efuse::read_base_mac_address();
Expand Down
1 change: 0 additions & 1 deletion esp-hal/src/soc/esp32s3/efuse/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
//! # use esp_hal::uart::Uart;
//! # use core::writeln;
//! # use core::fmt::Write;
//! # let (peripherals, clocks) = esp_hal::init(Config::default());
//! # let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);
//! # let mut serial_tx = Uart::new(peripherals.UART0, &clocks, io.pins.gpio4, io.pins.gpio5).unwrap();
//! let mac_address = Efuse::read_base_mac_address();
Expand Down
2 changes: 0 additions & 2 deletions esp-hal/src/twai/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
//! # use esp_hal::gpio::Io;
//! # use embedded_can::Frame;
//! # use nb::block;
//! # let (peripherals, clocks) = esp_hal::init(Config::default());
//! # let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);
//! // Use GPIO pins 2 and 3 to connect to the respective pins on the TWAI
//! // transceiver.
Expand Down Expand Up @@ -92,7 +91,6 @@
//! # use esp_hal::gpio::Io;
//! # use embedded_can::Frame;
//! # use nb::block;
//! # let (peripherals, clocks) = esp_hal::init(Config::default());
//! # let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);
//! // Use GPIO pins 2 and 3 to connect to the respective pins on the TWAI
//! // transceiver.
Expand Down
2 changes: 0 additions & 2 deletions esp-hal/src/uart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
#![doc = crate::before_snippet!()]
//! # use esp_hal::uart::{self, Uart};
//! # use esp_hal::gpio::Io;
//! # let (peripherals, clocks) = esp_hal::init(Config::default());
//! # let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);
//! # let mut uart1 = Uart::new_with_config(
//! # peripherals.UART1,
Expand All @@ -77,7 +76,6 @@
#![doc = crate::before_snippet!()]
//! # use esp_hal::uart::{self, Uart};
//! # use esp_hal::gpio::Io;
//! # let (peripherals, clocks) = esp_hal::init(Config::default());
//! # let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);
//! # let mut uart1 = Uart::new_with_config(
//! # peripherals.UART1,
Expand Down

0 comments on commit 756e46f

Please sign in to comment.