#![allow(non_snake_case, non_upper_case_globals)]
#![allow(non_camel_case_types)]
#[cfg(not(feature = "nosync"))]
pub use crate::imxrt106::peripherals::lpuart::Instance;
pub use crate::imxrt106::peripherals::lpuart::{RegisterBlock, ResetValues};
pub use crate::imxrt106::peripherals::lpuart::{
BAUD, CTRL, DATA, FIFO, GLOBAL, MATCH, MODIR, PARAM, PINCFG, STAT, VERID, WATER,
};
pub mod LPUART1 {
use super::ResetValues;
#[cfg(not(feature = "nosync"))]
use super::Instance;
#[cfg(not(feature = "nosync"))]
const INSTANCE: Instance = Instance {
addr: 0x40184000,
_marker: ::core::marker::PhantomData,
};
pub const reset: ResetValues = ResetValues {
VERID: 0x04010003,
PARAM: 0x00000202,
GLOBAL: 0x00000000,
PINCFG: 0x00000000,
BAUD: 0x0F000004,
STAT: 0x00C00000,
CTRL: 0x00000000,
DATA: 0x00001000,
MATCH: 0x00000000,
MODIR: 0x00000000,
FIFO: 0x00C00011,
WATER: 0x00000000,
};
#[cfg(not(feature = "nosync"))]
#[allow(renamed_and_removed_lints)]
#[allow(private_no_mangle_statics)]
#[no_mangle]
static mut LPUART1_TAKEN: bool = false;
#[cfg(not(feature = "nosync"))]
#[inline]
pub fn take() -> Option<Instance> {
external_cortex_m::interrupt::free(|_| unsafe {
if LPUART1_TAKEN {
None
} else {
LPUART1_TAKEN = true;
Some(INSTANCE)
}
})
}
#[cfg(not(feature = "nosync"))]
#[inline]
pub fn release(inst: Instance) {
external_cortex_m::interrupt::free(|_| unsafe {
if LPUART1_TAKEN && inst.addr == INSTANCE.addr {
LPUART1_TAKEN = false;
} else {
panic!("Released a peripheral which was not taken");
}
});
}
#[cfg(not(feature = "nosync"))]
#[inline]
pub unsafe fn steal() -> Instance {
LPUART1_TAKEN = true;
INSTANCE
}
}
pub const LPUART1: *const RegisterBlock = 0x40184000 as *const _;
pub mod LPUART2 {
use super::ResetValues;
#[cfg(not(feature = "nosync"))]
use super::Instance;
#[cfg(not(feature = "nosync"))]
const INSTANCE: Instance = Instance {
addr: 0x40188000,
_marker: ::core::marker::PhantomData,
};
pub const reset: ResetValues = ResetValues {
VERID: 0x04010003,
PARAM: 0x00000202,
GLOBAL: 0x00000000,
PINCFG: 0x00000000,
BAUD: 0x0F000004,
STAT: 0x00C00000,
CTRL: 0x00000000,
DATA: 0x00001000,
MATCH: 0x00000000,
MODIR: 0x00000000,
FIFO: 0x00C00011,
WATER: 0x00000000,
};
#[cfg(not(feature = "nosync"))]
#[allow(renamed_and_removed_lints)]
#[allow(private_no_mangle_statics)]
#[no_mangle]
static mut LPUART2_TAKEN: bool = false;
#[cfg(not(feature = "nosync"))]
#[inline]
pub fn take() -> Option<Instance> {
external_cortex_m::interrupt::free(|_| unsafe {
if LPUART2_TAKEN {
None
} else {
LPUART2_TAKEN = true;
Some(INSTANCE)
}
})
}
#[cfg(not(feature = "nosync"))]
#[inline]
pub fn release(inst: Instance) {
external_cortex_m::interrupt::free(|_| unsafe {
if LPUART2_TAKEN && inst.addr == INSTANCE.addr {
LPUART2_TAKEN = false;
} else {
panic!("Released a peripheral which was not taken");
}
});
}
#[cfg(not(feature = "nosync"))]
#[inline]
pub unsafe fn steal() -> Instance {
LPUART2_TAKEN = true;
INSTANCE
}
}
pub const LPUART2: *const RegisterBlock = 0x40188000 as *const _;
pub mod LPUART3 {
use super::ResetValues;
#[cfg(not(feature = "nosync"))]
use super::Instance;
#[cfg(not(feature = "nosync"))]
const INSTANCE: Instance = Instance {
addr: 0x4018c000,
_marker: ::core::marker::PhantomData,
};
pub const reset: ResetValues = ResetValues {
VERID: 0x04010003,
PARAM: 0x00000202,
GLOBAL: 0x00000000,
PINCFG: 0x00000000,
BAUD: 0x0F000004,
STAT: 0x00C00000,
CTRL: 0x00000000,
DATA: 0x00001000,
MATCH: 0x00000000,
MODIR: 0x00000000,
FIFO: 0x00C00011,
WATER: 0x00000000,
};
#[cfg(not(feature = "nosync"))]
#[allow(renamed_and_removed_lints)]
#[allow(private_no_mangle_statics)]
#[no_mangle]
static mut LPUART3_TAKEN: bool = false;
#[cfg(not(feature = "nosync"))]
#[inline]
pub fn take() -> Option<Instance> {
external_cortex_m::interrupt::free(|_| unsafe {
if LPUART3_TAKEN {
None
} else {
LPUART3_TAKEN = true;
Some(INSTANCE)
}
})
}
#[cfg(not(feature = "nosync"))]
#[inline]
pub fn release(inst: Instance) {
external_cortex_m::interrupt::free(|_| unsafe {
if LPUART3_TAKEN && inst.addr == INSTANCE.addr {
LPUART3_TAKEN = false;
} else {
panic!("Released a peripheral which was not taken");
}
});
}
#[cfg(not(feature = "nosync"))]
#[inline]
pub unsafe fn steal() -> Instance {
LPUART3_TAKEN = true;
INSTANCE
}
}
pub const LPUART3: *const RegisterBlock = 0x4018c000 as *const _;
pub mod LPUART4 {
use super::ResetValues;
#[cfg(not(feature = "nosync"))]
use super::Instance;
#[cfg(not(feature = "nosync"))]
const INSTANCE: Instance = Instance {
addr: 0x40190000,
_marker: ::core::marker::PhantomData,
};
pub const reset: ResetValues = ResetValues {
VERID: 0x04010003,
PARAM: 0x00000202,
GLOBAL: 0x00000000,
PINCFG: 0x00000000,
BAUD: 0x0F000004,
STAT: 0x00C00000,
CTRL: 0x00000000,
DATA: 0x00001000,
MATCH: 0x00000000,
MODIR: 0x00000000,
FIFO: 0x00C00011,
WATER: 0x00000000,
};
#[cfg(not(feature = "nosync"))]
#[allow(renamed_and_removed_lints)]
#[allow(private_no_mangle_statics)]
#[no_mangle]
static mut LPUART4_TAKEN: bool = false;
#[cfg(not(feature = "nosync"))]
#[inline]
pub fn take() -> Option<Instance> {
external_cortex_m::interrupt::free(|_| unsafe {
if LPUART4_TAKEN {
None
} else {
LPUART4_TAKEN = true;
Some(INSTANCE)
}
})
}
#[cfg(not(feature = "nosync"))]
#[inline]
pub fn release(inst: Instance) {
external_cortex_m::interrupt::free(|_| unsafe {
if LPUART4_TAKEN && inst.addr == INSTANCE.addr {
LPUART4_TAKEN = false;
} else {
panic!("Released a peripheral which was not taken");
}
});
}
#[cfg(not(feature = "nosync"))]
#[inline]
pub unsafe fn steal() -> Instance {
LPUART4_TAKEN = true;
INSTANCE
}
}
pub const LPUART4: *const RegisterBlock = 0x40190000 as *const _;
pub mod LPUART5 {
use super::ResetValues;
#[cfg(not(feature = "nosync"))]
use super::Instance;
#[cfg(not(feature = "nosync"))]
const INSTANCE: Instance = Instance {
addr: 0x40194000,
_marker: ::core::marker::PhantomData,
};
pub const reset: ResetValues = ResetValues {
VERID: 0x04010003,
PARAM: 0x00000202,
GLOBAL: 0x00000000,
PINCFG: 0x00000000,
BAUD: 0x0F000004,
STAT: 0x00C00000,
CTRL: 0x00000000,
DATA: 0x00001000,
MATCH: 0x00000000,
MODIR: 0x00000000,
FIFO: 0x00C00011,
WATER: 0x00000000,
};
#[cfg(not(feature = "nosync"))]
#[allow(renamed_and_removed_lints)]
#[allow(private_no_mangle_statics)]
#[no_mangle]
static mut LPUART5_TAKEN: bool = false;
#[cfg(not(feature = "nosync"))]
#[inline]
pub fn take() -> Option<Instance> {
external_cortex_m::interrupt::free(|_| unsafe {
if LPUART5_TAKEN {
None
} else {
LPUART5_TAKEN = true;
Some(INSTANCE)
}
})
}
#[cfg(not(feature = "nosync"))]
#[inline]
pub fn release(inst: Instance) {
external_cortex_m::interrupt::free(|_| unsafe {
if LPUART5_TAKEN && inst.addr == INSTANCE.addr {
LPUART5_TAKEN = false;
} else {
panic!("Released a peripheral which was not taken");
}
});
}
#[cfg(not(feature = "nosync"))]
#[inline]
pub unsafe fn steal() -> Instance {
LPUART5_TAKEN = true;
INSTANCE
}
}
pub const LPUART5: *const RegisterBlock = 0x40194000 as *const _;
pub mod LPUART6 {
use super::ResetValues;
#[cfg(not(feature = "nosync"))]
use super::Instance;
#[cfg(not(feature = "nosync"))]
const INSTANCE: Instance = Instance {
addr: 0x40198000,
_marker: ::core::marker::PhantomData,
};
pub const reset: ResetValues = ResetValues {
VERID: 0x04010003,
PARAM: 0x00000202,
GLOBAL: 0x00000000,
PINCFG: 0x00000000,
BAUD: 0x0F000004,
STAT: 0x00C00000,
CTRL: 0x00000000,
DATA: 0x00001000,
MATCH: 0x00000000,
MODIR: 0x00000000,
FIFO: 0x00C00011,
WATER: 0x00000000,
};
#[cfg(not(feature = "nosync"))]
#[allow(renamed_and_removed_lints)]
#[allow(private_no_mangle_statics)]
#[no_mangle]
static mut LPUART6_TAKEN: bool = false;
#[cfg(not(feature = "nosync"))]
#[inline]
pub fn take() -> Option<Instance> {
external_cortex_m::interrupt::free(|_| unsafe {
if LPUART6_TAKEN {
None
} else {
LPUART6_TAKEN = true;
Some(INSTANCE)
}
})
}
#[cfg(not(feature = "nosync"))]
#[inline]
pub fn release(inst: Instance) {
external_cortex_m::interrupt::free(|_| unsafe {
if LPUART6_TAKEN && inst.addr == INSTANCE.addr {
LPUART6_TAKEN = false;
} else {
panic!("Released a peripheral which was not taken");
}
});
}
#[cfg(not(feature = "nosync"))]
#[inline]
pub unsafe fn steal() -> Instance {
LPUART6_TAKEN = true;
INSTANCE
}
}
pub const LPUART6: *const RegisterBlock = 0x40198000 as *const _;
pub mod LPUART7 {
use super::ResetValues;
#[cfg(not(feature = "nosync"))]
use super::Instance;
#[cfg(not(feature = "nosync"))]
const INSTANCE: Instance = Instance {
addr: 0x4019c000,
_marker: ::core::marker::PhantomData,
};
pub const reset: ResetValues = ResetValues {
VERID: 0x04010003,
PARAM: 0x00000202,
GLOBAL: 0x00000000,
PINCFG: 0x00000000,
BAUD: 0x0F000004,
STAT: 0x00C00000,
CTRL: 0x00000000,
DATA: 0x00001000,
MATCH: 0x00000000,
MODIR: 0x00000000,
FIFO: 0x00C00011,
WATER: 0x00000000,
};
#[cfg(not(feature = "nosync"))]
#[allow(renamed_and_removed_lints)]
#[allow(private_no_mangle_statics)]
#[no_mangle]
static mut LPUART7_TAKEN: bool = false;
#[cfg(not(feature = "nosync"))]
#[inline]
pub fn take() -> Option<Instance> {
external_cortex_m::interrupt::free(|_| unsafe {
if LPUART7_TAKEN {
None
} else {
LPUART7_TAKEN = true;
Some(INSTANCE)
}
})
}
#[cfg(not(feature = "nosync"))]
#[inline]
pub fn release(inst: Instance) {
external_cortex_m::interrupt::free(|_| unsafe {
if LPUART7_TAKEN && inst.addr == INSTANCE.addr {
LPUART7_TAKEN = false;
} else {
panic!("Released a peripheral which was not taken");
}
});
}
#[cfg(not(feature = "nosync"))]
#[inline]
pub unsafe fn steal() -> Instance {
LPUART7_TAKEN = true;
INSTANCE
}
}
pub const LPUART7: *const RegisterBlock = 0x4019c000 as *const _;
pub mod LPUART8 {
use super::ResetValues;
#[cfg(not(feature = "nosync"))]
use super::Instance;
#[cfg(not(feature = "nosync"))]
const INSTANCE: Instance = Instance {
addr: 0x401a0000,
_marker: ::core::marker::PhantomData,
};
pub const reset: ResetValues = ResetValues {
VERID: 0x04010003,
PARAM: 0x00000202,
GLOBAL: 0x00000000,
PINCFG: 0x00000000,
BAUD: 0x0F000004,
STAT: 0x00C00000,
CTRL: 0x00000000,
DATA: 0x00001000,
MATCH: 0x00000000,
MODIR: 0x00000000,
FIFO: 0x00C00011,
WATER: 0x00000000,
};
#[cfg(not(feature = "nosync"))]
#[allow(renamed_and_removed_lints)]
#[allow(private_no_mangle_statics)]
#[no_mangle]
static mut LPUART8_TAKEN: bool = false;
#[cfg(not(feature = "nosync"))]
#[inline]
pub fn take() -> Option<Instance> {
external_cortex_m::interrupt::free(|_| unsafe {
if LPUART8_TAKEN {
None
} else {
LPUART8_TAKEN = true;
Some(INSTANCE)
}
})
}
#[cfg(not(feature = "nosync"))]
#[inline]
pub fn release(inst: Instance) {
external_cortex_m::interrupt::free(|_| unsafe {
if LPUART8_TAKEN && inst.addr == INSTANCE.addr {
LPUART8_TAKEN = false;
} else {
panic!("Released a peripheral which was not taken");
}
});
}
#[cfg(not(feature = "nosync"))]
#[inline]
pub unsafe fn steal() -> Instance {
LPUART8_TAKEN = true;
INSTANCE
}
}
pub const LPUART8: *const RegisterBlock = 0x401a0000 as *const _;