Skip to content

Commit 2f19de3

Browse files
author
Jan Kamidra
committed
fix DMA files
1 parent 8599bc6 commit 2f19de3

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

targets/TARGET_STM/TARGET_STM32U0/stm_dma_info.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* mbed Microcontroller Library
2-
* Copyright (c) 2016-2024 STMicroelectronics
2+
* Copyright (c) 2016-2025 STMicroelectronics
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -21,7 +21,7 @@
2121
#include "cmsis.h"
2222
#include "stm_dma_utils.h"
2323

24-
// STM32h5 devices.
24+
// STM32U0 devices.
2525
// On this device, the DMA channels may be chosen arbitrarily.
2626

2727
/// Mapping from SPI index to DMA link info for Tx

targets/TARGET_STM/stm_dma_utils.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -319,17 +319,17 @@ IRQn_Type stm_get_dma_irqn(const DMALinkInfo *dmaLink)
319319
case 6:
320320
case 7:
321321
return DMA1_Channel4_5_6_7_IRQn;
322-
// STM32L0 has shared ISRs for Ch2-Ch3 and Ch4-Ch7
322+
// STM32U0 has shared ISRs for Ch2-Ch3 and Ch4-Ch7
323323
#elif defined(TARGET_MCU_STM32U0)
324-
case 2:
325-
case 3:
326-
return DMA1_Channel2_3_IRQn;
327-
328-
case 4:
329-
case 5:
330-
case 6:
331-
case 7:
332-
return DMA1_Ch4_7_DMA2_Ch1_5_DMAMUX_OVR_IRQn;
324+
case 2:
325+
case 3:
326+
return DMA1_Channel2_3_IRQn;
327+
328+
case 4:
329+
case 5:
330+
case 6:
331+
case 7:
332+
return DMA1_Ch4_7_DMA2_Ch1_5_DMAMUX_OVR_IRQn;
333333
#else
334334
#ifdef DMA1_Channel2
335335
case 2:

0 commit comments

Comments
 (0)