From c82c7406aa57948d1adabfdc51e8577ae37e99d4 Mon Sep 17 00:00:00 2001 From: hepoun <43733554+hepoun@users.noreply.github.com> Date: Thu, 8 Sep 2022 12:36:53 +0200 Subject: [PATCH] stm32:dmamux: Fix request generator reset There was reset of DMAMUX request multiplexer channel instead of the DMAMUX request generator channel. --- lib/stm32/common/dmamux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stm32/common/dmamux.c b/lib/stm32/common/dmamux.c index 4b520e17..e7b9d73f 100644 --- a/lib/stm32/common/dmamux.c +++ b/lib/stm32/common/dmamux.c @@ -231,7 +231,7 @@ Reset Request Generator Channel Configuration and interrupt flags. */ void dmamux_reset_request_generator_channel(uint32_t dmamux, uint8_t rg_channel) { - DMAMUX_CxCR(dmamux, rg_channel) = 0; + DMAMUX_RGxCR(dmamux, rg_channel) = 0; dmamux_clear_request_generator_trigger_overrun_interrupt(dmamux, rg_channel); }