commit
5de9d6caed
126 changed files with 27560 additions and 14510 deletions
|
@ -31,6 +31,9 @@ defmt-info = [ ]
|
|||
defmt-warn = [ ]
|
||||
defmt-error = [ ]
|
||||
sdmmc-rs = ["embedded-sdmmc"]
|
||||
# Unstable feature to give access to the pac used in embassy-stm32, changes with this feature don't
|
||||
# follow semver
|
||||
pac = []
|
||||
|
||||
# BEGIN GENERATED FEATURES
|
||||
stm32f401cb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_spi", "_spi_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
|
@ -182,119 +185,119 @@ stm32f479vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_r
|
|||
stm32f479vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32f4", "_syscfg", "_syscfg_f4", "_usart", "_usart_v1",]
|
||||
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",]
|
||||
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",]
|
||||
stm32h723ze = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h723zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h725ae = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h725ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h725ie = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h725ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h725re = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h725rg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h725ve = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h725vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h725ze = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h725zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h730ab = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h730ib = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h730vb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h730zb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h733vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h733zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h735ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h735ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h735rg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h735vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h735zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742xg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743xg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h745bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h745bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h745ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h745ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h745xg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h745xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h745zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h745zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h747ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h747ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h747bg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h747bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h747ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h747ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h747xg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h747xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h747zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h750ib = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h750vb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h750xb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h750zb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h753ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h753bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h753ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h753vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h753xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h753zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h755bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h755ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h755xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h755zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h757ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h757bi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h757ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h757xi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h757zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3ag = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3ig = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3lg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3li = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3ng = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3ni = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3qi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3rg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3ri = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3vg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3zg = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b0ab = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b0ib = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b0rb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b0vb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b0zb = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b3ai = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b3ii = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b3li = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b3ni = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b3qi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b3ri = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b3vi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b3zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h723ve = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h723vg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h723ze = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h723zg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h725ae = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h725ag = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h725ie = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h725ig = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h725re = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h725rg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h725ve = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h725vg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h725ze = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h725zg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h730ab = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h730ib = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h730vb = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h730zb = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h733vg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h733zg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h735ag = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h735ig = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h735rg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h735vg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h735zg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742ag = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742ai = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742bg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742bi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742ig = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742ii = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742vg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742vi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742xg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742xi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742zg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h742zi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743ag = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743ai = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743bg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743bi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743ig = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743ii = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743vg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743vi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743xg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743xi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743zg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h743zi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h745bg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h745bi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h745ig = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h745ii = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h745xg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h745xi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h745zg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h745zi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h747ag = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h747ai = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h747bg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h747bi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h747ig = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h747ii = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h747xg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h747xi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h747zi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h750ib = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h750vb = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h750xb = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h750zb = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h753ai = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h753bi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h753ii = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h753vi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h753xi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h753zi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h755bi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h755ii = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h755xi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h755zi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h757ai = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h757bi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h757ii = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h757xi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h757zi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rcc", "_rcc_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3ag = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3ai = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3ig = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3ii = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3lg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3li = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3ng = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3ni = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3qi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3rg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3ri = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3vg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3vi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3zg = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7a3zi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b0ab = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b0ib = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b0rb = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b0vb = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b0zb = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b3ai = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b3ii = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b3li = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b3ni = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b3qi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b3ri = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b3vi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32h7b3zi = [ "_dbgmcu", "_dbgmcu_h7", "_dma", "_dma_v2", "_exti", "_exti_v1", "_flash", "_flash_h7", "_gpio", "_gpio_v2", "_i2c", "_i2c_v2", "_pwr", "_pwr_h7", "_rng", "_rng_v1", "_sdmmc", "_sdmmc_v2", "_spi", "_spi_v3", "_stm32h7", "_syscfg", "_syscfg_h7",]
|
||||
stm32l010c6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||
stm32l010f4 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||
stm32l010k4 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||
|
@ -536,14 +539,23 @@ stm32l4s7zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_r
|
|||
stm32l4s9ai = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s9vi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
stm32l4s9zi = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_spi", "_spi_v2", "_stm32l4p", "_syscfg", "_syscfg_l4",]
|
||||
_dbgmcu = []
|
||||
_dbgmcu_h7 = []
|
||||
_dma = []
|
||||
_dma_v1 = []
|
||||
_dma_v2 = []
|
||||
_exti = []
|
||||
_exti_v1 = []
|
||||
_flash = []
|
||||
_flash_h7 = []
|
||||
_gpio = []
|
||||
_gpio_v2 = []
|
||||
_i2c = []
|
||||
_i2c_v2 = []
|
||||
_pwr = []
|
||||
_pwr_h7 = []
|
||||
_rcc = []
|
||||
_rcc_h7 = []
|
||||
_rcc_l0 = []
|
||||
_rng = [ "rand_core",]
|
||||
_rng_v1 = []
|
||||
|
|
|
@ -42,7 +42,8 @@ with open('src/pac/mod.rs', 'w') as f:
|
|||
f'#[cfg_attr(feature="{chip["name"]}", path="{chip["name"]}.rs")]\n')
|
||||
f.write('mod chip;\n')
|
||||
f.write('pub use chip::*;\n')
|
||||
f.write('pub(crate) mod regs;\n')
|
||||
f.write('#[allow(dead_code, unused_imports)]\n')
|
||||
f.write('pub mod regs;\n')
|
||||
|
||||
# ========= Generate pac/stm32xxx.rs
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@ pub mod fmt;
|
|||
pub mod dma;
|
||||
pub mod exti;
|
||||
pub mod gpio;
|
||||
pub mod pwr;
|
||||
pub mod rcc;
|
||||
#[cfg(feature = "_rng")]
|
||||
pub mod rng;
|
||||
#[cfg(feature = "_sdmmc")]
|
||||
|
@ -23,8 +25,11 @@ pub mod spi;
|
|||
pub mod usart;
|
||||
|
||||
// This must go LAST so that it sees the `impl_foo!` macros
|
||||
mod pac;
|
||||
#[cfg(feature = "pac")]
|
||||
pub mod pac;
|
||||
|
||||
#[cfg(not(feature = "pac"))]
|
||||
mod pac;
|
||||
pub mod time;
|
||||
|
||||
pub use embassy_macros::interrupt;
|
||||
|
|
|
@ -503,4 +503,5 @@
|
|||
#[cfg_attr(feature = "stm32l4s9zi", path = "stm32l4s9zi.rs")]
|
||||
mod chip;
|
||||
pub use chip::*;
|
||||
pub(crate) mod regs;
|
||||
#[allow(dead_code, unused_imports)]
|
||||
pub mod regs;
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -283,27 +291,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -283,27 +291,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -294,27 +302,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -294,27 +302,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -294,27 +302,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -294,27 +302,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -294,27 +302,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -294,27 +302,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,11 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -275,27 +282,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,11 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -275,27 +282,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -283,27 +291,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -283,27 +291,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -294,27 +302,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -294,27 +302,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -294,27 +302,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -294,27 +302,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -283,27 +291,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -294,27 +302,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -283,27 +291,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -294,27 +302,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -294,27 +302,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -294,27 +302,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,11 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -275,27 +282,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -283,27 +291,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -194,6 +196,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const I2C5: i2c::I2c = i2c::I2c(0x40006400 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -294,27 +302,32 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, I2C5, PWR, RNG, SDMMC1, SDMMC2,
|
||||
SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -285,28 +293,34 @@ impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
|||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -285,28 +293,34 @@ impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
|||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -285,28 +293,34 @@ impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
|||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -285,28 +293,34 @@ impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
|||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -285,28 +293,34 @@ impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
|||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -285,28 +293,34 @@ impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
|||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -285,28 +293,34 @@ impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
|||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -296,28 +304,34 @@ impl_spi_pin!(SPI5, MisoPin, PJ11, 5);
|
|||
impl_spi_pin!(SPI5, SckPin, PK0, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,12 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RCC: rcc::Rcc = rcc::Rcc(0x58024400 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, HASH_RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -285,28 +293,34 @@ impl_spi_pin!(SPI4, MisoPin, PE5, 5);
|
|||
impl_spi_pin!(SPI4, MosiPin, PE6, 5);
|
||||
pub const SPI6: spi::Spi = spi::Spi(0x58001400 as _);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rcc_h7 as rcc;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RCC, RNG, SDMMC1, SDMMC2, SPI1,
|
||||
SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,11 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -314,28 +321,33 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RNG, SDMMC1, SDMMC2, SPI1, SPI2,
|
||||
SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,11 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -314,28 +321,33 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RNG, SDMMC1, SDMMC2, SPI1, SPI2,
|
||||
SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,11 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -314,28 +321,33 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RNG, SDMMC1, SDMMC2, SPI1, SPI2,
|
||||
SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,11 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -314,28 +321,33 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RNG, SDMMC1, SDMMC2, SPI1, SPI2,
|
||||
SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,11 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -314,28 +321,33 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RNG, SDMMC1, SDMMC2, SPI1, SPI2,
|
||||
SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,11 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -314,28 +321,33 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RNG, SDMMC1, SDMMC2, SPI1, SPI2,
|
||||
SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,11 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -314,28 +321,33 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RNG, SDMMC1, SDMMC2, SPI1, SPI2,
|
||||
SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,11 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -314,28 +321,33 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RNG, SDMMC1, SDMMC2, SPI1, SPI2,
|
||||
SPI3, SPI4, SPI5, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,11 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C2: i2c::I2c = i2c::I2c(0x40005800 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -303,28 +310,33 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI4, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C2, I2C3, I2C4, PWR, RNG, SDMMC1, SDMMC2, SPI1, SPI2,
|
||||
SPI3, SPI4, SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
pub fn GPIO(n: usize) -> gpio::Gpio {
|
||||
gpio::Gpio((0x58020000 + 0x400 * n) as _)
|
||||
}
|
||||
pub const DBGMCU: dbgmcu::Dbgmcu = dbgmcu::Dbgmcu(0x5c001000 as _);
|
||||
pub const DMA1: dma::Dma = dma::Dma(0x40020000 as _);
|
||||
impl_dma_channel!(DMA1_CH0, 0, 0);
|
||||
impl_dma_channel!(DMA1_CH1, 0, 1);
|
||||
|
@ -24,6 +25,7 @@ impl_dma_channel!(DMA2_CH5, 1, 5);
|
|||
impl_dma_channel!(DMA2_CH6, 1, 6);
|
||||
impl_dma_channel!(DMA2_CH7, 1, 7);
|
||||
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 _);
|
||||
impl_gpio_pin!(PA0, 0, 0, EXTI0);
|
||||
impl_gpio_pin!(PA1, 0, 1, EXTI1);
|
||||
|
@ -211,6 +213,10 @@ impl_gpio_pin!(PK12, 10, 12, EXTI12);
|
|||
impl_gpio_pin!(PK13, 10, 13, EXTI13);
|
||||
impl_gpio_pin!(PK14, 10, 14, EXTI14);
|
||||
impl_gpio_pin!(PK15, 10, 15, EXTI15);
|
||||
pub const I2C1: i2c::I2c = i2c::I2c(0x40005400 as _);
|
||||
pub const I2C3: i2c::I2c = i2c::I2c(0x40005c00 as _);
|
||||
pub const I2C4: i2c::I2c = i2c::I2c(0x58001c00 as _);
|
||||
pub const PWR: pwr::Pwr = pwr::Pwr(0x58024800 as _);
|
||||
pub const RNG: rng::Rng = rng::Rng(0x48021800 as _);
|
||||
impl_rng!(RNG, RNG);
|
||||
pub const SDMMC1: sdmmc::Sdmmc = sdmmc::Sdmmc(0x52007000 as _);
|
||||
|
@ -295,28 +301,33 @@ impl_spi_pin!(SPI6, MisoPin, PG12, 5);
|
|||
impl_spi_pin!(SPI6, SckPin, PG13, 5);
|
||||
impl_spi_pin!(SPI6, MosiPin, PG14, 5);
|
||||
pub const SYSCFG: syscfg::Syscfg = syscfg::Syscfg(0x58000400 as _);
|
||||
pub use super::regs::dbgmcu_h7 as dbgmcu;
|
||||
pub use super::regs::dma_v2 as dma;
|
||||
pub use super::regs::exti_v1 as exti;
|
||||
pub use super::regs::flash_h7 as flash;
|
||||
pub use super::regs::gpio_v2 as gpio;
|
||||
pub use super::regs::i2c_v2 as i2c;
|
||||
pub use super::regs::pwr_h7 as pwr;
|
||||
pub use super::regs::rng_v1 as rng;
|
||||
pub use super::regs::sdmmc_v2 as sdmmc;
|
||||
pub use super::regs::spi_v3 as spi;
|
||||
pub use super::regs::syscfg_h7 as syscfg;
|
||||
embassy_extras::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,
|
||||
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, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3, SPI6, SYSCFG
|
||||
EXTI13, EXTI14, EXTI15, DBGMCU, 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, I2C1, I2C3, I2C4, PWR, RNG, SDMMC1, SDMMC2, SPI1, SPI2, SPI3,
|
||||
SPI6, SYSCFG
|
||||
);
|
||||
pub fn DMA(n: u8) -> dma::Dma {
|
||||
match n {
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue