commit
0bc440233c
@ -182,119 +182,119 @@ stm32f479vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_r
|
|||||||
stm32f479vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
stm32f479vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||||
stm32f479zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
stm32f479zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||||
stm32f479zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
stm32f479zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||||
stm32h723ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h723ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h723vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h723vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h723ze = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h723ze = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h723zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h723zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h725ae = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h725ae = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h725ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h725ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h725ie = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h725ie = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h725ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h725ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h725re = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h725re = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h725rg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h725rg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h725ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h725ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h725vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h725vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h725ze = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h725ze = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h725zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h725zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h730ab = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h730ab = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h730ib = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h730ib = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h730vb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h730vb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h730zb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h730zb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h733vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h733vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h733zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h733zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h735ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h735ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h735ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h735ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h735rg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h735rg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h735vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h735vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h735zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h735zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h742ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h742ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h742ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h742ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h742bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h742bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h742bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h742bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h742ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h742ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h742ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h742ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h742vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h742vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h742vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h742vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h742xg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h742xg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h742xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h742xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h742zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h742zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h742zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h742zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h743ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h743ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h743ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h743ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h743bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h743bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h743bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h743bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h743ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h743ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h743ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h743ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h743vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h743vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h743vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h743vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h743xg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h743xg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h743xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h743xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h743zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h743zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h743zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h743zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h745bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h745bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h745bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h745bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h745ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h745ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h745ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h745ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h745xg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h745xg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h745xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h745xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h745zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h745zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h745zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h745zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h747ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h747ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h747ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h747ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h747bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h747bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h747bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h747bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h747ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h747ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h747ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h747ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h747xg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h747xg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h747xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h747xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h747zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h747zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h750ib = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h750ib = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h750vb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h750vb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h750xb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h750xb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h750zb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h750zb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h753ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h753ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h753bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h753bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h753ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h753ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h753vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h753vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h753xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h753xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h753zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h753zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h755bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h755bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h755ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h755ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h755xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h755xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h755zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h755zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h757ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h757ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h757bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h757bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h757ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h757ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h757xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h757xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h757zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h757zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7a3ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7a3ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7a3ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7a3ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7a3ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7a3ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7a3ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7a3ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7a3lg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7a3lg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7a3li = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7a3li = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7a3ng = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7a3ng = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7a3ni = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7a3ni = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7a3qi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7a3qi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7a3rg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7a3rg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7a3ri = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7a3ri = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7a3vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7a3vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7a3vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7a3vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7a3zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7a3zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7a3zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7a3zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7b0ab = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7b0ab = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7b0ib = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7b0ib = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7b0rb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7b0rb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7b0vb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7b0vb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7b0zb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7b0zb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7b3ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7b3ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7b3ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7b3ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7b3li = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7b3li = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7b3ni = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7b3ni = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7b3qi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7b3qi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7b3ri = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7b3ri = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7b3vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7b3vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7b3zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7b3zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32l412c8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
stm32l412c8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||||
stm32l412cb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
stm32l412cb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||||
stm32l412k8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
stm32l412k8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||||
@ -450,6 +450,7 @@ _sdmmc_v2 = []
|
|||||||
_spi = []
|
_spi = []
|
||||||
_spi_v1 = []
|
_spi_v1 = []
|
||||||
_spi_v2 = []
|
_spi_v2 = []
|
||||||
|
_spi_v3 = []
|
||||||
_stm32f4 = []
|
_stm32f4 = []
|
||||||
_stm32h7 = []
|
_stm32h7 = []
|
||||||
_stm32l4 = []
|
_stm32l4 = []
|
||||||
|
@ -119,6 +119,7 @@ for chip in chips.values():
|
|||||||
f.write(f'impl_rng!({name}, HASH_RNG);')
|
f.write(f'impl_rng!({name}, HASH_RNG);')
|
||||||
|
|
||||||
if block_mod == 'spi':
|
if block_mod == 'spi':
|
||||||
|
if 'clock' in peri:
|
||||||
clock = peri['clock']
|
clock = peri['clock']
|
||||||
f.write(f'impl_spi!({name}, {clock});')
|
f.write(f'impl_spi!({name}, {clock});')
|
||||||
for pin, funcs in af.items():
|
for pin, funcs in af.items():
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -229,12 +229,66 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +306,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,66 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +306,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,77 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +317,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,77 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +317,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,77 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +317,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,77 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +317,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,77 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +317,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,77 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +317,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,58 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +298,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,58 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +298,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,66 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +306,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,66 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +306,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,77 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +317,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,77 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +317,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,77 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +317,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,77 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +317,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,66 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +306,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,77 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +317,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,66 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +306,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,77 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +317,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,77 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +317,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,77 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +317,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,58 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +298,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,66 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +306,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -229,12 +229,77 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -252,7 +317,7 @@ peripherals!(
|
|||||||
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
|
||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,58 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +309,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,58 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +309,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,58 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +309,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,58 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +309,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,58 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +309,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,58 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +309,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,58 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +309,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,69 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +320,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -239,12 +239,58 @@ impl_sdmmc_pin!(SDMMC2, D7Pin, PC7, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
impl_sdmmc_pin!(SDMMC2, CkPin, PD6, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
impl_sdmmc_pin!(SDMMC2, CmdPin, PD7, 11);
|
||||||
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
impl_sdmmc_pin!(SDMMC2, D2Pin, PG11, 10);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -263,7 +309,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -246,12 +246,80 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -270,7 +338,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -246,12 +246,80 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -270,7 +338,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -246,12 +246,80 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -270,7 +338,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -246,12 +246,80 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -270,7 +338,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -246,12 +246,80 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -270,7 +338,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -246,12 +246,80 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -270,7 +338,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -246,12 +246,80 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -270,7 +338,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -246,12 +246,80 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI5: spi::Spi = spi::Spi(0x40015000 as _);
|
||||||
|
impl_spi!(SPI5, APB2);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PF7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PF8, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PF9, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PH6, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PH7, 5);
|
||||||
|
impl_spi_pin!(SPI5, MosiPin, PJ10, 5);
|
||||||
|
impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
||||||
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -270,7 +338,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -246,12 +246,69 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -270,7 +327,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -246,12 +246,61 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -270,7 +319,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -246,12 +246,61 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -270,7 +319,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
@ -246,12 +246,69 @@ impl_sdmmc_pin!(SDMMC2, D3Pin, PG12, 10);
|
|||||||
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
impl_sdmmc_pin!(SDMMC2, D6Pin, PG13, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
impl_sdmmc_pin!(SDMMC2, D7Pin, PG14, 10);
|
||||||
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
impl_sdmmc_pin!(SDMMC2, D0Pin, PG9, 11);
|
||||||
|
pub const SPI1: spi::Spi = spi::Spi(0x40013000 as _);
|
||||||
|
impl_spi!(SPI1, APB2);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PA5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PA6, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PA7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PB3, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PB4, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PB5, 5);
|
||||||
|
impl_spi_pin!(SPI1, MosiPin, PD7, 5);
|
||||||
|
impl_spi_pin!(SPI1, SckPin, PG11, 5);
|
||||||
|
impl_spi_pin!(SPI1, MisoPin, PG9, 5);
|
||||||
|
pub const SPI2: spi::Spi = spi::Spi(0x40003800 as _);
|
||||||
|
impl_spi!(SPI2, APB1);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA12, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PA9, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB10, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PB13, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PB14, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PB15, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PC2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PC3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PD3, 5);
|
||||||
|
impl_spi_pin!(SPI2, SckPin, PI1, 5);
|
||||||
|
impl_spi_pin!(SPI2, MisoPin, PI2, 5);
|
||||||
|
impl_spi_pin!(SPI2, MosiPin, PI3, 5);
|
||||||
|
pub const SPI3: spi::Spi = spi::Spi(0x40003c00 as _);
|
||||||
|
impl_spi!(SPI3, APB1);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB2, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PB3, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PB4, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PB5, 7);
|
||||||
|
impl_spi_pin!(SPI3, SckPin, PC10, 6);
|
||||||
|
impl_spi_pin!(SPI3, MisoPin, PC11, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PC12, 6);
|
||||||
|
impl_spi_pin!(SPI3, MosiPin, PD6, 5);
|
||||||
|
pub const SPI4: spi::Spi = spi::Spi(0x40013400 as _);
|
||||||
|
impl_spi!(SPI4, APB2);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE12, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE13, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE14, 5);
|
||||||
|
impl_spi_pin!(SPI4, SckPin, PE2, 5);
|
||||||
|
impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
||||||
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
|
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||||
|
impl_spi!(SPI6, APB4);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PA5, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PA6, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PA7, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PB3, 8);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PB4, 8);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PB5, 8);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PC12, 5);
|
||||||
|
impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
||||||
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::spi_v3 as spi;
|
||||||
pub use regs::syscfg_h7 as syscfg;
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
mod regs;
|
mod regs;
|
||||||
use embassy_extras::peripherals;
|
use embassy_extras::peripherals;
|
||||||
@ -270,7 +327,7 @@ peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
|
||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
);
|
);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user