Further work on SPI v2 blocking.

This commit is contained in:
Bob McWhirter 2021-05-11 11:25:01 -04:00
parent 8a79e2cbbf
commit 7d52e1b350
84 changed files with 9880 additions and 6930 deletions

View File

@ -117,6 +117,14 @@ for chip in chips.values():
if block_mod == 'spi':
f.write(f'impl_spi!({name});')
for pin, funcs in af.items():
if pin in pins:
if func := funcs.get(f'{name}_SCK'):
f.write(f'impl_spi_pin!({name}, Sck, {pin}, {func});')
if func := funcs.get(f'{name}_MOSI'):
f.write(f'impl_spi_pin!({name}, Mosi, {pin}, {func});')
if func := funcs.get(f'{name}_MISO'):
f.write(f'impl_spi_pin!({name}, Miso, {pin}, {func});')
if block_mod == 'gpio':
custom_singletons = True

File diff suppressed because it is too large Load Diff

View File

@ -6,23 +6,23 @@ pub fn GPIO(n: usize) -> gpio::Gpio {
gpio::Gpio((0x40020000 + 0x400 * n) as _)
}
pub const DMA1: dma::Dma = dma::Dma(0x40026000 as _);
impl_dma_channel!(DMA1_CH0, 1, 0);
impl_dma_channel!(DMA1_CH1, 1, 1);
impl_dma_channel!(DMA1_CH2, 1, 2);
impl_dma_channel!(DMA1_CH3, 1, 3);
impl_dma_channel!(DMA1_CH4, 1, 4);
impl_dma_channel!(DMA1_CH5, 1, 5);
impl_dma_channel!(DMA1_CH6, 1, 6);
impl_dma_channel!(DMA1_CH7, 1, 7);
impl_dma_channel!(DMA1_CH0, DMA1, 0);
impl_dma_channel!(DMA1_CH1, DMA1, 1);
impl_dma_channel!(DMA1_CH2, DMA1, 2);
impl_dma_channel!(DMA1_CH3, DMA1, 3);
impl_dma_channel!(DMA1_CH4, DMA1, 4);
impl_dma_channel!(DMA1_CH5, DMA1, 5);
impl_dma_channel!(DMA1_CH6, DMA1, 6);
impl_dma_channel!(DMA1_CH7, DMA1, 7);
pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _);
impl_dma_channel!(DMA2_CH0, 2, 0);
impl_dma_channel!(DMA2_CH1, 2, 1);
impl_dma_channel!(DMA2_CH2, 2, 2);
impl_dma_channel!(DMA2_CH3, 2, 3);
impl_dma_channel!(DMA2_CH4, 2, 4);
impl_dma_channel!(DMA2_CH5, 2, 5);
impl_dma_channel!(DMA2_CH6, 2, 6);
impl_dma_channel!(DMA2_CH7, 2, 7);
impl_dma_channel!(DMA2_CH0, DMA2, 0);
impl_dma_channel!(DMA2_CH1, DMA2, 1);
impl_dma_channel!(DMA2_CH2, DMA2, 2);
impl_dma_channel!(DMA2_CH3, DMA2, 3);
impl_dma_channel!(DMA2_CH4, DMA2, 4);
impl_dma_channel!(DMA2_CH5, DMA2, 5);
impl_dma_channel!(DMA2_CH6, DMA2, 6);
impl_dma_channel!(DMA2_CH7, DMA2, 7);
pub const EXTI: exti::Exti = exti::Exti(0x40013c00 as _);
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x40020000 as _);
impl_gpio_pin!(PA0, 0, 0, EXTI0);

View File

@ -130,10 +130,37 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -130,10 +130,37 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -130,8 +130,26 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -130,8 +130,26 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -130,10 +130,37 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -130,10 +130,37 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -130,10 +130,37 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -96,8 +96,23 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -96,8 +96,23 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -130,10 +130,37 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -130,10 +130,37 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -130,10 +130,37 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -130,10 +130,37 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -130,10 +130,37 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -96,8 +96,23 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -130,10 +130,37 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -130,10 +130,37 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -130,10 +130,37 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -181,10 +181,49 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -181,10 +181,49 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -181,10 +181,49 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -181,10 +181,49 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -181,10 +181,49 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -181,10 +181,49 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -181,10 +181,49 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -181,10 +181,49 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -181,10 +181,49 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -181,10 +181,49 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -181,10 +181,49 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -181,10 +181,49 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -181,10 +181,49 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -181,10 +181,49 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -181,10 +181,49 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -181,10 +181,49 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub const USART1: usart::Usart = usart::Usart(0x40013800 as _);
impl_usart!(USART1);

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -181,10 +181,50 @@ pub const RNG: rng::Rng = rng::Rng(0x50060800 as _);
impl_rng!(RNG);
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
impl_spi!(SPI1);
impl_spi_pin!(SPI1, Sck, PA1, 5);
impl_spi_pin!(SPI1, Miso, PA11, 5);
impl_spi_pin!(SPI1, Mosi, PA12, 5);
impl_spi_pin!(SPI1, Sck, PA5, 5);
impl_spi_pin!(SPI1, Miso, PA6, 5);
impl_spi_pin!(SPI1, Mosi, PA7, 5);
impl_spi_pin!(SPI1, Sck, PB3, 5);
impl_spi_pin!(SPI1, Miso, PB4, 5);
impl_spi_pin!(SPI1, Mosi, PB5, 5);
impl_spi_pin!(SPI1, Sck, PE13, 5);
impl_spi_pin!(SPI1, Miso, PE14, 5);
impl_spi_pin!(SPI1, Mosi, PE15, 5);
impl_spi_pin!(SPI1, Sck, PG2, 5);
impl_spi_pin!(SPI1, Miso, PG3, 5);
impl_spi_pin!(SPI1, Mosi, PG4, 5);
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
impl_spi!(SPI2);
impl_spi_pin!(SPI2, Sck, PA9, 3);
impl_spi_pin!(SPI2, Sck, PB10, 5);
impl_spi_pin!(SPI2, Sck, PB13, 5);
impl_spi_pin!(SPI2, Miso, PB14, 5);
impl_spi_pin!(SPI2, Mosi, PB15, 5);
impl_spi_pin!(SPI2, Mosi, PC1, 3);
impl_spi_pin!(SPI2, Miso, PC2, 5);
impl_spi_pin!(SPI2, Mosi, PC3, 5);
impl_spi_pin!(SPI2, Sck, PD1, 5);
impl_spi_pin!(SPI2, Sck, PD3, 3);
impl_spi_pin!(SPI2, Miso, PD3, 5);
impl_spi_pin!(SPI2, Mosi, PD4, 5);
impl_spi_pin!(SPI2, Sck, PI1, 5);
impl_spi_pin!(SPI2, Miso, PI2, 5);
impl_spi_pin!(SPI2, Mosi, PI3, 5);
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
impl_spi!(SPI3);
impl_spi_pin!(SPI3, Sck, PB3, 6);
impl_spi_pin!(SPI3, Miso, PB4, 6);
impl_spi_pin!(SPI3, Mosi, PB5, 6);
impl_spi_pin!(SPI3, Sck, PC10, 6);
impl_spi_pin!(SPI3, Miso, PC11, 6);
impl_spi_pin!(SPI3, Mosi, PC12, 6);
impl_spi_pin!(SPI3, Mosi, PD6, 5);
impl_spi_pin!(SPI3, Miso, PG10, 6);
impl_spi_pin!(SPI3, Mosi, PG11, 6);
impl_spi_pin!(SPI3, Sck, PG9, 6);
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _);
pub use regs::dma_v1 as dma;
pub use regs::exti_v1 as exti;

