Browse Source

Fix imports

master v0.3.1
Diego Barrios Romero 2 years ago
parent
commit
2799590575
  1. 2
      tests/alarms.rs
  2. 2
      tests/configuration.rs
  3. 4
      tests/construction.rs
  4. 2
      tests/datetime.rs
  5. 2
      tests/ds3232_4.rs
  6. 2
      tests/ds3234.rs
  7. 2
      tests/status.rs

2
tests/alarms.rs

@ -1,6 +1,6 @@
use embedded_hal_mock::{i2c::Transaction as I2cTrans, spi::Transaction as SpiTrans};
mod common;
use common::{
use self::common::{
destroy_ds3231, destroy_ds3232, destroy_ds3234, new_ds3231, new_ds3232, new_ds3234,
BitFlags as BF, Register, DEVICE_ADDRESS as DEV_ADDR,
};

2
tests/configuration.rs

@ -2,7 +2,7 @@ use ds323x::SqWFreq;
use embedded_hal_mock::{i2c::Transaction as I2cTrans, spi::Transaction as SpiTrans};
mod common;
use common::{
use self::common::{
destroy_ds3231, destroy_ds3232, destroy_ds3234, new_ds3231, new_ds3232, new_ds3234,
BitFlags as BF, Register, CONTROL_POR_VALUE, DEVICE_ADDRESS as DEV_ADDR, DS3231_POR_STATUS,
DS323X_POR_STATUS,

4
tests/construction.rs

@ -1,5 +1,7 @@
mod common;
use common::{destroy_ds3231, destroy_ds3232, destroy_ds3234, new_ds3231, new_ds3232, new_ds3234};
use self::common::{
destroy_ds3231, destroy_ds3232, destroy_ds3234, new_ds3231, new_ds3232, new_ds3234,
};
macro_rules! construction_test {
($name:ident, $create:ident, $destroy:ident) => {

2
tests/datetime.rs

@ -1,6 +1,6 @@
use embedded_hal_mock::{i2c::Transaction as I2cTrans, spi::Transaction as SpiTrans};
mod common;
use common::{
use self::common::{
destroy_ds3231, destroy_ds3232, destroy_ds3234, new_ds3231, new_ds3232, new_ds3234, Register,
DEVICE_ADDRESS as DEV_ADDR,
};

2
tests/ds3232_4.rs

@ -3,7 +3,7 @@ use embedded_hal_mock::{i2c::Transaction as I2cTrans, spi::Transaction as SpiTra
#[allow(unused)]
mod common;
use common::{
use self::common::{
destroy_ds3232, destroy_ds3234, new_ds3232, new_ds3234, BitFlags as BF, Register,
DEVICE_ADDRESS as DEV_ADDR, DS323X_POR_STATUS,
};

2
tests/ds3234.rs

@ -2,7 +2,7 @@ use embedded_hal_mock::spi::Transaction as SpiTrans;
#[allow(unused)]
mod common;
use common::{destroy_ds3234, new_ds3234, BitFlags, Register};
use self::common::{destroy_ds3234, new_ds3234, BitFlags, Register};
call_test!(
can_en_temp_conv_bat,

2
tests/status.rs

@ -1,6 +1,6 @@
use embedded_hal_mock::{i2c::Transaction as I2cTrans, spi::Transaction as SpiTrans};
mod common;
use common::{
use self::common::{
destroy_ds3231, destroy_ds3232, destroy_ds3234, new_ds3231, new_ds3232, new_ds3234,
BitFlags as BF, Register, DEVICE_ADDRESS as DEV_ADDR,
};

Loading…
Cancel
Save