I am trying to create an interrupt divider for an EXTI interrupt. Essentially, instead of handling every interrupt, I want to call a handler once for every 10 interrupts. After reading the reference manual of the STM32L4R5ZI that I am using, I can imagine a solution using the DMAMUX, which can count 10 requests on an EXTI line, and generate a single request when the counter reaches 0.
I am having trouble trying this in the STM32CubeIDE, and whould like some help understanding how the DMAMUX should be configured, and how to do this in HAL code.