Update generated code
This commit is contained in:
parent
2ea12d96ee
commit
82ca5b495e
@ -183,6 +183,7 @@ stm32f479vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_r
|
|||||||
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
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< 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",]
|
||||||
@ -511,6 +512,121 @@ stm32h7b3ri = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_r
|
|||||||
stm32h7b3vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7b3vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
stm32h7b3zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
stm32h7b3zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
stm32h723ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h723vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h723ze = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h723zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h725ae = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h725ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h725ie = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h725ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h725re = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h725rg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h725ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h725vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h725ze = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h725zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h730ab = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h730ib = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h730vb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h730zb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h733vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h733zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h735ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h735ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h735rg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h735vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h735zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742xg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h742zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743xg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h743zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h745bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h745bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h745ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h745ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h745xg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h745xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h745zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h745zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h747ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h747ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h747bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h747bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h747ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h747ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h747xg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h747xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h747zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h750ib = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h750vb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h750xb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h750zb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h753ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h753bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h753ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h753vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h753xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h753zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h755bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h755ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h755xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h755zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h757ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h757bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h757ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h757xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h757zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3lg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3li = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3ng = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3ni = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3qi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3rg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3ri = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7a3zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7b0ab = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7b0ib = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7b0rb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7b0vb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7b0zb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7b3ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7b3ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7b3li = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7b3ni = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7b3qi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7b3ri = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7b3vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
stm32h7b3zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
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",]
|
||||||
@ -657,8 +773,12 @@ _dma_v1 = []
|
|||||||
_dma_v2 = []
|
_dma_v2 = []
|
||||||
_exti = []
|
_exti = []
|
||||||
_exti_v1 = []
|
_exti_v1 = []
|
||||||
|
_flash = []
|
||||||
|
_flash_h7 = []
|
||||||
_gpio = []
|
_gpio = []
|
||||||
_gpio_v2 = []
|
_gpio_v2 = []
|
||||||
|
_pwr = []
|
||||||
|
_pwr_h7 = []
|
||||||
_rcc = []
|
_rcc = []
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
_rcc_l0 = []
|
_rcc_l0 = []
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -283,6 +285,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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 +307,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -283,6 +285,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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 +307,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -294,6 +296,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -315,6 +318,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -294,6 +296,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -315,6 +318,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -294,6 +296,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -315,6 +318,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -294,6 +296,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -315,6 +318,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -294,6 +296,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -315,6 +318,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -294,6 +296,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -315,6 +318,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -275,6 +277,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -296,6 +299,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -275,6 +277,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -296,6 +299,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -283,6 +285,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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 +307,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -283,6 +285,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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 +307,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -294,6 +296,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -315,6 +318,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -294,6 +296,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -315,6 +318,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -294,6 +296,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -315,6 +318,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -294,6 +296,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -315,6 +318,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -283,6 +285,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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 +307,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -294,6 +296,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -315,6 +318,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -283,6 +285,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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 +307,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -294,6 +296,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -315,6 +318,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -294,6 +296,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -315,6 +318,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -294,6 +296,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -315,6 +318,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -275,6 +277,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -296,6 +299,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -283,6 +285,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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 +307,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -194,6 +195,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -294,6 +296,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -315,6 +318,33 @@ embassy_extras::peripherals!(
|
|||||||
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
PH12, PH13, PH14, PH15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12,
|
||||||
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
PJ13, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13,
|
||||||
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK14, PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -298,7 +300,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -311,6 +315,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -326,6 +331,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -298,7 +300,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -311,6 +315,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -326,6 +331,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -298,7 +300,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -311,6 +315,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -326,6 +331,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -298,7 +300,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -311,6 +315,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -326,6 +331,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -298,7 +300,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -311,6 +315,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -326,6 +331,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -298,7 +300,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -311,6 +315,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -326,6 +331,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -298,7 +300,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -311,6 +315,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -326,6 +331,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -309,7 +311,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -322,6 +326,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -337,6 +342,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
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);
|
||||||
@ -298,7 +300,9 @@ embassy_extras::peripherals!(
|
|||||||
=======
|
=======
|
||||||
pub use regs::dma_v2 as dma;
|
pub use regs::dma_v2 as dma;
|
||||||
pub use regs::exti_v1 as exti;
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
pub use regs::gpio_v2 as gpio;
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
pub use regs::rcc_h7 as rcc;
|
pub use regs::rcc_h7 as rcc;
|
||||||
pub use regs::rng_v1 as rng;
|
pub use regs::rng_v1 as rng;
|
||||||
pub use regs::sdmmc_v2 as sdmmc;
|
pub use regs::sdmmc_v2 as sdmmc;
|
||||||
@ -311,6 +315,7 @@ peripherals!(
|
|||||||
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,
|
||||||
|
<<<<<<< HEAD
|
||||||
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PB0, PB1,
|
||||||
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1, PC2, PC3,
|
||||||
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3, PD4, PD5,
|
||||||
@ -326,6 +331,19 @@ peripherals!(
|
|||||||
=======
|
=======
|
||||||
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
PK15, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
>>>>>>> 3baa749 (Add pac RCC for H7 (generated))
|
||||||
|
=======
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RCC, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -314,6 +316,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -336,6 +339,34 @@ embassy_extras::peripherals!(
|
|||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -314,6 +316,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -336,6 +339,34 @@ embassy_extras::peripherals!(
|
|||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -314,6 +316,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -336,6 +339,34 @@ embassy_extras::peripherals!(
|
|||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -314,6 +316,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -336,6 +339,34 @@ embassy_extras::peripherals!(
|
|||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -314,6 +316,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -336,6 +339,34 @@ embassy_extras::peripherals!(
|
|||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -314,6 +316,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -336,6 +339,34 @@ embassy_extras::peripherals!(
|
|||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -314,6 +316,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -336,6 +339,34 @@ embassy_extras::peripherals!(
|
|||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -314,6 +316,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -336,6 +339,34 @@ embassy_extras::peripherals!(
|
|||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -303,6 +305,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -325,6 +328,34 @@ embassy_extras::peripherals!(
|
|||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -295,6 +297,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -317,6 +320,34 @@ embassy_extras::peripherals!(
|
|||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -295,6 +297,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -317,6 +320,34 @@ embassy_extras::peripherals!(
|
|||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -303,6 +305,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -325,6 +328,34 @@ embassy_extras::peripherals!(
|
|||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
@ -24,6 +24,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||||||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||||
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
pub const EXTI: exti::Exti = exti::Exti(0x58000000 as _);
|
||||||
|
pub const FLASH: flash::Flash = flash::Flash(0x52002000 as _);
|
||||||
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
pub const GPIOA: gpio::Gpio = gpio::Gpio(0x58020000 as _);
|
||||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||||
@ -211,6 +212,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 PWR: pwr::Pwr = pwr::Pwr(0x58024800 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 _);
|
||||||
@ -303,6 +305,7 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||||||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||||
|
<<<<<<< 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;
|
||||||
@ -325,6 +328,34 @@ embassy_extras::peripherals!(
|
|||||||
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
PI13, PI14, PI15, PJ0, PJ1, PJ2, PJ3, PJ4, PJ5, PJ6, PJ7, PJ8, PJ9, PJ10, PJ11, PJ12, PJ13,
|
||||||
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
|
||||||
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
PK15, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||||
|
=======
|
||||||
|
pub use regs::dma_v2 as dma;
|
||||||
|
pub use regs::exti_v1 as exti;
|
||||||
|
pub use regs::flash_h7 as flash;
|
||||||
|
pub use regs::gpio_v2 as gpio;
|
||||||
|
pub use regs::pwr_h7 as pwr;
|
||||||
|
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!(
|
||||||
|
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,
|
||||||
|
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
|
||||||
|
FLASH, PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15,
|
||||||
|
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, PC0, PC1,
|
||||||
|
PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PD0, PD1, PD2, PD3,
|
||||||
|
PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PE0, PE1, PE2, PE3, PE4, PE5,
|
||||||
|
PE6, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7,
|
||||||
|
PF8, PF9, PF10, PF11, PF12, PF13, PF14, PF15, PG0, PG1, PG2, PG3, PG4, PG5, PG6, PG7, PG8, PG9,
|
||||||
|
PG10, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10,
|
||||||
|
PH11, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11,
|
||||||
|
PI12, PI13, PI14, PI15, 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, PK15, PWR, RNG, SDMMC1, SDMMC2, SYSCFG
|
||||||
|
>>>>>>> c084e70 (Update generated code)
|
||||||
);
|
);
|
||||||
pub fn DMA(n: u8) -> dma::Dma {
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
match n {
|
match n {
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user