File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 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");
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
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments