aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Raphael Nestler <raphael.nestler@gmail.com> 2018-12-09 22:23:48 +0100
committerGravatar Raphael Nestler <raphael.nestler@gmail.com> 2018-12-09 22:23:48 +0100
commitd8bf195b1d2634bef0fcac00e68ff64b2be0754c (patch)
treecd630c9ac9f0eb39be8c607fb289c3c2ba118e52
parentdb6718650505d09fc9a959fe0ffa4b41d2fc1d4b (diff)
downloadcortex-m-d8bf195b1d2634bef0fcac00e68ff64b2be0754c.tar.gz
cortex-m-d8bf195b1d2634bef0fcac00e68ff64b2be0754c.tar.zst
cortex-m-d8bf195b1d2634bef0fcac00e68ff64b2be0754c.zip
Upgrade to aligned 0.3
-rw-r--r--Cargo.toml2
-rw-r--r--src/itm.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/Cargo.toml b/Cargo.toml
index cf46c29..eaa670a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -11,7 +11,7 @@ repository = "https://github.com/japaric/cortex-m"
version = "0.5.8"
[dependencies]
-aligned = "0.2.0"
+aligned = "0.3.1"
bare-metal = "0.2.0"
volatile-register = "0.2.0"
diff --git a/src/itm.rs b/src/itm.rs
index 0e32e3c..4f8dcf8 100644
--- a/src/itm.rs
+++ b/src/itm.rs
@@ -4,7 +4,7 @@
use core::{fmt, mem, ptr, slice};
-use aligned::Aligned;
+use aligned::{Aligned, A4};
use peripheral::itm::Stim;
@@ -77,7 +77,7 @@ pub fn write_all(port: &mut Stim, buffer: &[u8]) {
/// # Examples
///
/// ``` ignore
-/// let mut buffer: Aligned<u32, _> = Aligned([0; 14]);
+/// let mut buffer: Aligned<A4, _> = Aligned([0; 14]);
///
/// buffer.copy_from_slice(b"Hello, world!\n");
///
@@ -86,7 +86,7 @@ pub fn write_all(port: &mut Stim, buffer: &[u8]) {
/// // Or equivalently
/// itm::write_aligned(&itm.stim[0], &Aligned(*b"Hello, world!\n"));
/// ```
-pub fn write_aligned(port: &mut Stim, buffer: &Aligned<u32, [u8]>) {
+pub fn write_aligned(port: &mut Stim, buffer: &Aligned<A4, [u8]>) {
unsafe {
let len = buffer.len();