Do not use panic_semihosting during tests

This commit is contained in:
Paul van Tilburg 2019-04-06 13:01:20 +02:00
parent 7fef19d2fb
commit 8e31b2c27d
Signed by: paul
GPG Key ID: C6DE073EDA9EEC4D
3 changed files with 5 additions and 4 deletions

View File

@ -8,13 +8,13 @@
#![no_main]
#![no_std]
extern crate panic_semihosting;
use cortex_m_rt::entry;
//use cortex_m_semihosting::hprintln;
use hal::block;
use hal::prelude::*;
use hal::serial::{config::Config as SerialConfig, Serial};
#[cfg(not(test))]
use panic_semihosting as _;
#[entry]
fn main() -> ! {

View File

@ -8,13 +8,13 @@
#![no_main]
#![no_std]
extern crate panic_semihosting;
use cortex_m_rt::entry;
use cortex_m_semihosting::hprintln;
//use hal::block;
use hal::prelude::*;
use hal::spi::{Mode, Phase, Polarity, Spi};
#[cfg(not(test))]
use panic_semihosting as _;
#[entry]
fn main() -> ! {

View File

@ -22,6 +22,7 @@ use hal::{
stm32::{EXTI, SPI1, USART2},
};
use heapless::{consts::U8, Vec};
#[cfg(not(test))]
use panic_semihosting as _;
use rtfm::app;