2017-09-23 17:54:02 +00:00
# ! [ cfg_attr ( feature = " rt " , feature ( global_asm ) ) ] # ! [ cfg_attr ( feature = " rt " , feature ( macro_reexport ) ) ] # ! [ cfg_attr ( feature = " rt " , feature ( used ) ) ] # ! [ doc = " Peripheral access API for S32K144 microcontrollers (generated using svd2rust v0.11.4) \n \n You can find an overview of the API [here]. \n \n [here]: https://docs.rs/svd2rust/0.11.4/svd2rust/#peripheral-api " ] # ! [ deny ( missing_docs ) ] # ! [ deny ( warnings ) ] # ! [ allow ( non_camel_case_types ) ] # ! [ feature ( const_fn ) ] # ! [ no_std ] extern crate cortex_m ;
2017-07-08 14:23:28 +00:00
#[ macro_reexport(default_handler, exception) ]
#[ cfg(feature = " rt " ) ]
2017-07-08 14:09:24 +00:00
extern crate cortex_m_rt ;
extern crate bare_metal ;
2017-06-11 10:39:47 +00:00
extern crate vcell ;
2017-05-24 13:43:43 +00:00
use core ::ops ::Deref ;
2017-07-08 14:09:24 +00:00
use bare_metal ::Peripheral ;
2017-07-08 14:23:28 +00:00
#[ doc = r " Number available in the NVIC for configuring priority " ]
2017-07-08 14:09:24 +00:00
pub const NVIC_PRIO_BITS : u8 = 4 ;
pub use interrupt ::Interrupt ;
2017-07-08 14:23:28 +00:00
#[ doc(hidden) ]
2017-09-23 18:09:53 +00:00
pub mod interrupt ;
2017-05-24 13:43:43 +00:00
pub use cortex_m ::peripheral ::CPUID ;
pub use cortex_m ::peripheral ::DCB ;
pub use cortex_m ::peripheral ::DWT ;
pub use cortex_m ::peripheral ::FPB ;
pub use cortex_m ::peripheral ::FPU ;
pub use cortex_m ::peripheral ::ITM ;
pub use cortex_m ::peripheral ::MPU ;
pub use cortex_m ::peripheral ::NVIC ;
pub use cortex_m ::peripheral ::SCB ;
pub use cortex_m ::peripheral ::SYST ;
pub use cortex_m ::peripheral ::TPIU ;
2017-07-08 14:23:28 +00:00
#[ doc = " CSE_PRAM " ]
2017-09-23 18:09:53 +00:00
pub const CSE_PRAM : Peripheral < CSE_PRAM > = unsafe { Peripheral ::new ( 335548416 ) } ;
2017-07-08 14:23:28 +00:00
#[ doc = " CSE_PRAM " ]
2017-09-23 18:09:53 +00:00
pub mod cse_pram ;
#[ doc = " CSE_PRAM " ]
pub struct CSE_PRAM {
register_block : cse_pram ::RegisterBlock ,
}
impl Deref for CSE_PRAM {
type Target = cse_pram ::RegisterBlock ;
fn deref ( & self ) -> & cse_pram ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " AIPS-Lite Bridge " ]
pub const AIPS : Peripheral < AIPS > = unsafe { Peripheral ::new ( 1073741824 ) } ;
#[ doc = " AIPS-Lite Bridge " ]
pub mod aips ;
#[ doc = " AIPS-Lite Bridge " ]
pub struct AIPS {
register_block : aips ::RegisterBlock ,
}
impl Deref for AIPS {
type Target = aips ::RegisterBlock ;
fn deref ( & self ) -> & aips ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " MSCM " ]
pub const MSCM : Peripheral < MSCM > = unsafe { Peripheral ::new ( 1073745920 ) } ;
#[ doc = " MSCM " ]
pub mod mscm ;
#[ doc = " MSCM " ]
pub struct MSCM {
register_block : mscm ::RegisterBlock ,
}
impl Deref for MSCM {
type Target = mscm ::RegisterBlock ;
fn deref ( & self ) -> & mscm ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " Enhanced Direct Memory Access " ]
pub const DMA : Peripheral < DMA > = unsafe { Peripheral ::new ( 1073774592 ) } ;
#[ doc = " Enhanced Direct Memory Access " ]
pub mod dma ;
#[ doc = " Enhanced Direct Memory Access " ]
pub struct DMA {
register_block : dma ::RegisterBlock ,
}
impl Deref for DMA {
type Target = dma ::RegisterBlock ;
fn deref ( & self ) -> & dma ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " ERM " ]
pub const ERM : Peripheral < ERM > = unsafe { Peripheral ::new ( 1073840128 ) } ;
#[ doc = " ERM " ]
pub mod erm ;
#[ doc = " ERM " ]
pub struct ERM {
register_block : erm ::RegisterBlock ,
}
impl Deref for ERM {
type Target = erm ::RegisterBlock ;
fn deref ( & self ) -> & erm ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " Error Injection Module " ]
pub const EIM : Peripheral < EIM > = unsafe { Peripheral ::new ( 1073844224 ) } ;
#[ doc = " Error Injection Module " ]
pub mod eim ;
#[ doc = " Error Injection Module " ]
pub struct EIM {
register_block : eim ::RegisterBlock ,
}
impl Deref for EIM {
type Target = eim ::RegisterBlock ;
fn deref ( & self ) -> & eim ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " FTFC " ]
pub const FTFC : Peripheral < FTFC > = unsafe { Peripheral ::new ( 1073872896 ) } ;
#[ doc = " FTFC " ]
pub mod ftfc ;
#[ doc = " FTFC " ]
pub struct FTFC {
register_block : ftfc ::RegisterBlock ,
}
impl Deref for FTFC {
type Target = ftfc ::RegisterBlock ;
fn deref ( & self ) -> & ftfc ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " DMA channel multiplexor " ]
pub const DMAMUX : Peripheral < DMAMUX > = unsafe { Peripheral ::new ( 1073876992 ) } ;
#[ doc = " DMA channel multiplexor " ]
pub mod dmamux ;
#[ doc = " DMA channel multiplexor " ]
pub struct DMAMUX {
register_block : dmamux ::RegisterBlock ,
}
impl Deref for DMAMUX {
type Target = dmamux ::RegisterBlock ;
fn deref ( & self ) -> & dmamux ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " Flex Controller Area Network module " ]
pub const CAN0 : Peripheral < CAN0 > = unsafe { Peripheral ::new ( 1073889280 ) } ;
#[ doc = " Flex Controller Area Network module " ]
pub mod can0 ;
#[ doc = " Flex Controller Area Network module " ]
pub struct CAN0 {
register_block : can0 ::RegisterBlock ,
}
impl Deref for CAN0 {
type Target = can0 ::RegisterBlock ;
fn deref ( & self ) -> & can0 ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " Flex Controller Area Network module " ]
pub const CAN1 : Peripheral < CAN1 > = unsafe { Peripheral ::new ( 1073893376 ) } ;
#[ doc = " Flex Controller Area Network module " ]
pub mod can1 ;
#[ doc = " Flex Controller Area Network module " ]
pub struct CAN1 {
register_block : can1 ::RegisterBlock ,
}
impl Deref for CAN1 {
type Target = can1 ::RegisterBlock ;
fn deref ( & self ) -> & can1 ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " Flex Controller Area Network module " ]
pub const CAN2 : Peripheral < CAN2 > = unsafe { Peripheral ::new ( 1073917952 ) } ;
#[ doc = " Flex Controller Area Network module " ]
pub mod can2 ;
#[ doc = " Flex Controller Area Network module " ]
pub struct CAN2 {
register_block : can2 ::RegisterBlock ,
}
impl Deref for CAN2 {
type Target = can2 ::RegisterBlock ;
fn deref ( & self ) -> & can2 ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " FlexTimer Module " ]
pub const FTM0 : Peripheral < FTM0 > = unsafe { Peripheral ::new ( 1073971200 ) } ;
#[ doc = " FlexTimer Module " ]
pub mod ftm0 ;
#[ doc = " FlexTimer Module " ]
pub struct FTM0 {
register_block : ftm0 ::RegisterBlock ,
}
impl Deref for FTM0 {
type Target = ftm0 ::RegisterBlock ;
fn deref ( & self ) -> & ftm0 ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " FlexTimer Module " ]
pub const FTM1 : Peripheral < FTM1 > = unsafe { Peripheral ::new ( 1073975296 ) } ;
#[ doc = " FlexTimer Module " ]
pub mod ftm1 ;
#[ doc = " FlexTimer Module " ]
pub struct FTM1 {
register_block : ftm1 ::RegisterBlock ,
}
impl Deref for FTM1 {
type Target = ftm1 ::RegisterBlock ;
fn deref ( & self ) -> & ftm1 ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " FlexTimer Module " ]
pub const FTM2 : Peripheral < FTM2 > = unsafe { Peripheral ::new ( 1073979392 ) } ;
#[ doc = " FlexTimer Module " ]
pub mod ftm2 ;
#[ doc = " FlexTimer Module " ]
pub struct FTM2 {
register_block : ftm2 ::RegisterBlock ,
}
impl Deref for FTM2 {
type Target = ftm2 ::RegisterBlock ;
fn deref ( & self ) -> & ftm2 ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " FlexTimer Module " ]
pub const FTM3 : Peripheral < FTM3 > = unsafe { Peripheral ::new ( 1073897472 ) } ;
#[ doc = " FlexTimer Module " ]
pub mod ftm3 ;
#[ doc = " FlexTimer Module " ]
pub struct FTM3 {
register_block : ftm3 ::RegisterBlock ,
}
impl Deref for FTM3 {
type Target = ftm3 ::RegisterBlock ;
fn deref ( & self ) -> & ftm3 ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " Analog-to-Digital Converter " ]
pub const ADC0 : Peripheral < ADC0 > = unsafe { Peripheral ::new ( 1073983488 ) } ;
#[ doc = " Analog-to-Digital Converter " ]
pub mod adc0 ;
#[ doc = " Analog-to-Digital Converter " ]
pub struct ADC0 {
register_block : adc0 ::RegisterBlock ,
}
impl Deref for ADC0 {
type Target = adc0 ::RegisterBlock ;
fn deref ( & self ) -> & adc0 ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " Analog-to-Digital Converter " ]
pub const ADC1 : Peripheral < ADC1 > = unsafe { Peripheral ::new ( 1073901568 ) } ;
#[ doc = " Analog-to-Digital Converter " ]
pub mod adc1 ;
#[ doc = " Analog-to-Digital Converter " ]
pub struct ADC1 {
register_block : adc1 ::RegisterBlock ,
}
impl Deref for ADC1 {
type Target = adc1 ::RegisterBlock ;
fn deref ( & self ) -> & adc1 ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " The LPSPI Memory Map/Register Definition can be found here. " ]
pub const LPSPI0 : Peripheral < LPSPI0 > = unsafe { Peripheral ::new ( 1073922048 ) } ;
#[ doc = " The LPSPI Memory Map/Register Definition can be found here. " ]
pub mod lpspi0 ;
#[ doc = " The LPSPI Memory Map/Register Definition can be found here. " ]
pub struct LPSPI0 {
register_block : lpspi0 ::RegisterBlock ,
}
impl Deref for LPSPI0 {
type Target = lpspi0 ::RegisterBlock ;
fn deref ( & self ) -> & lpspi0 ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " The LPSPI Memory Map/Register Definition can be found here. " ]
pub const LPSPI1 : Peripheral < LPSPI1 > = unsafe { Peripheral ::new ( 1073926144 ) } ;
#[ doc = " The LPSPI Memory Map/Register Definition can be found here. " ]
pub mod lpspi1 ;
#[ doc = " The LPSPI Memory Map/Register Definition can be found here. " ]
pub struct LPSPI1 {
register_block : lpspi1 ::RegisterBlock ,
}
impl Deref for LPSPI1 {
type Target = lpspi1 ::RegisterBlock ;
fn deref ( & self ) -> & lpspi1 ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " The LPSPI Memory Map/Register Definition can be found here. " ]
pub const LPSPI2 : Peripheral < LPSPI2 > = unsafe { Peripheral ::new ( 1073930240 ) } ;
#[ doc = " The LPSPI Memory Map/Register Definition can be found here. " ]
pub mod lpspi2 ;
#[ doc = " The LPSPI Memory Map/Register Definition can be found here. " ]
pub struct LPSPI2 {
register_block : lpspi2 ::RegisterBlock ,
}
impl Deref for LPSPI2 {
type Target = lpspi2 ::RegisterBlock ;
fn deref ( & self ) -> & lpspi2 ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " Programmable Delay Block " ]
pub const PDB0 : Peripheral < PDB0 > = unsafe { Peripheral ::new ( 1073963008 ) } ;
#[ doc = " Programmable Delay Block " ]
pub mod pdb0 ;
#[ doc = " Programmable Delay Block " ]
pub struct PDB0 {
register_block : pdb0 ::RegisterBlock ,
}
impl Deref for PDB0 {
type Target = pdb0 ::RegisterBlock ;
fn deref ( & self ) -> & pdb0 ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
}
2017-09-23 18:09:53 +00:00
#[ doc = " Programmable Delay Block " ]
pub const PDB1 : Peripheral < PDB1 > = unsafe { Peripheral ::new ( 1073942528 ) } ;
#[ doc = " Programmable Delay Block " ]
pub mod pdb1 ;
#[ doc = " Programmable Delay Block " ]
pub struct PDB1 {
register_block : pdb1 ::RegisterBlock ,
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
impl Deref for PDB1 {
type Target = pdb1 ::RegisterBlock ;
fn deref ( & self ) -> & pdb1 ::RegisterBlock {
2017-05-24 13:43:43 +00:00
& self . register_block
}
}
2017-09-23 18:09:53 +00:00
#[ doc = " Cyclic Redundancy Check " ]
pub const CRC : Peripheral < CRC > = unsafe { Peripheral ::new ( 1073946624 ) } ;
#[ doc = " Cyclic Redundancy Check " ]
pub mod crc ;
#[ doc = " Cyclic Redundancy Check " ]
pub struct CRC {
register_block : crc ::RegisterBlock ,
}
impl Deref for CRC {
type Target = crc ::RegisterBlock ;
fn deref ( & self ) -> & crc ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " Low Power Periodic Interrupt Timer (LPIT) " ]
pub const LPIT0 : Peripheral < LPIT0 > = unsafe { Peripheral ::new ( 1073967104 ) } ;
#[ doc = " Low Power Periodic Interrupt Timer (LPIT) " ]
pub mod lpit0 ;
#[ doc = " Low Power Periodic Interrupt Timer (LPIT) " ]
pub struct LPIT0 {
register_block : lpit0 ::RegisterBlock ,
}
impl Deref for LPIT0 {
type Target = lpit0 ::RegisterBlock ;
fn deref ( & self ) -> & lpit0 ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " Secure Real Time Clock " ]
pub const RTC : Peripheral < RTC > = unsafe { Peripheral ::new ( 1073991680 ) } ;
#[ doc = " Secure Real Time Clock " ]
pub mod rtc ;
#[ doc = " Secure Real Time Clock " ]
pub struct RTC {
register_block : rtc ::RegisterBlock ,
}
impl Deref for RTC {
type Target = rtc ::RegisterBlock ;
fn deref ( & self ) -> & rtc ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " Low Power Timer " ]
pub const LPTMR0 : Peripheral < LPTMR0 > = unsafe { Peripheral ::new ( 1074003968 ) } ;
#[ doc = " Low Power Timer " ]
pub mod lptmr0 ;
#[ doc = " Low Power Timer " ]
pub struct LPTMR0 {
register_block : lptmr0 ::RegisterBlock ,
}
impl Deref for LPTMR0 {
type Target = lptmr0 ::RegisterBlock ;
fn deref ( & self ) -> & lptmr0 ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " System Integration Module " ]
pub const SIM : Peripheral < SIM > = unsafe { Peripheral ::new ( 1074036736 ) } ;
#[ doc = " System Integration Module " ]
pub mod sim ;
#[ doc = " System Integration Module " ]
pub struct SIM {
register_block : sim ::RegisterBlock ,
}
impl Deref for SIM {
type Target = sim ::RegisterBlock ;
fn deref ( & self ) -> & sim ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " Pin Control and Interrupts " ]
pub const PORTA : Peripheral < PORTA > = unsafe { Peripheral ::new ( 1074040832 ) } ;
#[ doc = " Pin Control and Interrupts " ]
pub mod porta ;
#[ doc = " Pin Control and Interrupts " ]
pub struct PORTA {
register_block : porta ::RegisterBlock ,
}
impl Deref for PORTA {
type Target = porta ::RegisterBlock ;
fn deref ( & self ) -> & porta ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " Pin Control and Interrupts " ]
pub const PORTB : Peripheral < PORTB > = unsafe { Peripheral ::new ( 1074044928 ) } ;
#[ doc = " Pin Control and Interrupts " ]
pub mod portb ;
#[ doc = " Pin Control and Interrupts " ]
pub struct PORTB {
register_block : portb ::RegisterBlock ,
}
impl Deref for PORTB {
type Target = portb ::RegisterBlock ;
fn deref ( & self ) -> & portb ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " Pin Control and Interrupts " ]
pub const PORTC : Peripheral < PORTC > = unsafe { Peripheral ::new ( 1074049024 ) } ;
#[ doc = " Pin Control and Interrupts " ]
pub mod portc ;
#[ doc = " Pin Control and Interrupts " ]
pub struct PORTC {
register_block : portc ::RegisterBlock ,
}
impl Deref for PORTC {
type Target = portc ::RegisterBlock ;
fn deref ( & self ) -> & portc ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " Pin Control and Interrupts " ]
pub const PORTD : Peripheral < PORTD > = unsafe { Peripheral ::new ( 1074053120 ) } ;
#[ doc = " Pin Control and Interrupts " ]
pub mod portd ;
#[ doc = " Pin Control and Interrupts " ]
pub struct PORTD {
register_block : portd ::RegisterBlock ,
}
impl Deref for PORTD {
type Target = portd ::RegisterBlock ;
fn deref ( & self ) -> & portd ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " Pin Control and Interrupts " ]
pub const PORTE : Peripheral < PORTE > = unsafe { Peripheral ::new ( 1074057216 ) } ;
#[ doc = " Pin Control and Interrupts " ]
pub mod porte ;
#[ doc = " Pin Control and Interrupts " ]
pub struct PORTE {
register_block : porte ::RegisterBlock ,
}
impl Deref for PORTE {
type Target = porte ::RegisterBlock ;
fn deref ( & self ) -> & porte ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " Watchdog timer " ]
pub const WDOG : Peripheral < WDOG > = unsafe { Peripheral ::new ( 1074077696 ) } ;
#[ doc = " Watchdog timer " ]
pub mod wdog ;
#[ doc = " Watchdog timer " ]
pub struct WDOG {
register_block : wdog ::RegisterBlock ,
}
impl Deref for WDOG {
type Target = wdog ::RegisterBlock ;
fn deref ( & self ) -> & wdog ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " The FLEXIO Memory Map/Register Definition can be found here. " ]
pub const FLEXIO : Peripheral < FLEXIO > = unsafe { Peripheral ::new ( 1074110464 ) } ;
#[ doc = " The FLEXIO Memory Map/Register Definition can be found here. " ]
pub mod flexio ;
#[ doc = " The FLEXIO Memory Map/Register Definition can be found here. " ]
pub struct FLEXIO {
register_block : flexio ::RegisterBlock ,
}
impl Deref for FLEXIO {
type Target = flexio ::RegisterBlock ;
fn deref ( & self ) -> & flexio ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " External Watchdog Monitor " ]
pub const EWM : Peripheral < EWM > = unsafe { Peripheral ::new ( 1074139136 ) } ;
#[ doc = " External Watchdog Monitor " ]
pub mod ewm ;
#[ doc = " External Watchdog Monitor " ]
pub struct EWM {
register_block : ewm ::RegisterBlock ,
}
impl Deref for EWM {
type Target = ewm ::RegisterBlock ;
fn deref ( & self ) -> & ewm ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " TRGMUX " ]
pub const TRGMUX : Peripheral < TRGMUX > = unsafe { Peripheral ::new ( 1074147328 ) } ;
#[ doc = " TRGMUX " ]
pub mod trgmux ;
#[ doc = " TRGMUX " ]
pub struct TRGMUX {
register_block : trgmux ::RegisterBlock ,
}
impl Deref for TRGMUX {
type Target = trgmux ::RegisterBlock ;
fn deref ( & self ) -> & trgmux ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " System Clock Generator " ]
pub const SCG : Peripheral < SCG > = unsafe { Peripheral ::new ( 1074151424 ) } ;
#[ doc = " System Clock Generator " ]
pub mod scg ;
#[ doc = " System Clock Generator " ]
pub struct SCG {
register_block : scg ::RegisterBlock ,
}
impl Deref for SCG {
type Target = scg ::RegisterBlock ;
fn deref ( & self ) -> & scg ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
2017-09-23 18:09:53 +00:00
}
#[ doc = " PCC " ]
pub const PCC : Peripheral < PCC > = unsafe { Peripheral ::new ( 1074155520 ) } ;
#[ doc = " PCC " ]
pub mod pcc ;
#[ doc = " PCC " ]
pub struct PCC {
register_block : pcc ::RegisterBlock ,
}
impl Deref for PCC {
type Target = pcc ::RegisterBlock ;
fn deref ( & self ) -> & pcc ::RegisterBlock {
& self . register_block
2017-05-24 13:43:43 +00:00
}
}
2017-07-08 14:23:28 +00:00
#[ doc = " The LPI2C Memory Map/Register Definition can be found here. " ]
2017-09-23 18:09:53 +00:00
pub const LPI2C0 : Peripheral < LPI2C0 > = unsafe { Peripheral ::new ( 1074159616 ) } ;
#[ doc = " The LPI2C Memory Map/Register Definition can be found here. " ]
pub mod lpi2c0 ;
#[ doc = " The LPI2C Memory Map/Register Definition can be found here. " ]
2017-06-11 10:39:47 +00:00
pub struct LPI2C0 {
2017-05-24 13:43:43 +00:00
register_block : lpi2c0 ::RegisterBlock ,
}
2017-06-11 10:39:47 +00:00
impl Deref for LPI2C0 {
2017-05-24 13:43:43 +00:00
type Target = lpi2c0 ::RegisterBlock ;
fn deref ( & self ) -> & lpi2c0 ::RegisterBlock {
& self . register_block
}
}
2017-07-08 14:23:28 +00:00
#[ doc = " Universal Asynchronous Receiver/Transmitter " ]
2017-06-11 10:39:47 +00:00
pub const LPUART0 : Peripheral < LPUART0 > = unsafe { Peripheral ::new ( 1074176000 ) } ;
2017-07-08 14:23:28 +00:00
#[ doc = " Universal Asynchronous Receiver/Transmitter " ]
2017-09-23 18:09:53 +00:00
pub mod lpuart0 ;
2017-07-08 14:23:28 +00:00
#[ doc = " Universal Asynchronous Receiver/Transmitter " ]
2017-06-11 10:39:47 +00:00
pub struct LPUART0 {
2017-05-24 13:43:43 +00:00
register_block : lpuart0 ::RegisterBlock ,
}
2017-06-11 10:39:47 +00:00
impl Deref for LPUART0 {
2017-05-24 13:43:43 +00:00
type Target = lpuart0 ::RegisterBlock ;
fn deref ( & self ) -> & lpuart0 ::RegisterBlock {
& self . register_block
}
}
2017-07-08 14:23:28 +00:00
#[ doc = " Universal Asynchronous Receiver/Transmitter " ]
2017-06-11 10:39:47 +00:00
pub const LPUART1 : Peripheral < LPUART1 > = unsafe { Peripheral ::new ( 1074180096 ) } ;
2017-07-08 14:23:28 +00:00
#[ doc = " Universal Asynchronous Receiver/Transmitter " ]
2017-09-23 18:09:53 +00:00
pub mod lpuart1 ;
2017-07-08 14:23:28 +00:00
#[ doc = " Universal Asynchronous Receiver/Transmitter " ]
2017-06-11 10:39:47 +00:00
pub struct LPUART1 {
2017-05-24 13:43:43 +00:00
register_block : lpuart1 ::RegisterBlock ,
}
2017-06-11 10:39:47 +00:00
impl Deref for LPUART1 {
2017-05-24 13:43:43 +00:00
type Target = lpuart1 ::RegisterBlock ;
fn deref ( & self ) -> & lpuart1 ::RegisterBlock {
& self . register_block
}
}
2017-07-08 14:23:28 +00:00
#[ doc = " Universal Asynchronous Receiver/Transmitter " ]
2017-06-11 10:39:47 +00:00
pub const LPUART2 : Peripheral < LPUART2 > = unsafe { Peripheral ::new ( 1074184192 ) } ;
2017-07-08 14:23:28 +00:00
#[ doc = " Universal Asynchronous Receiver/Transmitter " ]
2017-09-23 18:09:53 +00:00
pub mod lpuart2 ;
2017-07-08 14:23:28 +00:00
#[ doc = " Universal Asynchronous Receiver/Transmitter " ]
2017-06-11 10:39:47 +00:00
pub struct LPUART2 {
2017-05-24 13:43:43 +00:00
register_block : lpuart2 ::RegisterBlock ,
}
2017-06-11 10:39:47 +00:00
impl Deref for LPUART2 {
2017-05-24 13:43:43 +00:00
type Target = lpuart2 ::RegisterBlock ;
fn deref ( & self ) -> & lpuart2 ::RegisterBlock {
& self . register_block
}
}
2017-07-08 14:23:28 +00:00
#[ doc = " High-Speed Comparator (CMP), Voltage Reference (VREF) Digital-to-Analog Converter (DAC), and Analog Mux (ANMUX) " ]
2017-06-11 10:39:47 +00:00
pub const CMP0 : Peripheral < CMP0 > = unsafe { Peripheral ::new ( 1074212864 ) } ;
2017-07-08 14:23:28 +00:00
#[ doc = " High-Speed Comparator (CMP), Voltage Reference (VREF) Digital-to-Analog Converter (DAC), and Analog Mux (ANMUX) " ]
2017-09-23 18:09:53 +00:00
pub mod cmp0 ;
2017-07-08 14:23:28 +00:00
#[ doc = " High-Speed Comparator (CMP), Voltage Reference (VREF) Digital-to-Analog Converter (DAC), and Analog Mux (ANMUX) " ]
2017-06-11 10:39:47 +00:00
pub struct CMP0 {
2017-05-24 13:43:43 +00:00
register_block : cmp0 ::RegisterBlock ,
}
2017-06-11 10:39:47 +00:00
impl Deref for CMP0 {
2017-05-24 13:43:43 +00:00
type Target = cmp0 ::RegisterBlock ;
fn deref ( & self ) -> & cmp0 ::RegisterBlock {
& self . register_block
}
}
2017-07-08 14:23:28 +00:00
#[ doc = " PMC " ]
2017-06-11 10:39:47 +00:00
pub const PMC : Peripheral < PMC > = unsafe { Peripheral ::new ( 1074253824 ) } ;
2017-07-08 14:23:28 +00:00
#[ doc = " PMC " ]
2017-09-23 18:09:53 +00:00
pub mod pmc ;
2017-07-08 14:23:28 +00:00
#[ doc = " PMC " ]
2017-06-11 10:39:47 +00:00
pub struct PMC {
2017-05-24 13:43:43 +00:00
register_block : pmc ::RegisterBlock ,
}
2017-06-11 10:39:47 +00:00
impl Deref for PMC {
2017-05-24 13:43:43 +00:00
type Target = pmc ::RegisterBlock ;
fn deref ( & self ) -> & pmc ::RegisterBlock {
& self . register_block
}
}
2017-07-08 14:23:28 +00:00
#[ doc = " System Mode Controller " ]
2017-06-11 10:39:47 +00:00
pub const SMC : Peripheral < SMC > = unsafe { Peripheral ::new ( 1074257920 ) } ;
2017-07-08 14:23:28 +00:00
#[ doc = " System Mode Controller " ]
2017-09-23 18:09:53 +00:00
pub mod smc ;
2017-07-08 14:23:28 +00:00
#[ doc = " System Mode Controller " ]
2017-06-11 10:39:47 +00:00
pub struct SMC {
2017-05-24 13:43:43 +00:00
register_block : smc ::RegisterBlock ,
}
2017-06-11 10:39:47 +00:00
impl Deref for SMC {
2017-05-24 13:43:43 +00:00
type Target = smc ::RegisterBlock ;
fn deref ( & self ) -> & smc ::RegisterBlock {
& self . register_block
}
}
2017-07-08 14:23:28 +00:00
#[ doc = " Reset Control Module " ]
2017-06-11 10:39:47 +00:00
pub const RCM : Peripheral < RCM > = unsafe { Peripheral ::new ( 1074262016 ) } ;
2017-07-08 14:23:28 +00:00
#[ doc = " Reset Control Module " ]
2017-09-23 18:09:53 +00:00
pub mod rcm ;
2017-07-08 14:23:28 +00:00
#[ doc = " Reset Control Module " ]
2017-06-11 10:39:47 +00:00
pub struct RCM {
2017-05-24 13:43:43 +00:00
register_block : rcm ::RegisterBlock ,
}
2017-06-11 10:39:47 +00:00
impl Deref for RCM {
2017-05-24 13:43:43 +00:00
type Target = rcm ::RegisterBlock ;
fn deref ( & self ) -> & rcm ::RegisterBlock {
& self . register_block
}
}
2017-07-08 14:23:28 +00:00
#[ doc = " General Purpose Input/Output " ]
2017-06-11 10:39:47 +00:00
pub const PTA : Peripheral < PTA > = unsafe { Peripheral ::new ( 1074786304 ) } ;
2017-07-08 14:23:28 +00:00
#[ doc = " General Purpose Input/Output " ]
2017-09-23 18:09:53 +00:00
pub mod pta ;
2017-07-08 14:23:28 +00:00
#[ doc = " General Purpose Input/Output " ]
2017-06-11 10:39:47 +00:00
pub struct PTA {
2017-05-24 13:43:43 +00:00
register_block : pta ::RegisterBlock ,
}
2017-06-11 10:39:47 +00:00
impl Deref for PTA {
2017-05-24 13:43:43 +00:00
type Target = pta ::RegisterBlock ;
fn deref ( & self ) -> & pta ::RegisterBlock {
& self . register_block
}
}
2017-07-08 14:23:28 +00:00
#[ doc = " General Purpose Input/Output " ]
2017-06-11 10:39:47 +00:00
pub const PTB : Peripheral < PTB > = unsafe { Peripheral ::new ( 1074786368 ) } ;
2017-07-08 14:23:28 +00:00
#[ doc = " General Purpose Input/Output " ]
2017-09-23 18:09:53 +00:00
pub mod ptb ;
2017-07-08 14:23:28 +00:00
#[ doc = " General Purpose Input/Output " ]
2017-06-11 10:39:47 +00:00
pub struct PTB {
2017-05-24 13:43:43 +00:00
register_block : ptb ::RegisterBlock ,
}
2017-06-11 10:39:47 +00:00
impl Deref for PTB {
2017-05-24 13:43:43 +00:00
type Target = ptb ::RegisterBlock ;
fn deref ( & self ) -> & ptb ::RegisterBlock {
& self . register_block
}
}
2017-07-08 14:23:28 +00:00
#[ doc = " General Purpose Input/Output " ]
2017-06-11 10:39:47 +00:00
pub const PTC : Peripheral < PTC > = unsafe { Peripheral ::new ( 1074786432 ) } ;
2017-07-08 14:23:28 +00:00
#[ doc = " General Purpose Input/Output " ]
2017-09-23 18:09:53 +00:00
pub mod ptc ;
2017-07-08 14:23:28 +00:00
#[ doc = " General Purpose Input/Output " ]
2017-06-11 10:39:47 +00:00
pub struct PTC {
2017-05-24 13:43:43 +00:00
register_block : ptc ::RegisterBlock ,
}
2017-06-11 10:39:47 +00:00
impl Deref for PTC {
2017-05-24 13:43:43 +00:00
type Target = ptc ::RegisterBlock ;
fn deref ( & self ) -> & ptc ::RegisterBlock {
& self . register_block
}
}
2017-07-08 14:23:28 +00:00
#[ doc = " General Purpose Input/Output " ]
2017-06-11 10:39:47 +00:00
pub const PTD : Peripheral < PTD > = unsafe { Peripheral ::new ( 1074786496 ) } ;
2017-07-08 14:23:28 +00:00
#[ doc = " General Purpose Input/Output " ]
2017-09-23 18:09:53 +00:00
pub mod ptd ;
2017-07-08 14:23:28 +00:00
#[ doc = " General Purpose Input/Output " ]
2017-06-11 10:39:47 +00:00
pub struct PTD {
2017-05-24 13:43:43 +00:00
register_block : ptd ::RegisterBlock ,
}
2017-06-11 10:39:47 +00:00
impl Deref for PTD {
2017-05-24 13:43:43 +00:00
type Target = ptd ::RegisterBlock ;
fn deref ( & self ) -> & ptd ::RegisterBlock {
& self . register_block
}
}
2017-07-08 14:23:28 +00:00
#[ doc = " General Purpose Input/Output " ]
2017-06-11 10:39:47 +00:00
pub const PTE : Peripheral < PTE > = unsafe { Peripheral ::new ( 1074786560 ) } ;
2017-07-08 14:23:28 +00:00
#[ doc = " General Purpose Input/Output " ]
2017-09-23 18:09:53 +00:00
pub mod pte ;
2017-07-08 14:23:28 +00:00
#[ doc = " General Purpose Input/Output " ]
2017-06-11 10:39:47 +00:00
pub struct PTE {
2017-05-24 13:43:43 +00:00
register_block : pte ::RegisterBlock ,
}
2017-06-11 10:39:47 +00:00
impl Deref for PTE {
2017-05-24 13:43:43 +00:00
type Target = pte ::RegisterBlock ;
fn deref ( & self ) -> & pte ::RegisterBlock {
& self . register_block
}
}
2017-07-08 14:23:28 +00:00
#[ doc = " Core Platform Miscellaneous Control Module " ]
2017-06-11 10:39:47 +00:00
pub const MCM : Peripheral < MCM > = unsafe { Peripheral ::new ( 3758620672 ) } ;
2017-07-08 14:23:28 +00:00
#[ doc = " Core Platform Miscellaneous Control Module " ]
2017-09-23 18:09:53 +00:00
pub mod mcm ;
2017-07-08 14:23:28 +00:00
#[ doc = " Core Platform Miscellaneous Control Module " ]
2017-06-11 10:39:47 +00:00
pub struct MCM {
2017-05-24 13:43:43 +00:00
register_block : mcm ::RegisterBlock ,
}
2017-06-11 10:39:47 +00:00
impl Deref for MCM {
2017-05-24 13:43:43 +00:00
type Target = mcm ::RegisterBlock ;
fn deref ( & self ) -> & mcm ::RegisterBlock {
& self . register_block
}
}
2017-07-08 14:23:28 +00:00
#[ doc = " Local Memory Controller " ]
2017-06-11 10:39:47 +00:00
pub const LMEM : Peripheral < LMEM > = unsafe { Peripheral ::new ( 3758628864 ) } ;
2017-07-08 14:23:28 +00:00
#[ doc = " Local Memory Controller " ]
2017-09-23 18:09:53 +00:00
pub mod lmem ;
2017-07-08 14:23:28 +00:00
#[ doc = " Local Memory Controller " ]
2017-06-11 10:39:47 +00:00
pub struct LMEM {
2017-05-24 13:43:43 +00:00
register_block : lmem ::RegisterBlock ,
}
2017-06-11 10:39:47 +00:00
impl Deref for LMEM {
2017-05-24 13:43:43 +00:00
type Target = lmem ::RegisterBlock ;
fn deref ( & self ) -> & lmem ::RegisterBlock {
& self . register_block
}
}
2017-07-08 14:23:28 +00:00
#[ doc = r " All the peripherals " ]
#[ allow(non_snake_case) ]
2017-07-08 14:09:24 +00:00
pub struct Peripherals < ' a > {
2017-07-08 14:23:28 +00:00
#[ doc = " CPUID " ]
2017-07-08 14:09:24 +00:00
pub CPUID : & ' a CPUID ,
2017-07-08 14:23:28 +00:00
#[ doc = " DCB " ]
2017-07-08 14:09:24 +00:00
pub DCB : & ' a DCB ,
2017-07-08 14:23:28 +00:00
#[ doc = " DWT " ]
2017-07-08 14:09:24 +00:00
pub DWT : & ' a DWT ,
2017-07-08 14:23:28 +00:00
#[ doc = " FPB " ]
2017-07-08 14:09:24 +00:00
pub FPB : & ' a FPB ,
2017-07-08 14:23:28 +00:00
#[ doc = " FPU " ]
2017-07-08 14:09:24 +00:00
pub FPU : & ' a FPU ,
2017-07-08 14:23:28 +00:00
#[ doc = " ITM " ]
2017-07-08 14:09:24 +00:00
pub ITM : & ' a ITM ,
2017-07-08 14:23:28 +00:00
#[ doc = " MPU " ]
2017-07-08 14:09:24 +00:00
pub MPU : & ' a MPU ,
2017-07-08 14:23:28 +00:00
#[ doc = " NVIC " ]
2017-07-08 14:09:24 +00:00
pub NVIC : & ' a NVIC ,
2017-07-08 14:23:28 +00:00
#[ doc = " SCB " ]
2017-07-08 14:09:24 +00:00
pub SCB : & ' a SCB ,
2017-07-08 14:23:28 +00:00
#[ doc = " SYST " ]
2017-07-08 14:09:24 +00:00
pub SYST : & ' a SYST ,
2017-07-08 14:23:28 +00:00
#[ doc = " TPIU " ]
2017-07-08 14:09:24 +00:00
pub TPIU : & ' a TPIU ,
2017-07-08 14:23:28 +00:00
#[ doc = " CSE_PRAM " ]
2017-07-08 14:09:24 +00:00
pub CSE_PRAM : & ' a CSE_PRAM ,
2017-07-08 14:23:28 +00:00
#[ doc = " AIPS " ]
2017-07-08 14:09:24 +00:00
pub AIPS : & ' a AIPS ,
2017-07-08 14:23:28 +00:00
#[ doc = " MSCM " ]
2017-07-08 14:09:24 +00:00
pub MSCM : & ' a MSCM ,
2017-07-08 14:23:28 +00:00
#[ doc = " DMA " ]
2017-07-08 14:09:24 +00:00
pub DMA : & ' a DMA ,
2017-07-08 14:23:28 +00:00
#[ doc = " ERM " ]
2017-07-08 14:09:24 +00:00
pub ERM : & ' a ERM ,
2017-07-08 14:23:28 +00:00
#[ doc = " EIM " ]
2017-07-08 14:09:24 +00:00
pub EIM : & ' a EIM ,
2017-07-08 14:23:28 +00:00
#[ doc = " FTFC " ]
2017-07-08 14:09:24 +00:00
pub FTFC : & ' a FTFC ,
2017-07-08 14:23:28 +00:00
#[ doc = " DMAMUX " ]
2017-07-08 14:09:24 +00:00
pub DMAMUX : & ' a DMAMUX ,
2017-07-08 14:23:28 +00:00
#[ doc = " CAN0 " ]
2017-07-08 14:09:24 +00:00
pub CAN0 : & ' a CAN0 ,
2017-07-08 14:23:28 +00:00
#[ doc = " CAN1 " ]
2017-07-08 14:09:24 +00:00
pub CAN1 : & ' a CAN1 ,
2017-07-08 14:23:28 +00:00
#[ doc = " CAN2 " ]
2017-07-08 14:09:24 +00:00
pub CAN2 : & ' a CAN2 ,
2017-07-08 14:23:28 +00:00
#[ doc = " FTM0 " ]
2017-07-08 14:09:24 +00:00
pub FTM0 : & ' a FTM0 ,
2017-07-08 14:23:28 +00:00
#[ doc = " FTM1 " ]
2017-07-08 14:09:24 +00:00
pub FTM1 : & ' a FTM1 ,
2017-07-08 14:23:28 +00:00
#[ doc = " FTM2 " ]
2017-07-08 14:09:24 +00:00
pub FTM2 : & ' a FTM2 ,
2017-07-08 14:23:28 +00:00
#[ doc = " FTM3 " ]
2017-07-08 14:09:24 +00:00
pub FTM3 : & ' a FTM3 ,
2017-07-08 14:23:28 +00:00
#[ doc = " ADC0 " ]
2017-07-08 14:09:24 +00:00
pub ADC0 : & ' a ADC0 ,
2017-07-08 14:23:28 +00:00
#[ doc = " ADC1 " ]
2017-07-08 14:09:24 +00:00
pub ADC1 : & ' a ADC1 ,
2017-07-08 14:23:28 +00:00
#[ doc = " LPSPI0 " ]
2017-07-08 14:09:24 +00:00
pub LPSPI0 : & ' a LPSPI0 ,
2017-07-08 14:23:28 +00:00
#[ doc = " LPSPI1 " ]
2017-07-08 14:09:24 +00:00
pub LPSPI1 : & ' a LPSPI1 ,
2017-07-08 14:23:28 +00:00
#[ doc = " LPSPI2 " ]
2017-07-08 14:09:24 +00:00
pub LPSPI2 : & ' a LPSPI2 ,
2017-07-08 14:23:28 +00:00
#[ doc = " PDB0 " ]
2017-07-08 14:09:24 +00:00
pub PDB0 : & ' a PDB0 ,
2017-07-08 14:23:28 +00:00
#[ doc = " PDB1 " ]
2017-07-08 14:09:24 +00:00
pub PDB1 : & ' a PDB1 ,
2017-07-08 14:23:28 +00:00
#[ doc = " CRC " ]
2017-07-08 14:09:24 +00:00
pub CRC : & ' a CRC ,
2017-07-08 14:23:28 +00:00
#[ doc = " LPIT0 " ]
2017-07-08 14:09:24 +00:00
pub LPIT0 : & ' a LPIT0 ,
2017-07-08 14:23:28 +00:00
#[ doc = " RTC " ]
2017-07-08 14:09:24 +00:00
pub RTC : & ' a RTC ,
2017-07-08 14:23:28 +00:00
#[ doc = " LPTMR0 " ]
2017-07-08 14:09:24 +00:00
pub LPTMR0 : & ' a LPTMR0 ,
2017-07-08 14:23:28 +00:00
#[ doc = " SIM " ]
2017-07-08 14:09:24 +00:00
pub SIM : & ' a SIM ,
2017-07-08 14:23:28 +00:00
#[ doc = " PORTA " ]
2017-07-08 14:09:24 +00:00
pub PORTA : & ' a PORTA ,
2017-07-08 14:23:28 +00:00
#[ doc = " PORTB " ]
2017-07-08 14:09:24 +00:00
pub PORTB : & ' a PORTB ,
2017-07-08 14:23:28 +00:00
#[ doc = " PORTC " ]
2017-07-08 14:09:24 +00:00
pub PORTC : & ' a PORTC ,
2017-07-08 14:23:28 +00:00
#[ doc = " PORTD " ]
2017-07-08 14:09:24 +00:00
pub PORTD : & ' a PORTD ,
2017-07-08 14:23:28 +00:00
#[ doc = " PORTE " ]
2017-07-08 14:09:24 +00:00
pub PORTE : & ' a PORTE ,
2017-07-08 14:23:28 +00:00
#[ doc = " WDOG " ]
2017-07-08 14:09:24 +00:00
pub WDOG : & ' a WDOG ,
2017-07-08 14:23:28 +00:00
#[ doc = " FLEXIO " ]
2017-07-08 14:09:24 +00:00
pub FLEXIO : & ' a FLEXIO ,
2017-07-08 14:23:28 +00:00
#[ doc = " EWM " ]
2017-07-08 14:09:24 +00:00
pub EWM : & ' a EWM ,
2017-07-08 14:23:28 +00:00
#[ doc = " TRGMUX " ]
2017-07-08 14:09:24 +00:00
pub TRGMUX : & ' a TRGMUX ,
2017-07-08 14:23:28 +00:00
#[ doc = " SCG " ]
2017-07-08 14:09:24 +00:00
pub SCG : & ' a SCG ,
2017-07-08 14:23:28 +00:00
#[ doc = " PCC " ]
2017-07-08 14:09:24 +00:00
pub PCC : & ' a PCC ,
2017-07-08 14:23:28 +00:00
#[ doc = " LPI2C0 " ]
2017-07-08 14:09:24 +00:00
pub LPI2C0 : & ' a LPI2C0 ,
2017-07-08 14:23:28 +00:00
#[ doc = " LPUART0 " ]
2017-07-08 14:09:24 +00:00
pub LPUART0 : & ' a LPUART0 ,
2017-07-08 14:23:28 +00:00
#[ doc = " LPUART1 " ]
2017-07-08 14:09:24 +00:00
pub LPUART1 : & ' a LPUART1 ,
2017-07-08 14:23:28 +00:00
#[ doc = " LPUART2 " ]
2017-07-08 14:09:24 +00:00
pub LPUART2 : & ' a LPUART2 ,
2017-07-08 14:23:28 +00:00
#[ doc = " CMP0 " ]
2017-07-08 14:09:24 +00:00
pub CMP0 : & ' a CMP0 ,
2017-07-08 14:23:28 +00:00
#[ doc = " PMC " ]
2017-07-08 14:09:24 +00:00
pub PMC : & ' a PMC ,
2017-07-08 14:23:28 +00:00
#[ doc = " SMC " ]
2017-07-08 14:09:24 +00:00
pub SMC : & ' a SMC ,
2017-07-08 14:23:28 +00:00
#[ doc = " RCM " ]
2017-07-08 14:09:24 +00:00
pub RCM : & ' a RCM ,
2017-07-08 14:23:28 +00:00
#[ doc = " PTA " ]
2017-07-08 14:09:24 +00:00
pub PTA : & ' a PTA ,
2017-07-08 14:23:28 +00:00
#[ doc = " PTB " ]
2017-07-08 14:09:24 +00:00
pub PTB : & ' a PTB ,
2017-07-08 14:23:28 +00:00
#[ doc = " PTC " ]
2017-07-08 14:09:24 +00:00
pub PTC : & ' a PTC ,
2017-07-08 14:23:28 +00:00
#[ doc = " PTD " ]
2017-07-08 14:09:24 +00:00
pub PTD : & ' a PTD ,
2017-07-08 14:23:28 +00:00
#[ doc = " PTE " ]
2017-07-08 14:09:24 +00:00
pub PTE : & ' a PTE ,
2017-07-08 14:23:28 +00:00
#[ doc = " MCM " ]
2017-07-08 14:09:24 +00:00
pub MCM : & ' a MCM ,
2017-07-08 14:23:28 +00:00
#[ doc = " LMEM " ]
2017-07-08 14:09:24 +00:00
pub LMEM : & ' a LMEM ,
}
impl < ' a > Peripherals < ' a > {
2017-07-08 14:23:28 +00:00
#[ doc = r " Grants access to all the peripherals " ]
2017-07-08 14:09:24 +00:00
pub unsafe fn all ( ) -> Self {
Peripherals {
CPUID : & * CPUID . get ( ) ,
DCB : & * DCB . get ( ) ,
DWT : & * DWT . get ( ) ,
FPB : & * FPB . get ( ) ,
FPU : & * FPU . get ( ) ,
ITM : & * ITM . get ( ) ,
MPU : & * MPU . get ( ) ,
NVIC : & * NVIC . get ( ) ,
SCB : & * SCB . get ( ) ,
SYST : & * SYST . get ( ) ,
TPIU : & * TPIU . get ( ) ,
CSE_PRAM : & * CSE_PRAM . get ( ) ,
AIPS : & * AIPS . get ( ) ,
MSCM : & * MSCM . get ( ) ,
DMA : & * DMA . get ( ) ,
ERM : & * ERM . get ( ) ,
EIM : & * EIM . get ( ) ,
FTFC : & * FTFC . get ( ) ,
DMAMUX : & * DMAMUX . get ( ) ,
CAN0 : & * CAN0 . get ( ) ,
CAN1 : & * CAN1 . get ( ) ,
CAN2 : & * CAN2 . get ( ) ,
FTM0 : & * FTM0 . get ( ) ,
FTM1 : & * FTM1 . get ( ) ,
FTM2 : & * FTM2 . get ( ) ,
FTM3 : & * FTM3 . get ( ) ,
ADC0 : & * ADC0 . get ( ) ,
ADC1 : & * ADC1 . get ( ) ,
LPSPI0 : & * LPSPI0 . get ( ) ,
LPSPI1 : & * LPSPI1 . get ( ) ,
LPSPI2 : & * LPSPI2 . get ( ) ,
PDB0 : & * PDB0 . get ( ) ,
PDB1 : & * PDB1 . get ( ) ,
CRC : & * CRC . get ( ) ,
LPIT0 : & * LPIT0 . get ( ) ,
RTC : & * RTC . get ( ) ,
LPTMR0 : & * LPTMR0 . get ( ) ,
SIM : & * SIM . get ( ) ,
PORTA : & * PORTA . get ( ) ,
PORTB : & * PORTB . get ( ) ,
PORTC : & * PORTC . get ( ) ,
PORTD : & * PORTD . get ( ) ,
PORTE : & * PORTE . get ( ) ,
WDOG : & * WDOG . get ( ) ,
FLEXIO : & * FLEXIO . get ( ) ,
EWM : & * EWM . get ( ) ,
TRGMUX : & * TRGMUX . get ( ) ,
SCG : & * SCG . get ( ) ,
PCC : & * PCC . get ( ) ,
LPI2C0 : & * LPI2C0 . get ( ) ,
LPUART0 : & * LPUART0 . get ( ) ,
LPUART1 : & * LPUART1 . get ( ) ,
LPUART2 : & * LPUART2 . get ( ) ,
CMP0 : & * CMP0 . get ( ) ,
PMC : & * PMC . get ( ) ,
SMC : & * SMC . get ( ) ,
RCM : & * RCM . get ( ) ,
PTA : & * PTA . get ( ) ,
PTB : & * PTB . get ( ) ,
PTC : & * PTC . get ( ) ,
PTD : & * PTD . get ( ) ,
PTE : & * PTE . get ( ) ,
MCM : & * MCM . get ( ) ,
LMEM : & * LMEM . get ( ) ,
}
}
}