Do not use panic_semihosting during tests
This commit is contained in:
parent
7fef19d2fb
commit
8e31b2c27d
|
@ -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() -> ! {
|
||||
|
|
|
@ -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() -> ! {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue