1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
//! Prints "Hello, world" on the OpenOCD console //! //! ``` //! //! #![deny(unsafe_code)] //! #![deny(warnings)] //! #![no_std] //! //! extern crate cortex_m_semihosting as sh; //! extern crate panic_abort; //! extern crate stm32f103xx_hal; //! //! use core::fmt::Write; //! //! use sh::hio; //! //! fn main() { //! let mut hstdout = hio::hstdout().unwrap(); //! //! writeln!(hstdout, "Hello, world!").unwrap(); //! } //! ``` // Auto-generated. Do not modify.