From f2025c071764a079c44368a19f2e2c92a5692862 Mon Sep 17 00:00:00 2001 From: Per Lindgren <per.lindgren@ltu.se> Date: Sun, 4 Feb 2018 01:17:49 +0100 Subject: [PATCH] examples --- examples/hello.rs | 2 +- examples/hello_itm.rs | 21 --------------------- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 examples/hello_itm.rs diff --git a/examples/hello.rs b/examples/hello.rs index 9c8b5ac..8155f7d 100644 --- a/examples/hello.rs +++ b/examples/hello.rs @@ -4,7 +4,7 @@ #![no_std] extern crate cortex_m_semihosting as semihosting; -extern crate stm32f4xx_hal; +extern crate stm32f4x_hal; use core::fmt::Write; diff --git a/examples/hello_itm.rs b/examples/hello_itm.rs deleted file mode 100644 index d141c93..0000000 --- a/examples/hello_itm.rs +++ /dev/null @@ -1,21 +0,0 @@ -//! Prints "Hello, world" on the ITM console -//! and Semihosting in the openocd console -//! -//! Using cortex-m-debug, for simple tracing -#![deny(unsafe_code)] -#![deny(warnings)] -#![no_std] - -extern crate stm32f4xx_hal; - -// Convenient tracing over semihosting and ITM -#[macro_use] -extern crate cortex_m_debug; - -fn main() { - ip!("ITM: Hello "); - ipln!("World! for the {} time", 50); - - sp!("Semihosting: Hello "); - spln!("World! for the {} time", 50); -} -- GitLab