11 changed files with 305 additions and 43 deletions
-
38.mxproject
-
2.settings/stm32cubeide.project.prefs
-
52Core/Inc/dma.h
-
2Core/Inc/stm32f4xx_it.h
-
58Core/Src/dma.c
-
2Core/Src/main.c
-
30Core/Src/stm32f4xx_it.c
-
44Core/Src/usart.c
-
56flia_robot_arm_v1.ioc
-
2sdk
-
62usrc/main.cpp
38
.mxproject
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,5 +1,5 @@ |
|||
635E684B79701B039C64EA45C3F84D30=C8B026EBE17C208F17FB66CE4235156C |
|||
66BE74F758C12D739921AEA421D593D3=1 |
|||
8DF89ED150041C4CBC7CB9A9CAA90856=31CD5EEFA9F35C65D8E334D24F421EB1 |
|||
DC22A860405A8BF2F2C095E5B6529F12=E957E899AF7563EEB25643F04F5B7D97 |
|||
DC22A860405A8BF2F2C095E5B6529F12=31CD5EEFA9F35C65D8E334D24F421EB1 |
|||
eclipse.preferences.version=1 |
@ -0,0 +1,52 @@ |
|||
/* USER CODE BEGIN Header */ |
|||
/** |
|||
****************************************************************************** |
|||
* @file dma.h |
|||
* @brief This file contains all the function prototypes for |
|||
* the dma.c file |
|||
****************************************************************************** |
|||
* @attention |
|||
* |
|||
* Copyright (c) 2023 STMicroelectronics. |
|||
* All rights reserved. |
|||
* |
|||
* This software is licensed under terms that can be found in the LICENSE file |
|||
* in the root directory of this software component. |
|||
* If no LICENSE file comes with this software, it is provided AS-IS. |
|||
* |
|||
****************************************************************************** |
|||
*/ |
|||
/* USER CODE END Header */ |
|||
/* Define to prevent recursive inclusion -------------------------------------*/ |
|||
#ifndef __DMA_H__ |
|||
#define __DMA_H__ |
|||
|
|||
#ifdef __cplusplus |
|||
extern "C" { |
|||
#endif |
|||
|
|||
/* Includes ------------------------------------------------------------------*/ |
|||
#include "main.h" |
|||
|
|||
/* DMA memory to memory transfer handles -------------------------------------*/ |
|||
|
|||
/* USER CODE BEGIN Includes */ |
|||
|
|||
/* USER CODE END Includes */ |
|||
|
|||
/* USER CODE BEGIN Private defines */ |
|||
|
|||
/* USER CODE END Private defines */ |
|||
|
|||
void MX_DMA_Init(void); |
|||
|
|||
/* USER CODE BEGIN Prototypes */ |
|||
|
|||
/* USER CODE END Prototypes */ |
|||
|
|||
#ifdef __cplusplus |
|||
} |
|||
#endif |
|||
|
|||
#endif /* __DMA_H__ */ |
|||
|
@ -0,0 +1,58 @@ |
|||
/* USER CODE BEGIN Header */ |
|||
/** |
|||
****************************************************************************** |
|||
* @file dma.c |
|||
* @brief This file provides code for the configuration |
|||
* of all the requested memory to memory DMA transfers. |
|||
****************************************************************************** |
|||
* @attention |
|||
* |
|||
* Copyright (c) 2023 STMicroelectronics. |
|||
* All rights reserved. |
|||
* |
|||
* This software is licensed under terms that can be found in the LICENSE file |
|||
* in the root directory of this software component. |
|||
* If no LICENSE file comes with this software, it is provided AS-IS. |
|||
* |
|||
****************************************************************************** |
|||
*/ |
|||
/* USER CODE END Header */ |
|||
|
|||
/* Includes ------------------------------------------------------------------*/ |
|||
#include "dma.h" |
|||
|
|||
/* USER CODE BEGIN 0 */ |
|||
|
|||
/* USER CODE END 0 */ |
|||
|
|||
/*----------------------------------------------------------------------------*/ |
|||
/* Configure DMA */ |
|||
/*----------------------------------------------------------------------------*/ |
|||
|
|||
/* USER CODE BEGIN 1 */ |
|||
|
|||
/* USER CODE END 1 */ |
|||
|
|||
/** |
|||
* Enable DMA controller clock |
|||
*/ |
|||
void MX_DMA_Init(void) |
|||
{ |
|||
|
|||
/* DMA controller clock enable */ |
|||
__HAL_RCC_DMA1_CLK_ENABLE(); |
|||
|
|||
/* DMA interrupt init */ |
|||
/* DMA1_Stream5_IRQn interrupt configuration */ |
|||
HAL_NVIC_SetPriority(DMA1_Stream5_IRQn, 5, 0); |
|||
HAL_NVIC_EnableIRQ(DMA1_Stream5_IRQn); |
|||
/* DMA1_Stream6_IRQn interrupt configuration */ |
|||
HAL_NVIC_SetPriority(DMA1_Stream6_IRQn, 5, 0); |
|||
HAL_NVIC_EnableIRQ(DMA1_Stream6_IRQn); |
|||
|
|||
} |
|||
|
|||
/* USER CODE BEGIN 2 */ |
|||
|
|||
/* USER CODE END 2 */ |
|||
|
@ -1 +1 @@ |
|||
Subproject commit 1b8ed02b9d95727f8a0d32edbf65d1bb4a97ffff |
|||
Subproject commit 070a326f65f005e5f84944a68240e07907f6d98a |
Write
Preview
Loading…
Cancel
Save
Reference in new issue