Skip to content

Commit

Permalink
changed crate name: bmp180 -> bmp180-embedded-hal
Browse files Browse the repository at this point in the history
Signed-off-by: JadKHaddad <jadkhaddad@gmail.com>
  • Loading branch information
JadKHaddad committed May 12, 2024
1 parent 8d56b81 commit 6d50789
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bmp180/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "bmp180"
name = "bmp180-embedded-hal"
version = "0.1.0"
edition = "2021"
authors = ["Jad K. Haddad <jadkhaddad@gmail.com>"]
Expand Down
4 changes: 3 additions & 1 deletion bmp180/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ cargo-fuzz = true

[dependencies]
libfuzzer-sys = "0.4"
bmp180 = { path = "../", default-features = false, features = ["fuzz"] }
bmp180-embedded-hal = { path = "../", default-features = false, features = [
"fuzz",
] }

[workspace]
members = ["."]
Expand Down
2 changes: 1 addition & 1 deletion bmp180/fuzz/fuzz_targets/init_update.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![no_main]

use bmp180::{
use bmp180_embedded_hal::{
blocking::UninitBMP180,
fuzz::{FuzzDelay, FuzzI2C},
};
Expand Down
4 changes: 2 additions & 2 deletions examples/blue-pill/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/blue-pill/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ cortex-m-rt = "0.7"
panic-probe = { version = "0.3.1", features = ["defmt"] }
defmt = "0.3"
defmt-rtt = "0.4"
bmp180 = { path = "../../bmp180", default-features = false, features = [
bmp180-embedded-hal = { path = "../../bmp180", default-features = false, features = [
"blocking",
"impl-defmt-format",
"impl-debug",
Expand Down
4 changes: 2 additions & 2 deletions examples/blue-pill/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![no_main]
#![no_std]

use bmp180::blocking::UninitBMP180;
use bmp180_embedded_hal::blocking::UninitBMP180;
use defmt_rtt as _;
use embassy_executor::Spawner;
use embassy_stm32::{
Expand Down Expand Up @@ -35,7 +35,7 @@ async fn main(_spawner: Spawner) {
);

let mut bmp180 = UninitBMP180::builder(i2c, Delay {})
.mode(bmp180::Mode::UltraHighResolution)
.mode(bmp180_embedded_hal::Mode::UltraHighResolution)
.build()
.initialize()
.unwrap();
Expand Down
4 changes: 2 additions & 2 deletions examples/esp32/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/esp32/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fugit = "0.3.7"
log = "0.4.20"
static_cell = "2.0.0"

bmp180 = { path = "../../bmp180", default-features = false, features = [
bmp180-embedded-hal = { path = "../../bmp180", default-features = false, features = [
"async",
"impl-debug",
] }
Expand Down
2 changes: 1 addition & 1 deletion examples/esp32/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![no_main]
#![feature(type_alias_impl_trait)]

use bmp180::{asynch::UninitBMP180, Mode};
use bmp180_embedded_hal::{asynch::UninitBMP180, Mode};
use embassy_embedded_hal::shared_bus::asynch::i2c::I2cDevice;
use embassy_executor::Spawner;
use embassy_sync::{blocking_mutex::raw::NoopRawMutex, mutex::Mutex};
Expand Down

0 comments on commit 6d50789

Please sign in to comment.