Skip to content

Commit 0c30f26

Browse files
committed
Make the interface module public
1 parent 20c250d commit 0c30f26

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

espflash/src/interface.rs

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
//! Serial port wrapper to support platform-specific functionality
2+
//!
3+
//! Since we support flashing using a Raspberry Pi's built-in UART, we must be
4+
//! able to abstract over the differences between this setup and when using a
5+
//! serial port as one normally would, ie.) via USB.
6+
17
use std::io::Read;
28

39
use miette::{Context, Result};
@@ -7,6 +13,7 @@ use serialport::{FlowControl, SerialPort, SerialPortInfo};
713

814
use crate::error::Error;
915

16+
/// Errors relating to the configuration of a serial port
1017
#[derive(thiserror::Error, Debug)]
1118
pub enum SerialConfigError {
1219
#[cfg(feature = "raspberry")]

espflash/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ pub mod elf;
5454
pub mod error;
5555
pub mod flasher;
5656
pub mod image_format;
57+
pub mod interface;
5758
pub mod targets;
5859

5960
mod command;
60-
mod interface;
6161

6262
/// Logging utilties
6363
#[cfg(feature = "cli")]

0 commit comments

Comments
 (0)