[−][src]Macro drone_stm32_map_periph_spi::periph_spi3
macro_rules! periph_spi3 { periph::map! { #[doc = $spi_macro_doc] pub macro $spi_macro; #[doc = $spi_ty_doc] pub struct $spi_ty; impl SpiMap for $spi_ty {} drone_stm32_map_pieces::reg; crate; RCC { BUSENR { $busenr Shared; SPIEN { $spien } } BUSRSTR { $busrstr Shared; SPIRST { $spirst } } #[cfg(any( feature = "stm32l4x1", feature = "stm32l4x2", feature = "stm32l4x3", feature = "stm32l4x5", feature = "stm32l4x6", feature = "stm32l4r5", feature = "stm32l4r7", feature = "stm32l4r9", feature = "stm32l4s5", feature = "stm32l4s7", feature = "stm32l4s9" ))] BUSSMENR { $bussmenr Shared; SPISMEN { $spismen } } } SPI { $spi; CR1 { CR1; BIDIMODE { BIDIMODE } BIDIOE { BIDIOE } BR { BR } CPHA { CPHA } CPOL { CPOL } CRCEN { CRCEN } CRCNEXT { CRCNEXT } DFF { DFF } LSBFIRST { LSBFIRST } MSTR { MSTR } RXONLY { RXONLY } SPE { SPE } SSI { SSI } SSM { SSM } } CR2 { CR2; #[cfg(any( feature = "stm32l4x1", feature = "stm32l4x2", feature = "stm32l4x3", feature = "stm32l4x5", feature = "stm32l4x6", feature = "stm32l4r5", feature = "stm32l4r7", feature = "stm32l4r9", feature = "stm32l4s5", feature = "stm32l4s7", feature = "stm32l4s9" ))] DS { DS } ERRIE { ERRIE } #[cfg(any( feature = "stm32l4x1", feature = "stm32l4x2", feature = "stm32l4x3", feature = "stm32l4x5", feature = "stm32l4x6", feature = "stm32l4r5", feature = "stm32l4r7", feature = "stm32l4r9", feature = "stm32l4s5", feature = "stm32l4s7", feature = "stm32l4s9" ))] FRF { FRF } #[cfg(any( feature = "stm32l4x1", feature = "stm32l4x2", feature = "stm32l4x3", feature = "stm32l4x5", feature = "stm32l4x6", feature = "stm32l4r5", feature = "stm32l4r7", feature = "stm32l4r9", feature = "stm32l4s5", feature = "stm32l4s7", feature = "stm32l4s9" ))] FRXTH { FRXTH } #[cfg(any( feature = "stm32l4x1", feature = "stm32l4x2", feature = "stm32l4x3", feature = "stm32l4x5", feature = "stm32l4x6", feature = "stm32l4r5", feature = "stm32l4r7", feature = "stm32l4r9", feature = "stm32l4s5", feature = "stm32l4s7", feature = "stm32l4s9" ))] LDMA_RX { LDMA_RX } #[cfg(any( feature = "stm32l4x1", feature = "stm32l4x2", feature = "stm32l4x3", feature = "stm32l4x5", feature = "stm32l4x6", feature = "stm32l4r5", feature = "stm32l4r7", feature = "stm32l4r9", feature = "stm32l4s5", feature = "stm32l4s7", feature = "stm32l4s9" ))] LDMA_TX { LDMA_TX } #[cfg(any( feature = "stm32l4x1", feature = "stm32l4x2", feature = "stm32l4x3", feature = "stm32l4x5", feature = "stm32l4x6", feature = "stm32l4r5", feature = "stm32l4r7", feature = "stm32l4r9", feature = "stm32l4s5", feature = "stm32l4s7", feature = "stm32l4s9" ))] NSSP { NSSP } RXDMAEN { RXDMAEN } RXNEIE { RXNEIE } SSOE { SSOE } TXDMAEN { TXDMAEN } TXEIE { TXEIE } } SR { SR; BSY { BSY } #[cfg(any( feature = "stm32f101", feature = "stm32f102", feature = "stm32f103", feature = "stm32f107", ))] CHSIDE { CHSIDE } CRCERR { CRCERR } #[cfg(any( feature = "stm32l4x1", feature = "stm32l4x2", feature = "stm32l4x3", feature = "stm32l4x5", feature = "stm32l4x6", feature = "stm32l4r5", feature = "stm32l4r7", feature = "stm32l4r9", feature = "stm32l4s5", feature = "stm32l4s7", feature = "stm32l4s9" ))] FRLVL { FRLVL } #[cfg(any( feature = "stm32l4x1", feature = "stm32l4x2", feature = "stm32l4x3", feature = "stm32l4x5", feature = "stm32l4x6", feature = "stm32l4r5", feature = "stm32l4r7", feature = "stm32l4r9", feature = "stm32l4s5", feature = "stm32l4s7", feature = "stm32l4s9" ))] FTLVL { FTLVL } MODF { MODF } OVR { OVR } RXNE { RXNE } #[cfg(any( feature = "stm32l4x1", feature = "stm32l4x2", feature = "stm32l4x3", feature = "stm32l4x5", feature = "stm32l4x6", feature = "stm32l4r5", feature = "stm32l4r7", feature = "stm32l4r9", feature = "stm32l4s5", feature = "stm32l4s7", feature = "stm32l4s9" ))] TIFRFE { TIFRFE } TXE { TXE } #[cfg(any( feature = "stm32f101", feature = "stm32f102", feature = "stm32f103", feature = "stm32f107", ))] UDR { UDR } } DR { DR; DR { DR } } CRCPR { CRCPR; CRCPOLY { CRCPOLY } } RXCRCR { RXCRCR; RxCRC { RxCRC } } TXCRCR { TXCRCR; TxCRC { TxCRC } } } } => { ... }; }
Extracts SPI3 register tokens.