2009-10-16 13:05:01 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* arch/arm/src/stm32/stm32_dma.c
|
|
|
|
*
|
2021-03-24 09:35:39 +01:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright ownership. The
|
|
|
|
* ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance with the
|
|
|
|
* License. You may obtain a copy of the License at
|
2009-10-16 13:05:01 +00:00
|
|
|
*
|
2021-03-24 09:35:39 +01:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2009-10-16 13:05:01 +00:00
|
|
|
*
|
2021-03-24 09:35:39 +01:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
2009-10-16 13:05:01 +00:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Included Files
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#include <nuttx/config.h>
|
2009-10-16 17:23:28 +00:00
|
|
|
|
2009-10-16 13:05:01 +00:00
|
|
|
#include "chip.h"
|
2011-11-22 20:07:42 +00:00
|
|
|
|
2020-05-19 19:42:03 -04:00
|
|
|
/* This file is only a thin shell that includes the correct DMA
|
|
|
|
* implementation for the selected STM32 IP core:
|
2020-05-22 11:51:18 -04:00
|
|
|
* - STM32 DMA IP version 1 - F0, F1, F3, G4, L0, L1, L4
|
2018-12-02 11:49:25 +00:00
|
|
|
* - STM32 DMA IP version 2 - F2, F4, F7, H7
|
2009-10-16 17:23:28 +00:00
|
|
|
*
|
2018-12-02 11:49:25 +00:00
|
|
|
* The STM32 DMA IPv2 differs from the STM32 DMA IPv1 primarily in that it
|
|
|
|
* adds the concept of "streams" that are used to associate DMA sources with
|
|
|
|
* DMA channels.
|
2011-12-07 14:56:28 +00:00
|
|
|
*/
|
2009-10-16 17:23:28 +00:00
|
|
|
|
2018-12-02 11:49:25 +00:00
|
|
|
#if defined(CONFIG_STM32_HAVE_IP_DMA_V1)
|
2021-04-12 21:56:52 +02:00
|
|
|
# if defined(CONFIG_STM32_HAVE_DMAMUX)
|
|
|
|
# include "stm32_dma_v1mux.c"
|
|
|
|
# else
|
|
|
|
# include "stm32_dma_v1.c"
|
|
|
|
# endif
|
2018-12-02 11:49:25 +00:00
|
|
|
#elif defined(CONFIG_STM32_HAVE_IP_DMA_V2)
|
|
|
|
# include "stm32_dma_v2.c"
|
2009-11-26 00:18:22 +00:00
|
|
|
#endif
|
2020-05-19 19:42:03 -04:00
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Private Functions
|
|
|
|
****************************************************************************/
|