You want to use TIM1 to trigger GPDMA to move the GPIOB->IDR data to a variable. The previous implementations were based on stm32L4, but I don't know how to implement gpdma. Attached L4 project.
*This post has been translated from Chinese to comply...