Do not use panic_semihosting during tests
This commit is contained in:
parent
7fef19d2fb
commit
8e31b2c27d
|
@ -8,13 +8,13 @@
|
||||||
#![no_main]
|
#![no_main]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
extern crate panic_semihosting;
|
|
||||||
|
|
||||||
use cortex_m_rt::entry;
|
use cortex_m_rt::entry;
|
||||||
//use cortex_m_semihosting::hprintln;
|
//use cortex_m_semihosting::hprintln;
|
||||||
use hal::block;
|
use hal::block;
|
||||||
use hal::prelude::*;
|
use hal::prelude::*;
|
||||||
use hal::serial::{config::Config as SerialConfig, Serial};
|
use hal::serial::{config::Config as SerialConfig, Serial};
|
||||||
|
#[cfg(not(test))]
|
||||||
|
use panic_semihosting as _;
|
||||||
|
|
||||||
#[entry]
|
#[entry]
|
||||||
fn main() -> ! {
|
fn main() -> ! {
|
||||||
|
|
|
@ -8,13 +8,13 @@
|
||||||
#![no_main]
|
#![no_main]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
extern crate panic_semihosting;
|
|
||||||
|
|
||||||
use cortex_m_rt::entry;
|
use cortex_m_rt::entry;
|
||||||
use cortex_m_semihosting::hprintln;
|
use cortex_m_semihosting::hprintln;
|
||||||
//use hal::block;
|
//use hal::block;
|
||||||
use hal::prelude::*;
|
use hal::prelude::*;
|
||||||
use hal::spi::{Mode, Phase, Polarity, Spi};
|
use hal::spi::{Mode, Phase, Polarity, Spi};
|
||||||
|
#[cfg(not(test))]
|
||||||
|
use panic_semihosting as _;
|
||||||
|
|
||||||
#[entry]
|
#[entry]
|
||||||
fn main() -> ! {
|
fn main() -> ! {
|
||||||
|
|
|
@ -22,6 +22,7 @@ use hal::{
|
||||||
stm32::{EXTI, SPI1, USART2},
|
stm32::{EXTI, SPI1, USART2},
|
||||||
};
|
};
|
||||||
use heapless::{consts::U8, Vec};
|
use heapless::{consts::U8, Vec};
|
||||||
|
#[cfg(not(test))]
|
||||||
use panic_semihosting as _;
|
use panic_semihosting as _;
|
||||||
use rtfm::app;
|
use rtfm::app;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue