Add pac RCC for H7 (generated)
This commit is contained in:
parent
3d520f8abe
commit
7e388fcf58
@ -182,6 +182,7 @@ 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",]
|
||||||
|
<<<<<<< HEAD
|
||||||
stm32h723ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_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", "_spi", "_spi_v3", "_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", "_spi", "_spi_v3", "_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",]
|
||||||
@ -395,6 +396,121 @@ stm32l083rz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_r
|
|||||||
stm32l083v8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
stm32l083v8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
stm32l083vb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
stm32l083vb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
stm32l083vz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
stm32l083vz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
=======
|
||||||
|
stm32h723ve = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h723ze = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h725ae = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h725ie = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h725re = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h725ve = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h725ze = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h730ab = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h730vb = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h733vg = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h735ag = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h735rg = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h735zg = [ "_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", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742xg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743xg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h745bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h745bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h745ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h745ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h745xg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h745xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h745zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h745zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h747ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h747ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h747bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h747bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h747ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h747ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h747xg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h747xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h747zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h750ib = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h750vb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h750xb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h750zb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h753ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h753bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h753ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h753vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h753xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h753zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h755bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h755ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h755xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h755zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h757ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h757bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h757ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h757xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h757zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_h7", "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3ai = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3ii = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3li = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3ni = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3rg = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3vg = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3zg = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7b0ab = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7b0rb = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7b0zb = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7b3ii = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7b3ni = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7b3ri = [ "_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", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7b3zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
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",]
|
||||||
@ -544,7 +660,11 @@ _exti_v1 = []
|
|||||||
_gpio = []
|
_gpio = []
|
||||||
_gpio_v2 = []
|
_gpio_v2 = []
|
||||||
_rcc = []
|
_rcc = []
|
||||||
|
<<<<<<< HEAD
|
||||||
_rcc_l0 = []
|
_rcc_l0 = []
|
||||||
|
=======
|
||||||
|
_rcc_h7 = []
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
_rng = [ "rand_core",]
|
_rng = [ "rand_core",]
|
||||||
_rng_v1 = []
|
_rng_v1 = []
|
||||||
_sdmmc = [ "sdio-host",]
|
_sdmmc = [ "sdio-host",]
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -285,6 +286,7 @@ impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
|||||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -293,6 +295,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -306,7 +321,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -285,6 +286,7 @@ impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
|||||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -293,6 +295,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -306,7 +321,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -285,6 +286,7 @@ impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
|||||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -293,6 +295,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -306,7 +321,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -285,6 +286,7 @@ impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
|||||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -293,6 +295,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -306,7 +321,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, RNG);
|
impl_rng!(RNG, RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -285,6 +286,7 @@ impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
|||||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -293,6 +295,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -306,7 +321,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, HASH_RNG);
|
impl_rng!(RNG, HASH_RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, HASH_RNG);
|
impl_rng!(RNG, HASH_RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -285,6 +286,7 @@ impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
|||||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -293,6 +295,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -306,7 +321,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, HASH_RNG);
|
impl_rng!(RNG, HASH_RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, HASH_RNG);
|
impl_rng!(RNG, HASH_RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, HASH_RNG);
|
impl_rng!(RNG, HASH_RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, HASH_RNG);
|
impl_rng!(RNG, HASH_RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, HASH_RNG);
|
impl_rng!(RNG, HASH_RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, HASH_RNG);
|
impl_rng!(RNG, HASH_RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -285,6 +286,7 @@ impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
|||||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -293,6 +295,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -306,7 +321,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, HASH_RNG);
|
impl_rng!(RNG, HASH_RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, HASH_RNG);
|
impl_rng!(RNG, HASH_RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, HASH_RNG);
|
impl_rng!(RNG, HASH_RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, HASH_RNG);
|
impl_rng!(RNG, HASH_RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, HASH_RNG);
|
impl_rng!(RNG, HASH_RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, HASH_RNG);
|
impl_rng!(RNG, HASH_RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, HASH_RNG);
|
impl_rng!(RNG, HASH_RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, HASH_RNG);
|
impl_rng!(RNG, HASH_RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, HASH_RNG);
|
impl_rng!(RNG, HASH_RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, HASH_RNG);
|
impl_rng!(RNG, HASH_RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -296,6 +297,7 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||||||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -304,6 +306,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -317,7 +332,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -211,6 +211,7 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||||||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||||
|
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||||
impl_rng!(RNG, HASH_RNG);
|
impl_rng!(RNG, HASH_RNG);
|
||||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||||
@ -285,6 +286,7 @@ impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
|||||||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
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 _);
|
||||||
|
<<<<<<< HEAD
|
||||||
pub use super::regs::dma_v2 as dma;
|
pub use super::regs::dma_v2 as dma;
|
||||||
pub use super::regs::exti_v1 as exti;
|
pub use super::regs::exti_v1 as exti;
|
||||||
pub use super::regs::gpio_v2 as gpio;
|
pub use super::regs::gpio_v2 as gpio;
|
||||||
@ -293,6 +295,19 @@ pub use super::regs::sdmmc_v2 as sdmmc;
|
|||||||
pub use super::regs::spi_v3 as spi;
|
pub use super::regs::spi_v3 as spi;
|
||||||
pub use super::regs::syscfg_h7 as syscfg;
|
pub use super::regs::syscfg_h7 as syscfg;
|
||||||
embassy_extras::peripherals!(
|
embassy_extras::peripherals!(
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::rcc_h7 as rcc;
|
||||||
|
pub use regs::rng_v1 as rng;
|
||||||
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
|
pub use regs::syscfg_h7 as syscfg;
|
||||||
|
mod regs;
|
||||||
|
use embassy_extras::peripherals;
|
||||||
|
pub use regs::generic;
|
||||||
|
peripherals!(
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
|
||||||
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
|
||||||
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
@ -306,7 +321,11 @@ embassy_extras::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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit dc3c92f0323bfe2967ecd8f92b2c53fb3dfb44fa
|
Subproject commit dc1cd90181c0deb2874f5145f76a03658f50d924
|
Loading…
Reference in New Issue
Block a user