Skip to content

Commit

Permalink
Do not re-export internal macros
Browse files Browse the repository at this point in the history
  • Loading branch information
kellda authored and eldruin committed Jul 6, 2022
1 parent 93e1ed9 commit e1e7b29
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tm4c123x-hal/src/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use cortex_m::asm::delay;
use tm4c123x::{I2C0, I2C1, I2C2, I2C3};

pub use tm4c_hal::i2c::Error;
pub use tm4c_hal::{i2c_busy_wait, i2c_hal, i2c_pins};
use tm4c_hal::{i2c_busy_wait, i2c_hal, i2c_pins};

/// I2C peripheral operating in master mode
pub struct I2c<I2C, PINS> {
Expand Down
3 changes: 2 additions & 1 deletion tm4c123x-hal/src/serial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
#![allow(clippy::too_many_arguments)]

pub use tm4c123x::{UART0, UART1, UART2, UART3, UART4, UART5, UART6, UART7};
pub use tm4c_hal::{serial::*, uart_hal_macro, uart_pin_macro};
pub use tm4c_hal::serial::NewlineMode;
use tm4c_hal::{uart_hal_macro, uart_pin_macro};

#[rustfmt::skip]
use crate::{
Expand Down
3 changes: 2 additions & 1 deletion tm4c129x-hal/src/serial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ use nb::{self, block};
use void::Void;

pub use tm4c129x::{UART0, UART1, UART2, UART3, UART4, UART5, UART6, UART7};
pub use tm4c_hal::{serial::*, uart_hal_macro, uart_pin_macro};
pub use tm4c_hal::serial::NewlineMode;
use tm4c_hal::{uart_hal_macro, uart_pin_macro};

/// Serial abstraction
pub struct Serial<UART, TX, RX, RTS, CTS> {
Expand Down

0 comments on commit e1e7b29

Please sign in to comment.