Remove HAL initialization from #[embassy::main] macro.
This commit is contained in:
@ -4,8 +4,8 @@
|
||||
//! nrf_softdevice::interrupt. Intended for switching between the two at compile-time.
|
||||
|
||||
// Re-exports
|
||||
use embassy_cortex_m::interrupt::_export::declare;
|
||||
pub use embassy_cortex_m::interrupt::*;
|
||||
use embassy_macros::cortex_m_interrupt_declare as declare;
|
||||
|
||||
use crate::pac::Interrupt as InterruptEnum;
|
||||
declare!(TIMER_IRQ_0);
|
||||
|
@ -17,8 +17,8 @@ mod reset;
|
||||
// Reexports
|
||||
|
||||
pub use embassy_cortex_m::executor;
|
||||
pub use embassy_cortex_m::interrupt::_export::interrupt;
|
||||
pub use embassy_hal_common::{into_ref, Peripheral, PeripheralRef};
|
||||
pub use embassy_macros::cortex_m_interrupt as interrupt;
|
||||
#[cfg(feature = "unstable-pac")]
|
||||
pub use rp2040_pac2 as pac;
|
||||
#[cfg(not(feature = "unstable-pac"))]
|
||||
|
Reference in New Issue
Block a user