Skip to content

Commit 5295697

Browse files
committed
rename to embedded-hal
1 parent b120396 commit 5295697

File tree

4 files changed

+24
-25
lines changed

4 files changed

+24
-25
lines changed

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
22
authors = ["Jorge Aparicio <[email protected]>"]
33
categories = ["asynchronous", "embedded", "hardware-support", "no-std"]
4-
description = "Minimal Hardware Abstraction Layer for Cortex-M microcontrollers"
5-
documentation = "https://docs.rs/cortex-m-hal"
6-
keywords = ["arm", "cortex-m", "hal", "I/O"]
4+
description = "Minimal Hardware Abstraction Layer for embedded systems"
5+
documentation = "https://docs.rs/embedded-hal"
6+
keywords = ["hal", "I/O"]
77
license = "MIT OR Apache-2.0"
8-
name = "cortex-m-hal"
9-
repository = "https://github.com/japaric/cortex-m-hal"
8+
name = "embedded-hal"
9+
repository = "https://github.com/japaric/embedded-hal"
1010
version = "0.1.0"
1111

1212
[dependencies.nb]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# `cortex-m-hal`
1+
# `embedded-hal`
22

3-
> A minimal Hardware Abstraction Layer (HAL) for Cortex-M microcontrollers
3+
> A minimal Hardware Abstraction Layer (HAL) for embedded systems
44
55
## [Documentation]
66

7-
[Documentation]: https://japaric.github.io/cortex-m-hal/cortex_m_hal/index.html
7+
[Documentation]: https://japaric.github.io/embedded-hal/embedded_hal/index.html
88

99
## License
1010

src/lib.rs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! A minimal Hardware Abstraction Layer (HAL) for Cortex-M microcontrollers
1+
//! A minimal Hardware Abstraction Layer (HAL) for embedded systems
22
//!
33
//! **NOTE** The HAL is in design phase. Expect the API to change in non
44
//! backward compatible ways without previous notice.
@@ -115,10 +115,9 @@
115115
//! [`stm32f103xx`]: https://crates.io/crates/stm32f103xx
116116
//!
117117
//! ``` ignore
118-
//! //! An implementation of the `cortex-m-hal` for the STM32F103xx
119-
//! //! microcontrollers
118+
//! //! An implementation of the `embedded-hal` for STM32F103xx microcontrollers
120119
//!
121-
//! extern crate cortex_m_hal as hal;
120+
//! extern crate embedded_hal as hal;
122121
//! extern crate nb;
123122
//!
124123
//! // device crate
@@ -210,7 +209,7 @@
210209
//! fashion:
211210
//!
212211
//! ``` ignore
213-
//! extern crate cortex_m_hal as hal;
212+
//! extern crate embedded_hal as hal;
214213
//!
215214
//! #[macro_use]
216215
//! extern crate nb;
@@ -234,7 +233,7 @@
234233
//! second. Second task: loop back data over the serial interface.
235234
//!
236235
//! ``` ignore
237-
//! extern crate cortex_m_hal as hal;
236+
//! extern crate embedded_hal as hal;
238237
//!
239238
//! extern crate futures;
240239
//! extern crate stm32f103xx_hal_impl;
@@ -321,7 +320,7 @@
321320
//! is not yet in the compiler.
322321
//!
323322
//! ``` ignore
324-
//! extern crate cortex_m_hal as hal;
323+
//! extern crate embedded_hal as hal;
325324
//!
326325
//! extern crate stm32f103xx_hal_impl;
327326
//!
@@ -381,7 +380,7 @@
381380
//! - Write a whole buffer in blocking fashion.
382381
//!
383382
//! ``` ignore
384-
//! extern crate cortex_m_hal as hal;
383+
//! extern crate embedded_hal as hal;
385384
//!
386385
//! use hal::prelude::*;
387386
//!
@@ -400,7 +399,7 @@
400399
//! - Blocking read with timeout
401400
//!
402401
//! ``` ignore
403-
//! extern crate cortex_m_hal as hal;
402+
//! extern crate embedded_hal as hal;
404403
//!
405404
//! use hal::prelude::*;
406405
//!
@@ -447,7 +446,7 @@
447446
//! - Asynchronous SPI transfer
448447
//!
449448
//! ``` ignore
450-
//! extern crate cortex_m_hal as hal;
449+
//! extern crate embedded_hal as hal;
451450
//!
452451
//! /// Transfers a byte buffer of size N
453452
//! ///
@@ -473,7 +472,7 @@
473472
//! - Buffered serial interface with periodic flushing in interrupt handler
474473
//!
475474
//! ``` ignore
476-
//! extern crate cortex_m_hal as hal;
475+
//! extern crate embedded_hal as hal;
477476
//! extern crate nb;
478477
//!
479478
//! use hal::prelude::*;

src/prelude.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
//! The traits have been renamed to avoid collisions with other items when
44
//! performing a glob import.
55
6-
pub use ::Capture as _cortex_m_hal_Capture;
7-
pub use ::Pwm as _cortex_m_hal_Pwm;
8-
pub use ::Qei as _cortex_m_hal_Qei;
9-
pub use ::Serial as _cortex_m_hal_Serial;
10-
pub use ::Spi as _cortex_m_hal_Spi;
11-
pub use ::Timer as _cortex_m_hal_Timer;
6+
pub use ::Capture as _embedded_hal_Capture;
7+
pub use ::Pwm as _embedded_hal_Pwm;
8+
pub use ::Qei as _embedded_hal_Qei;
9+
pub use ::Serial as _embedded_hal_Serial;
10+
pub use ::Spi as _embedded_hal_Spi;
11+
pub use ::Timer as _embedded_hal_Timer;

0 commit comments

Comments
 (0)