View File

@ -4,14 +4,56 @@ pub use embedded_hal::spi::{Mode, Phase, Polarity, MODE_0, MODE_1, MODE_2, MODE_
use core::marker::PhantomData;
use embassy::interrupt::Interrupt;
use embedded_hal::blocking::spi::{Write, Transfer};
use embassy::util::Unborrow;
use embassy_extras::{impl_unborrow, unborrow};
use crate::gpio::{Pin, AnyPin};
use crate::pac::gpio::vals::Afr;
use crate::pac::gpio::Gpio;
//use crate::pac::spi;
pub struct Spi<'d, T: Instance> {
peri: T,
sck: AnyPin,
mosi: AnyPin,
miso: AnyPin,
//irq: T::Interrupt,
phantom: PhantomData<&'d mut T>,
}
impl<'d, T: Instance> Spi<'d, T> {
pub fn new(peri: impl Unborrow<Target=T> + 'd,
sck: impl Unborrow<Target=impl Sck<T>>,
mosi: impl Unborrow<Target=impl Mosi<T>>,
miso: impl Unborrow<Target=impl Miso<T>>,
) -> Self {
unborrow!(peri);
unborrow!(sck, mosi, miso);
unsafe {
Self::configure_pin( sck.block(), sck.pin() as usize, sck.af() );
Self::configure_pin( mosi.block(), mosi.pin() as usize, mosi.af() );
Self::configure_pin( miso.block(), miso.pin() as usize, miso.af() );
}
let sck = sck.degrade();
let mosi = mosi.degrade();
let miso = miso.degrade();
Self {
peri,
sck,
mosi,
miso,
phantom: PhantomData,
}
}
unsafe fn configure_pin(block: Gpio, pin: usize, af_num: u8) {
let (afr, n_af) = if pin < 8 { (0, pin) } else { (1, pin - 8) };
block.afr(afr).modify(|w| w.set_afr(n_af, Afr(af_num)));
}
}
pub enum Error {
Framing,
Crc,
@ -111,12 +153,45 @@ pub(crate) mod sealed {
fn regs() -> &'static crate::pac::spi::Spi;
//fn state() -> &'static State;
}
pub trait Sck<T: Instance> : Pin {
const AF: u8;
fn af(&self) -> u8 {
Self::AF
}
}
pub trait Mosi<T: Instance> : Pin {
const AF: u8;
fn af(&self) -> u8 {
Self::AF
}
}
pub trait Miso<T: Instance> : Pin {
const AF: u8;
fn af(&self) -> u8 {
Self::AF
}
}
}
pub trait Instance: sealed::Instance + 'static {
//type Interrupt: Interrupt;
}
pub trait Sck<T:Instance>: sealed::Sck<T> + 'static {
}
pub trait Mosi<T:Instance>: sealed::Mosi<T> + 'static {
}
pub trait Miso<T:Instance>: sealed::Miso<T> + 'static {
}
macro_rules! impl_spi {
($inst:ident) => {
impl crate::spi::sealed::Instance for peripherals::$inst {
@ -128,3 +203,14 @@ macro_rules! impl_spi {
impl crate::spi::Instance for peripherals::$inst {}
};
}
macro_rules! impl_spi_pin {
($inst:ident, $pin_func:ident, $pin:ident, $af:expr) => {
impl crate::spi::$pin_func<peripherals::$inst> for peripherals::$pin {
}
impl crate::spi::sealed::$pin_func<peripherals::$inst> for peripherals::$pin {
const AF: u8 = $af;
}
}
}

@ -1 +1 @@
Subproject commit 10f86e022b297069c0da9069814e7b811f19d2e1
Subproject commit 2e55065013cda8b5836d74570530e7fdb75a76b3