mirror of https://github.com/eldruin/ds323x-rs
Update dependencies
parent
ed9502842d
commit
d3329b2598
|
@ -28,8 +28,8 @@ maintenance = { status = "actively-developed" }
|
||||||
embedded-hal = "0.2.3"
|
embedded-hal = "0.2.3"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
linux-embedded-hal = "0.2"
|
linux-embedded-hal = "0.3"
|
||||||
embedded-hal-mock = "0.4"
|
embedded-hal-mock = "0.7"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = true
|
lto = true
|
||||||
|
|
|
@ -73,19 +73,19 @@ impl embedded_hal::digital::v2::OutputPin for DummyOutputPin {
|
||||||
pub fn new_ds3231(
|
pub fn new_ds3231(
|
||||||
transactions: &[I2cTrans],
|
transactions: &[I2cTrans],
|
||||||
) -> Ds323x<interface::I2cInterface<I2cMock>, ic::DS3231> {
|
) -> Ds323x<interface::I2cInterface<I2cMock>, ic::DS3231> {
|
||||||
Ds323x::new_ds3231(I2cMock::new(&transactions))
|
Ds323x::new_ds3231(I2cMock::new(transactions))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn new_ds3232(
|
pub fn new_ds3232(
|
||||||
transactions: &[I2cTrans],
|
transactions: &[I2cTrans],
|
||||||
) -> Ds323x<interface::I2cInterface<I2cMock>, ic::DS3232> {
|
) -> Ds323x<interface::I2cInterface<I2cMock>, ic::DS3232> {
|
||||||
Ds323x::new_ds3232(I2cMock::new(&transactions))
|
Ds323x::new_ds3232(I2cMock::new(transactions))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn new_ds3234(
|
pub fn new_ds3234(
|
||||||
transactions: &[SpiTrans],
|
transactions: &[SpiTrans],
|
||||||
) -> Ds323x<interface::SpiInterface<SpiMock, DummyOutputPin>, ic::DS3234> {
|
) -> Ds323x<interface::SpiInterface<SpiMock, DummyOutputPin>, ic::DS3234> {
|
||||||
Ds323x::new_ds3234(SpiMock::new(&transactions), DummyOutputPin)
|
Ds323x::new_ds3234(SpiMock::new(transactions), DummyOutputPin)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn destroy_ds3231(dev: Ds323x<interface::I2cInterface<I2cMock>, ic::DS3231>) {
|
pub fn destroy_ds3231(dev: Ds323x<interface::I2cInterface<I2cMock>, ic::DS3231>) {
|
||||||
|
|
Loading…
Reference in New Issue