Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
//!
//! Target program:
//!
//! ```
//! #[macro_use]
//! extern crate cortex_m_semihosting;
//! ```no_run
//! use cortex_m_semihosting::debug::{self, EXIT_SUCCESS, EXIT_FAILURE};
//!
//! fn main() {
Expand Down
16 changes: 6 additions & 10 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
//!
//! This example will demonstrate how to print formatted strings.
//!
//! ```rust
//! extern crate cortex_m_semihosting;
//!
//! ```no_run
//! use cortex_m_semihosting::hio;
//! use core::fmt::Write;
//!
Expand Down Expand Up @@ -108,8 +106,8 @@
//!
//! Target program:
//!
//! ```
//! extern crate cortex_m_semihosting;
//! ```no_run
//! use cortex_m_semihosting::syscall;
//!
//! // This function will be called by the application
//! fn print() {
Expand All @@ -133,17 +131,17 @@
//!
//! Example:
//!
//! ```
//! ```no_run
//! const UUID: *mut u32 = 0x0009_FC70 as *mut u32;
//! dbg!(UUID);
//! let mut uuid: [u32; 4] = [0; 4];
//! for i in 0..4 {
//! dbg!(i);
//! uuid[i] = unsafe { dbg!(UUID.offset(i as isize).read_volatile()) }; }
//! uuid[i] = unsafe { dbg!(UUID.offset(i as isize).read_volatile()) };
//! }
//! ```
//! outputs
//! ```
//! ```text
//! [examples/semihosting.rs:37] UUID = 0x0009fc70
//! [examples/semihosting.rs:40] i = 0
//! [examples/semihosting.rs:41] UUID.offset(i as isize).read_volatile() = 3370045464
Expand Down Expand Up @@ -186,8 +184,6 @@
#![deny(warnings)]
#![no_std]

extern crate cortex_m;

#[macro_use]
mod macros;

Expand Down