source: ecs_cellMon/firmware/Core/Src/dma.c

Last change on this file was 3, checked in by f.jahn, 20 months ago

fw hinzugfügt-->zed

File size: 1.7 KB
Line 
1/**
2  ******************************************************************************
3  * @file    dma.c
4  * @brief   This file provides code for the configuration
5  *          of all the requested memory to memory DMA transfers.
6  ******************************************************************************
7  * @attention
8  *
9  * <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
10  * All rights reserved.</center></h2>
11  *
12  * This software component is licensed by ST under BSD 3-Clause license,
13  * the "License"; You may not use this file except in compliance with the
14  * License. You may obtain a copy of the License at:
15  *                        opensource.org/licenses/BSD-3-Clause
16  *
17  ******************************************************************************
18  */
19
20/* Includes ------------------------------------------------------------------*/
21#include "dma.h"
22
23/* USER CODE BEGIN 0 */
24
25/* USER CODE END 0 */
26
27/*----------------------------------------------------------------------------*/
28/* Configure DMA                                                              */
29/*----------------------------------------------------------------------------*/
30
31/* USER CODE BEGIN 1 */
32
33/* USER CODE END 1 */
34
35/**
36  * Enable DMA controller clock
37  */
38void MX_DMA_Init(void)
39{
40
41  /* DMA controller clock enable */
42  __HAL_RCC_DMA1_CLK_ENABLE();
43
44  /* DMA interrupt init */
45  /* DMA1_Channel1_IRQn interrupt configuration */
46  HAL_NVIC_SetPriority(DMA1_Channel1_IRQn, 0, 0);
47  HAL_NVIC_EnableIRQ(DMA1_Channel1_IRQn);
48
49}
50
51/* USER CODE BEGIN 2 */
52
53/* USER CODE END 2 */
54
55/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Note: See TracBrowser for help on using the repository browser.