Remove HAL initialization from #[embassy::main] macro.
This commit is contained in:
@ -197,7 +197,7 @@ impl_saadc_input!(P0_04, ANALOGINPUT2);
|
||||
impl_saadc_input!(P0_05, ANALOGINPUT3);
|
||||
|
||||
pub mod irqs {
|
||||
use embassy_macros::cortex_m_interrupt_declare as declare;
|
||||
use embassy_cortex_m::interrupt::_export::declare;
|
||||
|
||||
use crate::pac::Interrupt as InterruptEnum;
|
||||
|
||||
|
@ -218,7 +218,7 @@ impl_saadc_input!(P0_30, ANALOGINPUT6);
|
||||
impl_saadc_input!(P0_31, ANALOGINPUT7);
|
||||
|
||||
pub mod irqs {
|
||||
use embassy_macros::cortex_m_interrupt_declare as declare;
|
||||
use embassy_cortex_m::interrupt::_export::declare;
|
||||
|
||||
use crate::pac::Interrupt as InterruptEnum;
|
||||
|
||||
|
@ -219,7 +219,7 @@ impl_saadc_input!(P0_30, ANALOGINPUT6);
|
||||
impl_saadc_input!(P0_31, ANALOGINPUT7);
|
||||
|
||||
pub mod irqs {
|
||||
use embassy_macros::cortex_m_interrupt_declare as declare;
|
||||
use embassy_cortex_m::interrupt::_export::declare;
|
||||
|
||||
use crate::pac::Interrupt as InterruptEnum;
|
||||
|
||||
|
@ -211,7 +211,7 @@ impl_ppi_channel!(PPI_CH30, 30 => static);
|
||||
impl_ppi_channel!(PPI_CH31, 31 => static);
|
||||
|
||||
pub mod irqs {
|
||||
use embassy_macros::cortex_m_interrupt_declare as declare;
|
||||
use embassy_cortex_m::interrupt::_export::declare;
|
||||
|
||||
use crate::pac::Interrupt as InterruptEnum;
|
||||
|
||||
|
@ -235,7 +235,7 @@ impl_saadc_input!(P0_30, ANALOGINPUT6);
|
||||
impl_saadc_input!(P0_31, ANALOGINPUT7);
|
||||
|
||||
pub mod irqs {
|
||||
use embassy_macros::cortex_m_interrupt_declare as declare;
|
||||
use embassy_cortex_m::interrupt::_export::declare;
|
||||
|
||||
use crate::pac::Interrupt as InterruptEnum;
|
||||
|
||||
|
@ -278,7 +278,7 @@ impl_saadc_input!(P0_30, ANALOGINPUT6);
|
||||
impl_saadc_input!(P0_31, ANALOGINPUT7);
|
||||
|
||||
pub mod irqs {
|
||||
use embassy_macros::cortex_m_interrupt_declare as declare;
|
||||
use embassy_cortex_m::interrupt::_export::declare;
|
||||
|
||||
use crate::pac::Interrupt as InterruptEnum;
|
||||
|
||||
|
@ -283,7 +283,7 @@ impl_saadc_input!(P0_30, ANALOGINPUT6);
|
||||
impl_saadc_input!(P0_31, ANALOGINPUT7);
|
||||
|
||||
pub mod irqs {
|
||||
use embassy_macros::cortex_m_interrupt_declare as declare;
|
||||
use embassy_cortex_m::interrupt::_export::declare;
|
||||
|
||||
use crate::pac::Interrupt as InterruptEnum;
|
||||
|
||||
|
@ -468,7 +468,7 @@ impl_saadc_input!(P0_19, ANALOGINPUT6);
|
||||
impl_saadc_input!(P0_20, ANALOGINPUT7);
|
||||
|
||||
pub mod irqs {
|
||||
use embassy_macros::cortex_m_interrupt_declare as declare;
|
||||
use embassy_cortex_m::interrupt::_export::declare;
|
||||
|
||||
use crate::pac::Interrupt as InterruptEnum;
|
||||
|
||||
|
@ -328,7 +328,7 @@ impl_ppi_channel!(PPI_CH30, 30 => configurable);
|
||||
impl_ppi_channel!(PPI_CH31, 31 => configurable);
|
||||
|
||||
pub mod irqs {
|
||||
use embassy_macros::cortex_m_interrupt_declare as declare;
|
||||
use embassy_cortex_m::interrupt::_export::declare;
|
||||
|
||||
use crate::pac::Interrupt as InterruptEnum;
|
||||
|
||||
|
@ -346,7 +346,7 @@ impl_saadc_input!(P0_19, ANALOGINPUT6);
|
||||
impl_saadc_input!(P0_20, ANALOGINPUT7);
|
||||
|
||||
pub mod irqs {
|
||||
use embassy_macros::cortex_m_interrupt_declare as declare;
|
||||
use embassy_cortex_m::interrupt::_export::declare;
|
||||
|
||||
use crate::pac::Interrupt as InterruptEnum;
|
||||
|
||||
|
@ -135,8 +135,8 @@ pub use chip::pac;
|
||||
pub(crate) use chip::pac;
|
||||
pub use chip::{peripherals, Peripherals};
|
||||
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;
|
||||
|
||||
pub mod config {
|
||||
//! Configuration options used when initializing the HAL.
|
||||
|
Reference in New Issue
Block a user