Moving panic configuration
This commit is contained in:
parent
8dd72ae75e
commit
6618e921fe
|
@ -1,6 +1,12 @@
|
||||||
///! Module for all hardware-specific setup of Stabilizer
|
///! Module for all hardware-specific setup of Stabilizer
|
||||||
use stm32h7xx_hal as hal;
|
use stm32h7xx_hal as hal;
|
||||||
|
|
||||||
|
#[cfg(feature = "semihosting")]
|
||||||
|
use panic_semihosting as _;
|
||||||
|
|
||||||
|
#[cfg(not(any(feature = "nightly", feature = "semihosting")))]
|
||||||
|
use panic_halt as _;
|
||||||
|
|
||||||
mod adc;
|
mod adc;
|
||||||
mod afe;
|
mod afe;
|
||||||
mod configuration;
|
mod configuration;
|
||||||
|
|
|
@ -5,12 +5,6 @@
|
||||||
|
|
||||||
use stm32h7xx_hal as hal;
|
use stm32h7xx_hal as hal;
|
||||||
|
|
||||||
#[cfg(feature = "semihosting")]
|
|
||||||
use panic_semihosting as _;
|
|
||||||
|
|
||||||
#[cfg(not(any(feature = "nightly", feature = "semihosting")))]
|
|
||||||
use panic_halt as _;
|
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate log;
|
extern crate log;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue