Regen
This commit is contained in:
parent
03bfbe51f5
commit
0d08e65235
506 changed files with 49419 additions and 9926 deletions
|
@ -295,6 +295,106 @@ stm32h7b3qi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_r
|
||||||
stm32h7b3ri = [ "_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",]
|
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",]
|
stm32h7b3zi = [ "_dma", "_dma_v2", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_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",]
|
||||||
|
stm32l010k8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l010r8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l010rb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l011d3 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l011d4 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l011e3 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l011e4 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l011f3 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l011f4 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l011g3 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l011g4 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l011k3 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l011k4 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l021d4 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l021f4 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l021g4 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l021k4 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l031c4 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l031c6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l031e4 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l031e6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l031f4 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l031f6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l031g4 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l031g6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l031k4 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l031k6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l041c4 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l041c6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l041e6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l041f6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l041g6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l041k6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l051c6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l051c8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l051k6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l051k8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l051r6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l051r8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l051t6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l051t8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l052c6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l052c8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l052k6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l052k8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l052r6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l052r8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l052t6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l052t8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l053c6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l053c8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l053r6 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l053r8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l062c8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l062k8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l063c8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l063r8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l071c8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l071cb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l071cz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l071k8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l071kb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l071kz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l071rb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l071rz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l071v8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l071vb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l071vz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l072cb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l072cz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l072kb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l072kz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l072rb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l072rz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l072v8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l072vb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l072vz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l073cb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l073cz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l073rb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l073rz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l073v8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l073vb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l073vz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l081cb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l081cz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l081kz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l082cz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l082kb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l082kz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l083cb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l083cz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l083rb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l083rz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l083v8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l083vb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
|
stm32l083vz = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rcc", "_rcc_l0", "_rng", "_rng_v1", "_stm32l0", "_syscfg", "_syscfg_l0", "_usart", "_usart_v2",]
|
||||||
stm32l412c8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
stm32l412c8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||||
stm32l412cb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
stm32l412cb = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||||
stm32l412k8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
stm32l412k8 = [ "_dma", "_dma_v1", "_exti", "_exti_v1", "_gpio", "_gpio_v2", "_rng", "_rng_v1", "_stm32l4", "_syscfg", "_syscfg_l4", "_usart", "_usart_v2",]
|
||||||
|
@ -443,6 +543,8 @@ _exti = []
|
||||||
_exti_v1 = []
|
_exti_v1 = []
|
||||||
_gpio = []
|
_gpio = []
|
||||||
_gpio_v2 = []
|
_gpio_v2 = []
|
||||||
|
_rcc = []
|
||||||
|
_rcc_l0 = []
|
||||||
_rng = [ "rand_core",]
|
_rng = [ "rand_core",]
|
||||||
_rng_v1 = []
|
_rng_v1 = []
|
||||||
_sdmmc = [ "sdio-host",]
|
_sdmmc = [ "sdio-host",]
|
||||||
|
@ -453,11 +555,13 @@ _spi_v2 = []
|
||||||
_spi_v3 = []
|
_spi_v3 = []
|
||||||
_stm32f4 = []
|
_stm32f4 = []
|
||||||
_stm32h7 = []
|
_stm32h7 = []
|
||||||
|
_stm32l0 = []
|
||||||
_stm32l4 = []
|
_stm32l4 = []
|
||||||
_stm32l4p = []
|
_stm32l4p = []
|
||||||
_syscfg = []
|
_syscfg = []
|
||||||
_syscfg_f4 = []
|
_syscfg_f4 = []
|
||||||
_syscfg_h7 = []
|
_syscfg_h7 = []
|
||||||
|
_syscfg_l0 = []
|
||||||
_syscfg_l4 = []
|
_syscfg_l4 = []
|
||||||
_usart = []
|
_usart = []
|
||||||
_usart_v1 = []
|
_usart_v1 = []
|
||||||
|
|
|
@ -260,6 +260,106 @@
|
||||||
#[cfg_attr(feature = "stm32h7b3ri", path = "stm32h7b3ri.rs")]
|
#[cfg_attr(feature = "stm32h7b3ri", path = "stm32h7b3ri.rs")]
|
||||||
#[cfg_attr(feature = "stm32h7b3vi", path = "stm32h7b3vi.rs")]
|
#[cfg_attr(feature = "stm32h7b3vi", path = "stm32h7b3vi.rs")]
|
||||||
#[cfg_attr(feature = "stm32h7b3zi", path = "stm32h7b3zi.rs")]
|
#[cfg_attr(feature = "stm32h7b3zi", path = "stm32h7b3zi.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l010c6", path = "stm32l010c6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l010f4", path = "stm32l010f4.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l010k4", path = "stm32l010k4.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l010k8", path = "stm32l010k8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l010r8", path = "stm32l010r8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l010rb", path = "stm32l010rb.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l011d3", path = "stm32l011d3.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l011d4", path = "stm32l011d4.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l011e3", path = "stm32l011e3.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l011e4", path = "stm32l011e4.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l011f3", path = "stm32l011f3.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l011f4", path = "stm32l011f4.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l011g3", path = "stm32l011g3.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l011g4", path = "stm32l011g4.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l011k3", path = "stm32l011k3.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l011k4", path = "stm32l011k4.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l021d4", path = "stm32l021d4.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l021f4", path = "stm32l021f4.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l021g4", path = "stm32l021g4.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l021k4", path = "stm32l021k4.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l031c4", path = "stm32l031c4.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l031c6", path = "stm32l031c6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l031e4", path = "stm32l031e4.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l031e6", path = "stm32l031e6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l031f4", path = "stm32l031f4.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l031f6", path = "stm32l031f6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l031g4", path = "stm32l031g4.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l031g6", path = "stm32l031g6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l031k4", path = "stm32l031k4.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l031k6", path = "stm32l031k6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l041c4", path = "stm32l041c4.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l041c6", path = "stm32l041c6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l041e6", path = "stm32l041e6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l041f6", path = "stm32l041f6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l041g6", path = "stm32l041g6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l041k6", path = "stm32l041k6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l051c6", path = "stm32l051c6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l051c8", path = "stm32l051c8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l051k6", path = "stm32l051k6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l051k8", path = "stm32l051k8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l051r6", path = "stm32l051r6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l051r8", path = "stm32l051r8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l051t6", path = "stm32l051t6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l051t8", path = "stm32l051t8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l052c6", path = "stm32l052c6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l052c8", path = "stm32l052c8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l052k6", path = "stm32l052k6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l052k8", path = "stm32l052k8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l052r6", path = "stm32l052r6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l052r8", path = "stm32l052r8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l052t6", path = "stm32l052t6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l052t8", path = "stm32l052t8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l053c6", path = "stm32l053c6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l053c8", path = "stm32l053c8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l053r6", path = "stm32l053r6.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l053r8", path = "stm32l053r8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l062c8", path = "stm32l062c8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l062k8", path = "stm32l062k8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l063c8", path = "stm32l063c8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l063r8", path = "stm32l063r8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l071c8", path = "stm32l071c8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l071cb", path = "stm32l071cb.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l071cz", path = "stm32l071cz.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l071k8", path = "stm32l071k8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l071kb", path = "stm32l071kb.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l071kz", path = "stm32l071kz.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l071rb", path = "stm32l071rb.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l071rz", path = "stm32l071rz.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l071v8", path = "stm32l071v8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l071vb", path = "stm32l071vb.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l071vz", path = "stm32l071vz.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l072cb", path = "stm32l072cb.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l072cz", path = "stm32l072cz.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l072kb", path = "stm32l072kb.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l072kz", path = "stm32l072kz.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l072rb", path = "stm32l072rb.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l072rz", path = "stm32l072rz.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l072v8", path = "stm32l072v8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l072vb", path = "stm32l072vb.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l072vz", path = "stm32l072vz.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l073cb", path = "stm32l073cb.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l073cz", path = "stm32l073cz.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l073rb", path = "stm32l073rb.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l073rz", path = "stm32l073rz.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l073v8", path = "stm32l073v8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l073vb", path = "stm32l073vb.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l073vz", path = "stm32l073vz.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l081cb", path = "stm32l081cb.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l081cz", path = "stm32l081cz.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l081kz", path = "stm32l081kz.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l082cz", path = "stm32l082cz.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l082kb", path = "stm32l082kb.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l082kz", path = "stm32l082kz.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l083cb", path = "stm32l083cb.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l083cz", path = "stm32l083cz.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l083rb", path = "stm32l083rb.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l083rz", path = "stm32l083rz.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l083v8", path = "stm32l083v8.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l083vb", path = "stm32l083vb.rs")]
|
||||||
|
#[cfg_attr(feature = "stm32l083vz", path = "stm32l083vz.rs")]
|
||||||
#[cfg_attr(feature = "stm32l412c8", path = "stm32l412c8.rs")]
|
#[cfg_attr(feature = "stm32l412c8", path = "stm32l412c8.rs")]
|
||||||
#[cfg_attr(feature = "stm32l412cb", path = "stm32l412cb.rs")]
|
#[cfg_attr(feature = "stm32l412cb", path = "stm32l412cb.rs")]
|
||||||
#[cfg_attr(feature = "stm32l412k8", path = "stm32l412k8.rs")]
|
#[cfg_attr(feature = "stm32l412k8", path = "stm32l412k8.rs")]
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -202,6 +202,18 @@ peripherals!(
|
||||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -202,6 +202,18 @@ peripherals!(
|
||||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -202,6 +202,18 @@ peripherals!(
|
||||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -202,6 +202,18 @@ peripherals!(
|
||||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -202,6 +202,18 @@ peripherals!(
|
||||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -202,6 +202,18 @@ peripherals!(
|
||||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -202,6 +202,18 @@ peripherals!(
|
||||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -202,6 +202,18 @@ peripherals!(
|
||||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -210,6 +210,18 @@ peripherals!(
|
||||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART6
|
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -210,6 +210,18 @@ peripherals!(
|
||||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART6
|
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -210,6 +210,18 @@ peripherals!(
|
||||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART6
|
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -210,6 +210,18 @@ peripherals!(
|
||||||
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART6
|
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -139,6 +139,18 @@ peripherals!(
|
||||||
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART6
|
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -139,6 +139,18 @@ peripherals!(
|
||||||
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART6
|
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -139,6 +139,18 @@ peripherals!(
|
||||||
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART6
|
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -139,6 +139,18 @@ peripherals!(
|
||||||
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART6
|
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -132,6 +132,18 @@ peripherals!(
|
||||||
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2
|
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -132,6 +132,18 @@ peripherals!(
|
||||||
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2
|
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -230,6 +230,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -230,6 +230,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -230,6 +230,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -230,6 +230,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -230,6 +230,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -230,6 +230,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -189,6 +189,18 @@ peripherals!(
|
||||||
SYSCFG, USART1, USART2, USART3, USART6
|
SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -189,6 +189,18 @@ peripherals!(
|
||||||
SYSCFG, USART1, USART2, USART3, USART6
|
SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -219,6 +219,18 @@ peripherals!(
|
||||||
USART1, USART2, USART3, USART6
|
USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -219,6 +219,18 @@ peripherals!(
|
||||||
USART1, USART2, USART3, USART6
|
USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -292,6 +292,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -292,6 +292,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -292,6 +292,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -292,6 +292,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -278,6 +278,18 @@ peripherals!(
|
||||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART6
|
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -278,6 +278,18 @@ peripherals!(
|
||||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART6
|
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -295,6 +295,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -295,6 +295,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -295,6 +295,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -295,6 +295,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -295,6 +295,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -295,6 +295,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -295,6 +295,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -295,6 +295,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -280,6 +280,18 @@ peripherals!(
|
||||||
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -278,6 +278,18 @@ peripherals!(
|
||||||
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART6
|
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -295,6 +295,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -295,6 +295,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -295,6 +295,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -295,6 +295,18 @@ peripherals!(
|
||||||
USART6
|
USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -334,6 +334,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -334,6 +334,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -339,6 +339,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -339,6 +339,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -326,6 +326,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -326,6 +326,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -339,6 +339,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -339,6 +339,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -334,6 +334,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -334,6 +334,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -339,6 +339,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -339,6 +339,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -339,6 +339,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -339,6 +339,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -339,6 +339,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -339,6 +339,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -339,6 +339,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -339,6 +339,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -339,6 +339,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -326,6 +326,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -326,6 +326,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -326,6 +326,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -339,6 +339,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -339,6 +339,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -339,6 +339,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -334,6 +334,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -339,6 +339,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -339,6 +339,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
|
@ -326,6 +326,18 @@ peripherals!(
|
||||||
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
|
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub fn DMA(n: u8) -> dma::Dma {
|
||||||
|
match n {
|
||||||
|
0 => DMA1,
|
||||||
|
_ => DMA2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
use embassy::interrupt::Interrupt;
|
||||||
|
use embassy::interrupt::InterruptExt;
|
||||||
|
|
||||||
|
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
|
||||||
|
|
||||||
pub mod interrupt {
|
pub mod interrupt {
|
||||||
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
pub use cortex_m::interrupt::{CriticalSection, Mutex};
|
||||||
pub use embassy::interrupt::{declare, take, Interrupt};
|
pub use embassy::interrupt::{declare, take, Interrupt};
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue