From 0470abb3530785c802fb81d0e16fae518766eac6 Mon Sep 17 00:00:00 2001 From: Bob McWhirter Date: Mon, 10 May 2021 15:21:57 -0400 Subject: [PATCH] Checkpoint. --- embassy-stm32/Cargo.toml | 160 ++++++++++++++------------- embassy-stm32/gen.py | 3 + embassy-stm32/src/lib.rs | 2 + embassy-stm32/src/pac/stm32f429zi.rs | 32 +++--- embassy-stm32/src/pac/stm32l431cb.rs | 9 +- embassy-stm32/src/pac/stm32l431cc.rs | 9 +- embassy-stm32/src/pac/stm32l431kb.rs | 7 +- embassy-stm32/src/pac/stm32l431kc.rs | 7 +- embassy-stm32/src/pac/stm32l431rb.rs | 9 +- embassy-stm32/src/pac/stm32l431rc.rs | 9 +- embassy-stm32/src/pac/stm32l431vc.rs | 9 +- embassy-stm32/src/pac/stm32l432kb.rs | 8 +- embassy-stm32/src/pac/stm32l432kc.rs | 8 +- embassy-stm32/src/pac/stm32l433cb.rs | 9 +- embassy-stm32/src/pac/stm32l433cc.rs | 9 +- embassy-stm32/src/pac/stm32l433rb.rs | 9 +- embassy-stm32/src/pac/stm32l433rc.rs | 9 +- embassy-stm32/src/pac/stm32l433vc.rs | 9 +- embassy-stm32/src/pac/stm32l442kc.rs | 8 +- embassy-stm32/src/pac/stm32l443cc.rs | 9 +- embassy-stm32/src/pac/stm32l443rc.rs | 9 +- embassy-stm32/src/pac/stm32l443vc.rs | 9 +- embassy-stm32/src/pac/stm32l496ae.rs | 9 +- embassy-stm32/src/pac/stm32l496ag.rs | 9 +- embassy-stm32/src/pac/stm32l496qe.rs | 9 +- embassy-stm32/src/pac/stm32l496qg.rs | 9 +- embassy-stm32/src/pac/stm32l496re.rs | 9 +- embassy-stm32/src/pac/stm32l496rg.rs | 9 +- embassy-stm32/src/pac/stm32l496ve.rs | 9 +- embassy-stm32/src/pac/stm32l496vg.rs | 9 +- embassy-stm32/src/pac/stm32l496wg.rs | 9 +- embassy-stm32/src/pac/stm32l496ze.rs | 9 +- embassy-stm32/src/pac/stm32l496zg.rs | 9 +- embassy-stm32/src/pac/stm32l4a6ag.rs | 9 +- embassy-stm32/src/pac/stm32l4a6qg.rs | 9 +- embassy-stm32/src/pac/stm32l4a6rg.rs | 9 +- embassy-stm32/src/pac/stm32l4a6vg.rs | 9 +- embassy-stm32/src/pac/stm32l4a6zg.rs | 9 +- embassy-stm32/src/pac/stm32l4p5ae.rs | 9 +- embassy-stm32/src/pac/stm32l4p5ag.rs | 9 +- embassy-stm32/src/pac/stm32l4p5ce.rs | 9 +- embassy-stm32/src/pac/stm32l4p5cg.rs | 9 +- embassy-stm32/src/pac/stm32l4p5qe.rs | 9 +- embassy-stm32/src/pac/stm32l4p5qg.rs | 9 +- embassy-stm32/src/pac/stm32l4p5re.rs | 9 +- embassy-stm32/src/pac/stm32l4p5rg.rs | 9 +- embassy-stm32/src/pac/stm32l4p5ve.rs | 9 +- embassy-stm32/src/pac/stm32l4p5vg.rs | 9 +- embassy-stm32/src/pac/stm32l4p5ze.rs | 9 +- embassy-stm32/src/pac/stm32l4p5zg.rs | 9 +- embassy-stm32/src/pac/stm32l4q5ag.rs | 9 +- embassy-stm32/src/pac/stm32l4q5cg.rs | 9 +- embassy-stm32/src/pac/stm32l4q5qg.rs | 9 +- embassy-stm32/src/pac/stm32l4q5rg.rs | 9 +- embassy-stm32/src/pac/stm32l4q5vg.rs | 9 +- embassy-stm32/src/pac/stm32l4q5zg.rs | 9 +- embassy-stm32/src/pac/stm32l4r5ag.rs | 9 +- embassy-stm32/src/pac/stm32l4r5ai.rs | 9 +- embassy-stm32/src/pac/stm32l4r5qg.rs | 9 +- embassy-stm32/src/pac/stm32l4r5qi.rs | 9 +- embassy-stm32/src/pac/stm32l4r5vg.rs | 9 +- embassy-stm32/src/pac/stm32l4r5vi.rs | 9 +- embassy-stm32/src/pac/stm32l4r5zg.rs | 9 +- embassy-stm32/src/pac/stm32l4r5zi.rs | 9 +- embassy-stm32/src/pac/stm32l4r7ai.rs | 9 +- embassy-stm32/src/pac/stm32l4r7vi.rs | 9 +- embassy-stm32/src/pac/stm32l4r7zi.rs | 9 +- embassy-stm32/src/pac/stm32l4r9ag.rs | 9 +- embassy-stm32/src/pac/stm32l4r9ai.rs | 9 +- embassy-stm32/src/pac/stm32l4r9vg.rs | 9 +- embassy-stm32/src/pac/stm32l4r9vi.rs | 9 +- embassy-stm32/src/pac/stm32l4r9zg.rs | 9 +- embassy-stm32/src/pac/stm32l4r9zi.rs | 9 +- embassy-stm32/src/pac/stm32l4s5ai.rs | 9 +- embassy-stm32/src/pac/stm32l4s5qi.rs | 9 +- embassy-stm32/src/pac/stm32l4s5vi.rs | 9 +- embassy-stm32/src/pac/stm32l4s5zi.rs | 9 +- embassy-stm32/src/pac/stm32l4s7ai.rs | 9 +- embassy-stm32/src/pac/stm32l4s7vi.rs | 9 +- embassy-stm32/src/pac/stm32l4s7zi.rs | 9 +- embassy-stm32/src/pac/stm32l4s9ai.rs | 9 +- embassy-stm32/src/pac/stm32l4s9vi.rs | 9 +- embassy-stm32/src/pac/stm32l4s9zi.rs | 9 +- embassy-stm32/src/spi.rs | 62 +++++++++++ 84 files changed, 789 insertions(+), 174 deletions(-) create mode 100644 embassy-stm32/src/spi.rs diff --git a/embassy-stm32/Cargo.toml b/embassy-stm32/Cargo.toml index 7d4bee298..cd940c589 100644 --- a/embassy-stm32/Cargo.toml +++ b/embassy-stm32/Cargo.toml @@ -189,24 +189,24 @@ stm32l422cb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_r stm32l422kb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] stm32l422rb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] stm32l422tb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l431cb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l431cc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l431kb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l431kc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l431rb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l431rc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l431vc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l432kb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l432kc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l433cb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l433cc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l433rb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l433rc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l433vc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l442kc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l443cc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l443rc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l443vc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l431cb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l431cc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l431kb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l431kc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l431rb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l431rc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l431vc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l432kb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l432kc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l433cb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l433cc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l433rb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l433rc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l433vc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l442kc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l443cc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l443rc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l443vc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] stm32l451cc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] stm32l451ce = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] stm32l451rc = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] @@ -257,67 +257,67 @@ stm32l486qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_r stm32l486rg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] stm32l486vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] stm32l486zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l496ae = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l496ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l496qe = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l496qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l496re = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l496rg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l496ve = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l496vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l496wg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l496ze = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l496zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l4a6ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l4a6qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l4a6rg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l4a6vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l4a6zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] -stm32l4p5ae = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4p5ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4p5ce = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4p5cg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4p5qe = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4p5qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4p5re = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4p5rg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4p5ve = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4p5vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4p5ze = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4p5zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4q5ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4q5cg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4q5qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4q5rg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4q5vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4q5zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4r5ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4r5ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4r5qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4r5qi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4r5vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4r5vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4r5zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4r5zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4r7ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4r7vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4r7zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4r9ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4r9ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4r9vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4r9vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4r9zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4r9zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4s5ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4s5qi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4s5vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4s5zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4s7ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4s7vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4s7zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4s9ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4s9vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] -stm32l4s9zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l496ae = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l496ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l496qe = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l496qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l496re = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l496rg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l496ve = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l496vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l496wg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l496ze = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l496zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l4a6ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l4a6qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l4a6rg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l4a6vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l4a6zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",] +stm32l4p5ae = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4p5ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4p5ce = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4p5cg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4p5qe = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4p5qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4p5re = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4p5rg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4p5ve = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4p5vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4p5ze = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4p5zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4q5ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4q5cg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4q5qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4q5rg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4q5vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4q5zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4r5ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4r5ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4r5qg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4r5qi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4r5vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4r5vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4r5zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4r5zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4r7ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4r7vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4r7zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4r9ag = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4r9ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4r9vg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4r9vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4r9zg = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4r9zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4s5ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4s5qi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4s5vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4s5zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4s7ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4s7vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4s7zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4s9ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4s9vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] +stm32l4s9zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",] _dma = [] _dma_v1 = [] _dma_v2 = [] @@ -327,6 +327,8 @@ _gpio = [] _gpio_v2 = [] _rng = [ "rand_core",] _rng_v1 = [] +_spi = [] +_spi_v2 = [] _stm32f4 = [] _stm32l4 = [] _stm32l4p = [] diff --git a/embassy-stm32/gen.py b/embassy-stm32/gen.py index ce4bdc1df..c04de7d46 100644 --- a/embassy-stm32/gen.py +++ b/embassy-stm32/gen.py @@ -115,6 +115,9 @@ for chip in chips.values(): if block_mod == 'rng': f.write(f'impl_rng!({name});') + if block_mod == 'spi': + f.write(f'impl_spi!({name});') + if block_mod == 'gpio': custom_singletons = True port = name[4:] diff --git a/embassy-stm32/src/lib.rs b/embassy-stm32/src/lib.rs index 3ec6013a5..6f300263e 100644 --- a/embassy-stm32/src/lib.rs +++ b/embassy-stm32/src/lib.rs @@ -17,11 +17,13 @@ pub mod exti; pub mod gpio; #[cfg(feature = "_rng")] pub mod rng; +pub mod spi; #[cfg(feature = "_usart")] pub mod usart; // This must go LAST so that it sees the `impl_foo!` macros mod pac; + pub use embassy_macros::interrupt; pub use pac::{interrupt, peripherals, Peripherals}; diff --git a/embassy-stm32/src/pac/stm32f429zi.rs b/embassy-stm32/src/pac/stm32f429zi.rs index a1a3ab422..b76378e03 100644 --- a/embassy-stm32/src/pac/stm32f429zi.rs +++ b/embassy-stm32/src/pac/stm32f429zi.rs @@ -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, 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); +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); pub const DMA2: dma::Dma = dma::Dma(0x40026400 as _); -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); +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); 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); diff --git a/embassy-stm32/src/pac/stm32l431cb.rs b/embassy-stm32/src/pac/stm32l431cb.rs index cab88d7ae..4201a5308 100644 --- a/embassy-stm32/src/pac/stm32l431cb.rs +++ b/embassy-stm32/src/pac/stm32l431cb.rs @@ -128,6 +128,12 @@ impl_gpio_pin!(PH14, 7, 14, EXTI14); impl_gpio_pin!(PH15, 7, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -180,6 +186,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -194,7 +201,7 @@ peripherals!( PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, - PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3 + PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l431cc.rs b/embassy-stm32/src/pac/stm32l431cc.rs index cab88d7ae..4201a5308 100644 --- a/embassy-stm32/src/pac/stm32l431cc.rs +++ b/embassy-stm32/src/pac/stm32l431cc.rs @@ -128,6 +128,12 @@ impl_gpio_pin!(PH14, 7, 14, EXTI14); impl_gpio_pin!(PH15, 7, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -180,6 +186,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -194,7 +201,7 @@ peripherals!( PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, - PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3 + PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l431kb.rs b/embassy-stm32/src/pac/stm32l431kb.rs index cb3c2eb5e..088aa0640 100644 --- a/embassy-stm32/src/pac/stm32l431kb.rs +++ b/embassy-stm32/src/pac/stm32l431kb.rs @@ -128,6 +128,10 @@ impl_gpio_pin!(PH14, 7, 14, EXTI14); impl_gpio_pin!(PH15, 7, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -158,6 +162,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -172,7 +177,7 @@ peripherals!( PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, - PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2 + PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI3, SYSCFG, USART1, USART2 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l431kc.rs b/embassy-stm32/src/pac/stm32l431kc.rs index cb3c2eb5e..088aa0640 100644 --- a/embassy-stm32/src/pac/stm32l431kc.rs +++ b/embassy-stm32/src/pac/stm32l431kc.rs @@ -128,6 +128,10 @@ impl_gpio_pin!(PH14, 7, 14, EXTI14); impl_gpio_pin!(PH15, 7, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -158,6 +162,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -172,7 +177,7 @@ peripherals!( PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, - PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2 + PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI3, SYSCFG, USART1, USART2 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l431rb.rs b/embassy-stm32/src/pac/stm32l431rb.rs index cab88d7ae..4201a5308 100644 --- a/embassy-stm32/src/pac/stm32l431rb.rs +++ b/embassy-stm32/src/pac/stm32l431rb.rs @@ -128,6 +128,12 @@ impl_gpio_pin!(PH14, 7, 14, EXTI14); impl_gpio_pin!(PH15, 7, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -180,6 +186,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -194,7 +201,7 @@ peripherals!( PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, - PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3 + PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l431rc.rs b/embassy-stm32/src/pac/stm32l431rc.rs index cab88d7ae..4201a5308 100644 --- a/embassy-stm32/src/pac/stm32l431rc.rs +++ b/embassy-stm32/src/pac/stm32l431rc.rs @@ -128,6 +128,12 @@ impl_gpio_pin!(PH14, 7, 14, EXTI14); impl_gpio_pin!(PH15, 7, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -180,6 +186,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -194,7 +201,7 @@ peripherals!( PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, - PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3 + PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l431vc.rs b/embassy-stm32/src/pac/stm32l431vc.rs index cab88d7ae..4201a5308 100644 --- a/embassy-stm32/src/pac/stm32l431vc.rs +++ b/embassy-stm32/src/pac/stm32l431vc.rs @@ -128,6 +128,12 @@ impl_gpio_pin!(PH14, 7, 14, EXTI14); impl_gpio_pin!(PH15, 7, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -180,6 +186,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -194,7 +201,7 @@ peripherals!( PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, - PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3 + PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l432kb.rs b/embassy-stm32/src/pac/stm32l432kb.rs index 78ef53b1f..a9dd16c94 100644 --- a/embassy-stm32/src/pac/stm32l432kb.rs +++ b/embassy-stm32/src/pac/stm32l432kb.rs @@ -94,6 +94,10 @@ impl_gpio_pin!(PH14, 7, 14, EXTI14); impl_gpio_pin!(PH15, 7, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -119,6 +123,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -131,7 +136,8 @@ peripherals!( PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PH0, PH1, PH2, PH3, PH4, PH5, - PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2 + PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI3, SYSCFG, USART1, + USART2 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l432kc.rs b/embassy-stm32/src/pac/stm32l432kc.rs index 78ef53b1f..a9dd16c94 100644 --- a/embassy-stm32/src/pac/stm32l432kc.rs +++ b/embassy-stm32/src/pac/stm32l432kc.rs @@ -94,6 +94,10 @@ impl_gpio_pin!(PH14, 7, 14, EXTI14); impl_gpio_pin!(PH15, 7, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -119,6 +123,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -131,7 +136,8 @@ peripherals!( PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PH0, PH1, PH2, PH3, PH4, PH5, - PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2 + PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI3, SYSCFG, USART1, + USART2 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l433cb.rs b/embassy-stm32/src/pac/stm32l433cb.rs index 2736824db..3d3c1e40f 100644 --- a/embassy-stm32/src/pac/stm32l433cb.rs +++ b/embassy-stm32/src/pac/stm32l433cb.rs @@ -128,6 +128,12 @@ impl_gpio_pin!(PH14, 7, 14, EXTI14); impl_gpio_pin!(PH15, 7, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -180,6 +186,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -194,7 +201,7 @@ peripherals!( PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, - PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3 + PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l433cc.rs b/embassy-stm32/src/pac/stm32l433cc.rs index 2736824db..3d3c1e40f 100644 --- a/embassy-stm32/src/pac/stm32l433cc.rs +++ b/embassy-stm32/src/pac/stm32l433cc.rs @@ -128,6 +128,12 @@ impl_gpio_pin!(PH14, 7, 14, EXTI14); impl_gpio_pin!(PH15, 7, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -180,6 +186,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -194,7 +201,7 @@ peripherals!( PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, - PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3 + PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l433rb.rs b/embassy-stm32/src/pac/stm32l433rb.rs index 2736824db..3d3c1e40f 100644 --- a/embassy-stm32/src/pac/stm32l433rb.rs +++ b/embassy-stm32/src/pac/stm32l433rb.rs @@ -128,6 +128,12 @@ impl_gpio_pin!(PH14, 7, 14, EXTI14); impl_gpio_pin!(PH15, 7, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -180,6 +186,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -194,7 +201,7 @@ peripherals!( PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, - PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3 + PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l433rc.rs b/embassy-stm32/src/pac/stm32l433rc.rs index 2736824db..3d3c1e40f 100644 --- a/embassy-stm32/src/pac/stm32l433rc.rs +++ b/embassy-stm32/src/pac/stm32l433rc.rs @@ -128,6 +128,12 @@ impl_gpio_pin!(PH14, 7, 14, EXTI14); impl_gpio_pin!(PH15, 7, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -180,6 +186,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -194,7 +201,7 @@ peripherals!( PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, - PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3 + PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l433vc.rs b/embassy-stm32/src/pac/stm32l433vc.rs index 2736824db..3d3c1e40f 100644 --- a/embassy-stm32/src/pac/stm32l433vc.rs +++ b/embassy-stm32/src/pac/stm32l433vc.rs @@ -128,6 +128,12 @@ impl_gpio_pin!(PH14, 7, 14, EXTI14); impl_gpio_pin!(PH15, 7, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -180,6 +186,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -194,7 +201,7 @@ peripherals!( PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, - PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3 + PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l442kc.rs b/embassy-stm32/src/pac/stm32l442kc.rs index 2bcd51e9f..b193e51e1 100644 --- a/embassy-stm32/src/pac/stm32l442kc.rs +++ b/embassy-stm32/src/pac/stm32l442kc.rs @@ -94,6 +94,10 @@ impl_gpio_pin!(PH14, 7, 14, EXTI14); impl_gpio_pin!(PH15, 7, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -119,6 +123,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -131,7 +136,8 @@ peripherals!( PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PH0, PH1, PH2, PH3, PH4, PH5, - PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2 + PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI3, SYSCFG, USART1, + USART2 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l443cc.rs b/embassy-stm32/src/pac/stm32l443cc.rs index 93f7c8bfa..ed14584f6 100644 --- a/embassy-stm32/src/pac/stm32l443cc.rs +++ b/embassy-stm32/src/pac/stm32l443cc.rs @@ -128,6 +128,12 @@ impl_gpio_pin!(PH14, 7, 14, EXTI14); impl_gpio_pin!(PH15, 7, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -180,6 +186,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -194,7 +201,7 @@ peripherals!( PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, - PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3 + PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l443rc.rs b/embassy-stm32/src/pac/stm32l443rc.rs index 93f7c8bfa..ed14584f6 100644 --- a/embassy-stm32/src/pac/stm32l443rc.rs +++ b/embassy-stm32/src/pac/stm32l443rc.rs @@ -128,6 +128,12 @@ impl_gpio_pin!(PH14, 7, 14, EXTI14); impl_gpio_pin!(PH15, 7, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -180,6 +186,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -194,7 +201,7 @@ peripherals!( PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, - PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3 + PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l443vc.rs b/embassy-stm32/src/pac/stm32l443vc.rs index 93f7c8bfa..ed14584f6 100644 --- a/embassy-stm32/src/pac/stm32l443vc.rs +++ b/embassy-stm32/src/pac/stm32l443vc.rs @@ -128,6 +128,12 @@ impl_gpio_pin!(PH14, 7, 14, EXTI14); impl_gpio_pin!(PH15, 7, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -180,6 +186,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -194,7 +201,7 @@ peripherals!( PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, - PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART3 + PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l496ae.rs b/embassy-stm32/src/pac/stm32l496ae.rs index 336533a16..3f97aeec1 100644 --- a/embassy-stm32/src/pac/stm32l496ae.rs +++ b/embassy-stm32/src/pac/stm32l496ae.rs @@ -179,6 +179,12 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -236,6 +242,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -253,7 +260,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3 + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l496ag.rs b/embassy-stm32/src/pac/stm32l496ag.rs index 336533a16..3f97aeec1 100644 --- a/embassy-stm32/src/pac/stm32l496ag.rs +++ b/embassy-stm32/src/pac/stm32l496ag.rs @@ -179,6 +179,12 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -236,6 +242,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -253,7 +260,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3 + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l496qe.rs b/embassy-stm32/src/pac/stm32l496qe.rs index 336533a16..3f97aeec1 100644 --- a/embassy-stm32/src/pac/stm32l496qe.rs +++ b/embassy-stm32/src/pac/stm32l496qe.rs @@ -179,6 +179,12 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -236,6 +242,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -253,7 +260,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3 + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l496qg.rs b/embassy-stm32/src/pac/stm32l496qg.rs index 336533a16..3f97aeec1 100644 --- a/embassy-stm32/src/pac/stm32l496qg.rs +++ b/embassy-stm32/src/pac/stm32l496qg.rs @@ -179,6 +179,12 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -236,6 +242,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -253,7 +260,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3 + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l496re.rs b/embassy-stm32/src/pac/stm32l496re.rs index 336533a16..3f97aeec1 100644 --- a/embassy-stm32/src/pac/stm32l496re.rs +++ b/embassy-stm32/src/pac/stm32l496re.rs @@ -179,6 +179,12 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -236,6 +242,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -253,7 +260,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3 + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l496rg.rs b/embassy-stm32/src/pac/stm32l496rg.rs index 336533a16..3f97aeec1 100644 --- a/embassy-stm32/src/pac/stm32l496rg.rs +++ b/embassy-stm32/src/pac/stm32l496rg.rs @@ -179,6 +179,12 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -236,6 +242,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -253,7 +260,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3 + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l496ve.rs b/embassy-stm32/src/pac/stm32l496ve.rs index 336533a16..3f97aeec1 100644 --- a/embassy-stm32/src/pac/stm32l496ve.rs +++ b/embassy-stm32/src/pac/stm32l496ve.rs @@ -179,6 +179,12 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -236,6 +242,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -253,7 +260,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3 + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l496vg.rs b/embassy-stm32/src/pac/stm32l496vg.rs index 336533a16..3f97aeec1 100644 --- a/embassy-stm32/src/pac/stm32l496vg.rs +++ b/embassy-stm32/src/pac/stm32l496vg.rs @@ -179,6 +179,12 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -236,6 +242,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -253,7 +260,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3 + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l496wg.rs b/embassy-stm32/src/pac/stm32l496wg.rs index 336533a16..3f97aeec1 100644 --- a/embassy-stm32/src/pac/stm32l496wg.rs +++ b/embassy-stm32/src/pac/stm32l496wg.rs @@ -179,6 +179,12 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -236,6 +242,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -253,7 +260,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3 + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l496ze.rs b/embassy-stm32/src/pac/stm32l496ze.rs index 336533a16..3f97aeec1 100644 --- a/embassy-stm32/src/pac/stm32l496ze.rs +++ b/embassy-stm32/src/pac/stm32l496ze.rs @@ -179,6 +179,12 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -236,6 +242,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -253,7 +260,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3 + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l496zg.rs b/embassy-stm32/src/pac/stm32l496zg.rs index 336533a16..3f97aeec1 100644 --- a/embassy-stm32/src/pac/stm32l496zg.rs +++ b/embassy-stm32/src/pac/stm32l496zg.rs @@ -179,6 +179,12 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -236,6 +242,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -253,7 +260,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3 + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4a6ag.rs b/embassy-stm32/src/pac/stm32l4a6ag.rs index 2bc671656..2fc3593f9 100644 --- a/embassy-stm32/src/pac/stm32l4a6ag.rs +++ b/embassy-stm32/src/pac/stm32l4a6ag.rs @@ -179,6 +179,12 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -236,6 +242,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -253,7 +260,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3 + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4a6qg.rs b/embassy-stm32/src/pac/stm32l4a6qg.rs index 2bc671656..2fc3593f9 100644 --- a/embassy-stm32/src/pac/stm32l4a6qg.rs +++ b/embassy-stm32/src/pac/stm32l4a6qg.rs @@ -179,6 +179,12 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -236,6 +242,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -253,7 +260,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3 + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4a6rg.rs b/embassy-stm32/src/pac/stm32l4a6rg.rs index 2bc671656..2fc3593f9 100644 --- a/embassy-stm32/src/pac/stm32l4a6rg.rs +++ b/embassy-stm32/src/pac/stm32l4a6rg.rs @@ -179,6 +179,12 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -236,6 +242,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -253,7 +260,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3 + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4a6vg.rs b/embassy-stm32/src/pac/stm32l4a6vg.rs index 2bc671656..2fc3593f9 100644 --- a/embassy-stm32/src/pac/stm32l4a6vg.rs +++ b/embassy-stm32/src/pac/stm32l4a6vg.rs @@ -179,6 +179,12 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -236,6 +242,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -253,7 +260,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3 + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4a6zg.rs b/embassy-stm32/src/pac/stm32l4a6zg.rs index 2bc671656..2fc3593f9 100644 --- a/embassy-stm32/src/pac/stm32l4a6zg.rs +++ b/embassy-stm32/src/pac/stm32l4a6zg.rs @@ -179,6 +179,12 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub const USART1: usart::Usart = usart::Usart(0x40013800 as _); impl_usart!(USART1); @@ -236,6 +242,7 @@ pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; pub use regs::usart_v2 as usart; mod regs; @@ -253,7 +260,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG, USART1, USART2, USART3 + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3 ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4p5ae.rs b/embassy-stm32/src/pac/stm32l4p5ae.rs index 7d8ca0863..ae3342f44 100644 --- a/embassy-stm32/src/pac/stm32l4p5ae.rs +++ b/embassy-stm32/src/pac/stm32l4p5ae.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4p5ag.rs b/embassy-stm32/src/pac/stm32l4p5ag.rs index 7d8ca0863..ae3342f44 100644 --- a/embassy-stm32/src/pac/stm32l4p5ag.rs +++ b/embassy-stm32/src/pac/stm32l4p5ag.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4p5ce.rs b/embassy-stm32/src/pac/stm32l4p5ce.rs index 7d8ca0863..ae3342f44 100644 --- a/embassy-stm32/src/pac/stm32l4p5ce.rs +++ b/embassy-stm32/src/pac/stm32l4p5ce.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4p5cg.rs b/embassy-stm32/src/pac/stm32l4p5cg.rs index 7d8ca0863..ae3342f44 100644 --- a/embassy-stm32/src/pac/stm32l4p5cg.rs +++ b/embassy-stm32/src/pac/stm32l4p5cg.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4p5qe.rs b/embassy-stm32/src/pac/stm32l4p5qe.rs index 7d8ca0863..ae3342f44 100644 --- a/embassy-stm32/src/pac/stm32l4p5qe.rs +++ b/embassy-stm32/src/pac/stm32l4p5qe.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4p5qg.rs b/embassy-stm32/src/pac/stm32l4p5qg.rs index 7d8ca0863..ae3342f44 100644 --- a/embassy-stm32/src/pac/stm32l4p5qg.rs +++ b/embassy-stm32/src/pac/stm32l4p5qg.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4p5re.rs b/embassy-stm32/src/pac/stm32l4p5re.rs index 7d8ca0863..ae3342f44 100644 --- a/embassy-stm32/src/pac/stm32l4p5re.rs +++ b/embassy-stm32/src/pac/stm32l4p5re.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4p5rg.rs b/embassy-stm32/src/pac/stm32l4p5rg.rs index 7d8ca0863..ae3342f44 100644 --- a/embassy-stm32/src/pac/stm32l4p5rg.rs +++ b/embassy-stm32/src/pac/stm32l4p5rg.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4p5ve.rs b/embassy-stm32/src/pac/stm32l4p5ve.rs index 7d8ca0863..ae3342f44 100644 --- a/embassy-stm32/src/pac/stm32l4p5ve.rs +++ b/embassy-stm32/src/pac/stm32l4p5ve.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4p5vg.rs b/embassy-stm32/src/pac/stm32l4p5vg.rs index 7d8ca0863..ae3342f44 100644 --- a/embassy-stm32/src/pac/stm32l4p5vg.rs +++ b/embassy-stm32/src/pac/stm32l4p5vg.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4p5ze.rs b/embassy-stm32/src/pac/stm32l4p5ze.rs index 7d8ca0863..ae3342f44 100644 --- a/embassy-stm32/src/pac/stm32l4p5ze.rs +++ b/embassy-stm32/src/pac/stm32l4p5ze.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4p5zg.rs b/embassy-stm32/src/pac/stm32l4p5zg.rs index 7d8ca0863..ae3342f44 100644 --- a/embassy-stm32/src/pac/stm32l4p5zg.rs +++ b/embassy-stm32/src/pac/stm32l4p5zg.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4q5ag.rs b/embassy-stm32/src/pac/stm32l4q5ag.rs index 03c5b6793..2313edd87 100644 --- a/embassy-stm32/src/pac/stm32l4q5ag.rs +++ b/embassy-stm32/src/pac/stm32l4q5ag.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4q5cg.rs b/embassy-stm32/src/pac/stm32l4q5cg.rs index 03c5b6793..2313edd87 100644 --- a/embassy-stm32/src/pac/stm32l4q5cg.rs +++ b/embassy-stm32/src/pac/stm32l4q5cg.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4q5qg.rs b/embassy-stm32/src/pac/stm32l4q5qg.rs index 03c5b6793..2313edd87 100644 --- a/embassy-stm32/src/pac/stm32l4q5qg.rs +++ b/embassy-stm32/src/pac/stm32l4q5qg.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4q5rg.rs b/embassy-stm32/src/pac/stm32l4q5rg.rs index 03c5b6793..2313edd87 100644 --- a/embassy-stm32/src/pac/stm32l4q5rg.rs +++ b/embassy-stm32/src/pac/stm32l4q5rg.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4q5vg.rs b/embassy-stm32/src/pac/stm32l4q5vg.rs index 03c5b6793..2313edd87 100644 --- a/embassy-stm32/src/pac/stm32l4q5vg.rs +++ b/embassy-stm32/src/pac/stm32l4q5vg.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4q5zg.rs b/embassy-stm32/src/pac/stm32l4q5zg.rs index 03c5b6793..2313edd87 100644 --- a/embassy-stm32/src/pac/stm32l4q5zg.rs +++ b/embassy-stm32/src/pac/stm32l4q5zg.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4r5ag.rs b/embassy-stm32/src/pac/stm32l4r5ag.rs index 70339417f..c97414141 100644 --- a/embassy-stm32/src/pac/stm32l4r5ag.rs +++ b/embassy-stm32/src/pac/stm32l4r5ag.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4r5ai.rs b/embassy-stm32/src/pac/stm32l4r5ai.rs index 70339417f..c97414141 100644 --- a/embassy-stm32/src/pac/stm32l4r5ai.rs +++ b/embassy-stm32/src/pac/stm32l4r5ai.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4r5qg.rs b/embassy-stm32/src/pac/stm32l4r5qg.rs index 70339417f..c97414141 100644 --- a/embassy-stm32/src/pac/stm32l4r5qg.rs +++ b/embassy-stm32/src/pac/stm32l4r5qg.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4r5qi.rs b/embassy-stm32/src/pac/stm32l4r5qi.rs index 70339417f..c97414141 100644 --- a/embassy-stm32/src/pac/stm32l4r5qi.rs +++ b/embassy-stm32/src/pac/stm32l4r5qi.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4r5vg.rs b/embassy-stm32/src/pac/stm32l4r5vg.rs index 70339417f..c97414141 100644 --- a/embassy-stm32/src/pac/stm32l4r5vg.rs +++ b/embassy-stm32/src/pac/stm32l4r5vg.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4r5vi.rs b/embassy-stm32/src/pac/stm32l4r5vi.rs index 70339417f..c97414141 100644 --- a/embassy-stm32/src/pac/stm32l4r5vi.rs +++ b/embassy-stm32/src/pac/stm32l4r5vi.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4r5zg.rs b/embassy-stm32/src/pac/stm32l4r5zg.rs index 70339417f..c97414141 100644 --- a/embassy-stm32/src/pac/stm32l4r5zg.rs +++ b/embassy-stm32/src/pac/stm32l4r5zg.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4r5zi.rs b/embassy-stm32/src/pac/stm32l4r5zi.rs index 70339417f..c97414141 100644 --- a/embassy-stm32/src/pac/stm32l4r5zi.rs +++ b/embassy-stm32/src/pac/stm32l4r5zi.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4r7ai.rs b/embassy-stm32/src/pac/stm32l4r7ai.rs index 9d88e59af..62ec35673 100644 --- a/embassy-stm32/src/pac/stm32l4r7ai.rs +++ b/embassy-stm32/src/pac/stm32l4r7ai.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4r7vi.rs b/embassy-stm32/src/pac/stm32l4r7vi.rs index 9d88e59af..62ec35673 100644 --- a/embassy-stm32/src/pac/stm32l4r7vi.rs +++ b/embassy-stm32/src/pac/stm32l4r7vi.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4r7zi.rs b/embassy-stm32/src/pac/stm32l4r7zi.rs index 9d88e59af..62ec35673 100644 --- a/embassy-stm32/src/pac/stm32l4r7zi.rs +++ b/embassy-stm32/src/pac/stm32l4r7zi.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4r9ag.rs b/embassy-stm32/src/pac/stm32l4r9ag.rs index edb5287c2..dedc37886 100644 --- a/embassy-stm32/src/pac/stm32l4r9ag.rs +++ b/embassy-stm32/src/pac/stm32l4r9ag.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4r9ai.rs b/embassy-stm32/src/pac/stm32l4r9ai.rs index edb5287c2..dedc37886 100644 --- a/embassy-stm32/src/pac/stm32l4r9ai.rs +++ b/embassy-stm32/src/pac/stm32l4r9ai.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4r9vg.rs b/embassy-stm32/src/pac/stm32l4r9vg.rs index edb5287c2..dedc37886 100644 --- a/embassy-stm32/src/pac/stm32l4r9vg.rs +++ b/embassy-stm32/src/pac/stm32l4r9vg.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4r9vi.rs b/embassy-stm32/src/pac/stm32l4r9vi.rs index edb5287c2..dedc37886 100644 --- a/embassy-stm32/src/pac/stm32l4r9vi.rs +++ b/embassy-stm32/src/pac/stm32l4r9vi.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4r9zg.rs b/embassy-stm32/src/pac/stm32l4r9zg.rs index edb5287c2..dedc37886 100644 --- a/embassy-stm32/src/pac/stm32l4r9zg.rs +++ b/embassy-stm32/src/pac/stm32l4r9zg.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4r9zi.rs b/embassy-stm32/src/pac/stm32l4r9zi.rs index edb5287c2..dedc37886 100644 --- a/embassy-stm32/src/pac/stm32l4r9zi.rs +++ b/embassy-stm32/src/pac/stm32l4r9zi.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4s5ai.rs b/embassy-stm32/src/pac/stm32l4s5ai.rs index e7d2eb0ce..95c47ae1a 100644 --- a/embassy-stm32/src/pac/stm32l4s5ai.rs +++ b/embassy-stm32/src/pac/stm32l4s5ai.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4s5qi.rs b/embassy-stm32/src/pac/stm32l4s5qi.rs index e7d2eb0ce..95c47ae1a 100644 --- a/embassy-stm32/src/pac/stm32l4s5qi.rs +++ b/embassy-stm32/src/pac/stm32l4s5qi.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4s5vi.rs b/embassy-stm32/src/pac/stm32l4s5vi.rs index e7d2eb0ce..95c47ae1a 100644 --- a/embassy-stm32/src/pac/stm32l4s5vi.rs +++ b/embassy-stm32/src/pac/stm32l4s5vi.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4s5zi.rs b/embassy-stm32/src/pac/stm32l4s5zi.rs index e7d2eb0ce..95c47ae1a 100644 --- a/embassy-stm32/src/pac/stm32l4s5zi.rs +++ b/embassy-stm32/src/pac/stm32l4s5zi.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4s7ai.rs b/embassy-stm32/src/pac/stm32l4s7ai.rs index 072ffc23b..6ff9debf6 100644 --- a/embassy-stm32/src/pac/stm32l4s7ai.rs +++ b/embassy-stm32/src/pac/stm32l4s7ai.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4s7vi.rs b/embassy-stm32/src/pac/stm32l4s7vi.rs index 072ffc23b..6ff9debf6 100644 --- a/embassy-stm32/src/pac/stm32l4s7vi.rs +++ b/embassy-stm32/src/pac/stm32l4s7vi.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4s7zi.rs b/embassy-stm32/src/pac/stm32l4s7zi.rs index 072ffc23b..6ff9debf6 100644 --- a/embassy-stm32/src/pac/stm32l4s7zi.rs +++ b/embassy-stm32/src/pac/stm32l4s7zi.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4s9ai.rs b/embassy-stm32/src/pac/stm32l4s9ai.rs index c3ef398d3..7031b3ac5 100644 --- a/embassy-stm32/src/pac/stm32l4s9ai.rs +++ b/embassy-stm32/src/pac/stm32l4s9ai.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4s9vi.rs b/embassy-stm32/src/pac/stm32l4s9vi.rs index c3ef398d3..7031b3ac5 100644 --- a/embassy-stm32/src/pac/stm32l4s9vi.rs +++ b/embassy-stm32/src/pac/stm32l4s9vi.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/pac/stm32l4s9zi.rs b/embassy-stm32/src/pac/stm32l4s9zi.rs index c3ef398d3..7031b3ac5 100644 --- a/embassy-stm32/src/pac/stm32l4s9zi.rs +++ b/embassy-stm32/src/pac/stm32l4s9zi.rs @@ -179,11 +179,18 @@ impl_gpio_pin!(PI14, 8, 14, EXTI14); impl_gpio_pin!(PI15, 8, 15, EXTI15); pub const RNG: rng::Rng = rng::Rng(0x50060800 as _); impl_rng!(RNG); +pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _); +impl_spi!(SPI1); +pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _); +impl_spi!(SPI2); +pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _); +impl_spi!(SPI3); pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x40010000 as _); pub use regs::dma_v1 as dma; pub use regs::exti_v1 as exti; pub use regs::gpio_v2 as gpio; pub use regs::rng_v1 as rng; +pub use regs::spi_v2 as spi; pub use regs::syscfg_l4 as syscfg; mod regs; use embassy_extras::peripherals; @@ -200,7 +207,7 @@ peripherals!( PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9, PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, - PI13, PI14, PI15, RNG, SYSCFG + PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG ); pub mod interrupt { diff --git a/embassy-stm32/src/spi.rs b/embassy-stm32/src/spi.rs new file mode 100644 index 000000000..b4b1d3d8c --- /dev/null +++ b/embassy-stm32/src/spi.rs @@ -0,0 +1,62 @@ +pub use embedded_hal::spi::{Mode, Phase, Polarity, MODE_0, MODE_1, MODE_2, MODE_3}; +use core::marker::PhantomData; +use embassy::interrupt::Interrupt; +use embedded_hal::blocking::spi::Write; +use crate::pac::spi + +pub struct Spi<'d, T: Instance> { + peri: T, + irq: T::Interrupt, + phantom: PhantomData<&'d mut T>, +} + +pub enum Error { + +} + +impl<'d, T: Instance> embedded_hal::blocking::spi::Write for Spim<'d, T> { + type Error = Error; + + fn write(&mut self, words: &[u8]) -> Result<(), Self::Error> { + let mut recv: &mut [u8] = &mut []; + + } +} + +mod sealed { + use super::*; + use embassy::util::AtomicWaker; + + pub struct State { + pub end_waker: AtomicWaker, + } + + impl State { + pub const fn new() -> Self { + Self { + end_waker: AtomicWaker::new(), + } + } + } + + pub trait Instance { + fn regs() -> &'static crate::pac::spi::Spi; + fn state() -> &'static State; + } +} + +pub trait Instance: sealed::Instance + 'static { + type Interrupt: Interrupt; +} + +macro_rules! impl_spi { + ($inst:ident) => { + impl crate::spi::sealed::Instance for peripherals::$inst { + fn regs() -> crate::pac::spi::Spi { + crate::pac::$inst + } + } + + impl crate::spi::Instance for peripherals::$inst {} + }; +} \ No newline at end of file