Skip to content

Commit

Permalink
renamed async-cortex-m to async-embedded as it's now generic over…
Browse files Browse the repository at this point in the history
… Cortex-M and RISC-V ISA's
  • Loading branch information
ilya-epifanov committed May 6, 2020
1 parent 8918a9c commit 47eb470
Show file tree
Hide file tree
Showing 23 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
members = [
"async-cortex-m",
"async-embedded",
"cortex-m-udf",
"nrf52",
"panic-udf",
Expand Down
2 changes: 1 addition & 1 deletion async-cortex-m/Cargo.toml → async-embedded/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["Jorge Aparicio <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
name = "async-cortex-m"
name = "async-embedded"
publish = false
version = "0.0.0-alpha.0"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion nrf52/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ panic-semihosting = "0.5.3"
panic-udf = { path = "../panic-udf" }

[dependencies]
async-cortex-m = { path = "../async-cortex-m", features = ["isa-cortex-m"] }
async-embedded = { path = "../async-embedded", features = ["isa-cortex-m"] }
cortex-m = "0.6.2"
cortex-m-rt = "0.6.12"
pac = { package = "nrf52840-pac", version = "0.9.0", features = ["rt"] }
Expand Down
2 changes: 1 addition & 1 deletion nrf52/examples/1-yield.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#![no_main]
#![no_std]

use async_cortex_m::task;
use async_embedded::task;
use cortex_m::asm;
use cortex_m_rt::entry;
use cortex_m_semihosting::hprintln;
Expand Down
2 changes: 1 addition & 1 deletion nrf52/examples/2-share.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

use core::cell::{Cell, RefCell};

use async_cortex_m::task;
use async_embedded::task;
use cortex_m::asm;
use cortex_m_rt::entry;
use cortex_m_semihosting::hprintln;
Expand Down
2 changes: 1 addition & 1 deletion nrf52/examples/3-mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#![no_main]
#![no_std]

use async_cortex_m::{task, unsync::Mutex};
use async_embedded::{task, unsync::Mutex};
use cortex_m::asm;
use cortex_m_rt::entry;
use cortex_m_semihosting::hprintln;
Expand Down
2 changes: 1 addition & 1 deletion nrf52/examples/4-channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#![no_main]
#![no_std]

use async_cortex_m::{task, unsync::Channel};
use async_embedded::{task, unsync::Channel};
use cortex_m::asm;
use cortex_m_rt::entry;
use cortex_m_semihosting::hprintln;
Expand Down
2 changes: 1 addition & 1 deletion nrf52/examples/5-heartbeat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

use core::time::Duration;

use async_cortex_m::task;
use async_embedded::task;
use cortex_m_rt::entry;
use nrf52::{led::Red, timer::Timer};
use panic_udf as _; // panic handler
Expand Down
2 changes: 1 addition & 1 deletion nrf52/examples/6-hello.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

use core::time::Duration;

use async_cortex_m::task;
use async_embedded::task;
use cortex_m_rt::entry;
use nrf52::{led::Red, serial, timer::Timer};
use panic_udf as _; // panic handler
Expand Down
2 changes: 1 addition & 1 deletion nrf52/examples/7-echo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

use core::time::Duration;

use async_cortex_m::task;
use async_embedded::task;
use cortex_m_rt::entry;
use nrf52::{led::Red, serial, timer::Timer};
use panic_udf as _; // panic handler
Expand Down
2 changes: 1 addition & 1 deletion nrf52/examples/8-sensor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

use core::{cell::Cell, fmt::Write as _, time::Duration};

use async_cortex_m::{task, unsync::Mutex};
use async_embedded::{task, unsync::Mutex};
use cortex_m_rt::entry;
use heapless::{consts, String};
use nrf52::{led::Red, scd30::Scd30, serial, timer::Timer, twim::Twim};
Expand Down
2 changes: 1 addition & 1 deletion nrf52/examples/9-clock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ use core::{
time::Duration,
};

use async_cortex_m::{task, unsync::Mutex};
use async_embedded::{task, unsync::Mutex};
use chrono::{Datelike as _, NaiveDate, NaiveTime};
use cortex_m_rt::entry;
use heapless::{consts, String, Vec};
Expand Down
2 changes: 1 addition & 1 deletion nrf52/src/ds3231.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Reference: DS3231 datasheet (19-5170; Rev 10; 3/15)

use async_cortex_m::unsync::Mutex;
use async_embedded::unsync::Mutex;
use chrono::{Datelike as _, NaiveDate, NaiveDateTime, NaiveTime, Timelike as _};

use crate::twim::{self, Twim};
Expand Down
2 changes: 1 addition & 1 deletion nrf52/src/scd30.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Reference: Interface Description Sensirion SCD30 Sensor Module (Version
// 0.94–D1 –June 2019)

use async_cortex_m::unsync::Mutex;
use async_embedded::unsync::Mutex;

use crate::twim::{self, Twim};

Expand Down

0 comments on commit 47eb470

Please sign in to comment.