Skip to content

Commit cd3da1a

Browse files
committed
rename flashtarget module to flash_target
1 parent f41338c commit cd3da1a

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

espflash/src/chip/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ use crate::{
99

1010
use std::{io::Write, str::FromStr};
1111

12+
use crate::flash_target::{Esp32Target, Esp8266Target, FlashTarget, RamTarget};
1213
use crate::flasher::SpiAttachParams;
13-
use crate::flashtarget::{Esp32Target, Esp8266Target, FlashTarget, RamTarget};
1414
pub use esp32::Esp32;
1515
pub use esp32c3::Esp32c3;
1616
pub use esp8266::Esp8266;

espflash/src/flashtarget/esp32.rs renamed to espflash/src/flash_target/esp32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use crate::connection::Connection;
22
use crate::elf::{FirmwareImage, RomSegment};
33
use crate::error::Error;
4+
use crate::flash_target::{begin_command, block_command_with_timeout, FlashTarget};
45
use crate::flasher::{Command, SpiAttachParams, FLASH_SECTOR_SIZE, FLASH_WRITE_SIZE};
5-
use crate::flashtarget::{begin_command, block_command_with_timeout, FlashTarget};
66
use crate::Chip;
77
use flate2::write::{ZlibDecoder, ZlibEncoder};
88
use flate2::Compression;

espflash/src/flashtarget/esp8266.rs renamed to espflash/src/flash_target/esp8266.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use crate::connection::Connection;
22
use crate::elf::{FirmwareImage, RomSegment};
33
use crate::error::Error;
4+
use crate::flash_target::{begin_command, block_command, FlashTarget};
45
use crate::flasher::{get_erase_size, Command, FLASH_WRITE_SIZE};
5-
use crate::flashtarget::{begin_command, block_command, FlashTarget};
66
use indicatif::{ProgressBar, ProgressStyle};
77

88
pub struct Esp8266Target;
File renamed without changes.

espflash/src/flashtarget/ram.rs renamed to espflash/src/flash_target/ram.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use crate::connection::Connection;
22
use crate::elf::{FirmwareImage, RomSegment};
33
use crate::error::Error;
4+
use crate::flash_target::{begin_command, block_command, FlashTarget};
45
use crate::flasher::Command;
5-
use crate::flashtarget::{begin_command, block_command, FlashTarget};
66
use bytemuck::{bytes_of, Pod, Zeroable};
77

88
#[derive(Zeroable, Pod, Copy, Clone)]

espflash/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ mod connection;
44
mod elf;
55
mod encoder;
66
mod error;
7+
mod flash_target;
78
mod flasher;
8-
mod flashtarget;
99
mod partition_table;
1010

1111
pub use chip::Chip;

0 commit comments

Comments
 (0)