mirror of https://github.com/eldruin/ds323x-rs
parent
5414721d1d
commit
2799590575
|
@ -1,6 +1,6 @@
|
||||||
use embedded_hal_mock::{i2c::Transaction as I2cTrans, spi::Transaction as SpiTrans};
|
use embedded_hal_mock::{i2c::Transaction as I2cTrans, spi::Transaction as SpiTrans};
|
||||||
mod common;
|
mod common;
|
||||||
use common::{
|
use self::common::{
|
||||||
destroy_ds3231, destroy_ds3232, destroy_ds3234, new_ds3231, new_ds3232, new_ds3234,
|
destroy_ds3231, destroy_ds3232, destroy_ds3234, new_ds3231, new_ds3232, new_ds3234,
|
||||||
BitFlags as BF, Register, DEVICE_ADDRESS as DEV_ADDR,
|
BitFlags as BF, Register, DEVICE_ADDRESS as DEV_ADDR,
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@ use ds323x::SqWFreq;
|
||||||
use embedded_hal_mock::{i2c::Transaction as I2cTrans, spi::Transaction as SpiTrans};
|
use embedded_hal_mock::{i2c::Transaction as I2cTrans, spi::Transaction as SpiTrans};
|
||||||
|
|
||||||
mod common;
|
mod common;
|
||||||
use common::{
|
use self::common::{
|
||||||
destroy_ds3231, destroy_ds3232, destroy_ds3234, new_ds3231, new_ds3232, new_ds3234,
|
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,
|
BitFlags as BF, Register, CONTROL_POR_VALUE, DEVICE_ADDRESS as DEV_ADDR, DS3231_POR_STATUS,
|
||||||
DS323X_POR_STATUS,
|
DS323X_POR_STATUS,
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
mod common;
|
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 {
|
macro_rules! construction_test {
|
||||||
($name:ident, $create:ident, $destroy:ident) => {
|
($name:ident, $create:ident, $destroy:ident) => {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use embedded_hal_mock::{i2c::Transaction as I2cTrans, spi::Transaction as SpiTrans};
|
use embedded_hal_mock::{i2c::Transaction as I2cTrans, spi::Transaction as SpiTrans};
|
||||||
mod common;
|
mod common;
|
||||||
use common::{
|
use self::common::{
|
||||||
destroy_ds3231, destroy_ds3232, destroy_ds3234, new_ds3231, new_ds3232, new_ds3234, Register,
|
destroy_ds3231, destroy_ds3232, destroy_ds3234, new_ds3231, new_ds3232, new_ds3234, Register,
|
||||||
DEVICE_ADDRESS as DEV_ADDR,
|
DEVICE_ADDRESS as DEV_ADDR,
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,7 +3,7 @@ use embedded_hal_mock::{i2c::Transaction as I2cTrans, spi::Transaction as SpiTra
|
||||||
|
|
||||||
#[allow(unused)]
|
#[allow(unused)]
|
||||||
mod common;
|
mod common;
|
||||||
use common::{
|
use self::common::{
|
||||||
destroy_ds3232, destroy_ds3234, new_ds3232, new_ds3234, BitFlags as BF, Register,
|
destroy_ds3232, destroy_ds3234, new_ds3232, new_ds3234, BitFlags as BF, Register,
|
||||||
DEVICE_ADDRESS as DEV_ADDR, DS323X_POR_STATUS,
|
DEVICE_ADDRESS as DEV_ADDR, DS323X_POR_STATUS,
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@ use embedded_hal_mock::spi::Transaction as SpiTrans;
|
||||||
|
|
||||||
#[allow(unused)]
|
#[allow(unused)]
|
||||||
mod common;
|
mod common;
|
||||||
use common::{destroy_ds3234, new_ds3234, BitFlags, Register};
|
use self::common::{destroy_ds3234, new_ds3234, BitFlags, Register};
|
||||||
|
|
||||||
call_test!(
|
call_test!(
|
||||||
can_en_temp_conv_bat,
|
can_en_temp_conv_bat,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use embedded_hal_mock::{i2c::Transaction as I2cTrans, spi::Transaction as SpiTrans};
|
use embedded_hal_mock::{i2c::Transaction as I2cTrans, spi::Transaction as SpiTrans};
|
||||||
mod common;
|
mod common;
|
||||||
use common::{
|
use self::common::{
|
||||||
destroy_ds3231, destroy_ds3232, destroy_ds3234, new_ds3231, new_ds3232, new_ds3234,
|
destroy_ds3231, destroy_ds3232, destroy_ds3234, new_ds3231, new_ds3232, new_ds3234,
|
||||||
BitFlags as BF, Register, DEVICE_ADDRESS as DEV_ADDR,
|
BitFlags as BF, Register, DEVICE_ADDRESS as DEV_ADDR,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue