]> git.leonardobizzoni.com Git - pioneer-stm32/commitdiff
dma tests
authorFederica Di Lauro <federicadilauro1998@gmail.com>
Tue, 11 Feb 2020 11:04:57 +0000 (12:04 +0100)
committerFederica Di Lauro <federicadilauro1998@gmail.com>
Tue, 11 Feb 2020 11:04:57 +0000 (12:04 +0100)
13 files changed:
otto_controller/.mxproject
otto_controller/Core/Inc/dma.h [deleted file]
otto_controller/Core/Inc/main.h
otto_controller/Core/Inc/stm32f7xx_it.h
otto_controller/Core/Src/dma.c [deleted file]
otto_controller/Core/Src/gpio.c
otto_controller/Core/Src/main.cpp
otto_controller/Core/Src/stm32f7xx_it.c
otto_controller/Core/Src/usart.c
otto_controller/otto_controller.ioc
test_dma/.mxproject
test_dma/Core/Src/main.c
test_dma/test_dma.ioc

index b4aeebb2202657102d37f309f8ee12e378b315a7..d4029ca30195bb502f862efc2dd6e141ae4f1ddd 100644 (file)
@@ -1,33 +1,31 @@
 [PreviousGenFiles]\r
 AdvancedFolderStructure=true\r
-HeaderFileListSize=7\r
+HeaderFileListSize=6\r
 HeaderFiles#0=/home/fdila/Projects/otto/otto_controller/Core/Inc/gpio.h\r
-HeaderFiles#1=/home/fdila/Projects/otto/otto_controller/Core/Inc/dma.h\r
-HeaderFiles#2=/home/fdila/Projects/otto/otto_controller/Core/Inc/tim.h\r
+HeaderFiles#1=/home/fdila/Projects/otto/otto_controller/Core/Inc/tim.h\r
+HeaderFiles#2=/home/fdila/Projects/otto/otto_controller/Core/Inc/usart.h\r
 HeaderFolderListSize=1\r
 HeaderPath#0=/home/fdila/Projects/otto/otto_controller/Core/Inc\r
-SourceFileListSize=7\r
+SourceFileListSize=6\r
 SourceFiles#0=/home/fdila/Projects/otto/otto_controller/Core/Src/gpio.c\r
-SourceFiles#1=/home/fdila/Projects/otto/otto_controller/Core/Src/dma.c\r
-SourceFiles#2=/home/fdila/Projects/otto/otto_controller/Core/Src/tim.c\r
+SourceFiles#1=/home/fdila/Projects/otto/otto_controller/Core/Src/tim.c\r
+SourceFiles#2=/home/fdila/Projects/otto/otto_controller/Core/Src/usart.c\r
 SourceFolderListSize=1\r
 SourcePath#0=/home/fdila/Projects/otto/otto_controller/Core/Src\r
-HeaderFiles#3=/home/fdila/Projects/otto/otto_controller/Core/Inc/usart.h\r
-HeaderFiles#4=/home/fdila/Projects/otto/otto_controller/Core/Inc/stm32f7xx_it.h\r
-HeaderFiles#5=/home/fdila/Projects/otto/otto_controller/Core/Inc/stm32f7xx_hal_conf.h\r
-SourceFiles#3=/home/fdila/Projects/otto/otto_controller/Core/Src/usart.c\r
-SourceFiles#4=/home/fdila/Projects/otto/otto_controller/Core/Src/stm32f7xx_it.c\r
-SourceFiles#5=/home/fdila/Projects/otto/otto_controller/Core/Src/stm32f7xx_hal_msp.c\r
+HeaderFiles#3=/home/fdila/Projects/otto/otto_controller/Core/Inc/stm32f7xx_it.h\r
+HeaderFiles#4=/home/fdila/Projects/otto/otto_controller/Core/Inc/stm32f7xx_hal_conf.h\r
+HeaderFiles#5=/home/fdila/Projects/otto/otto_controller/Core/Inc/main.h\r
+SourceFiles#3=/home/fdila/Projects/otto/otto_controller/Core/Src/stm32f7xx_it.c\r
+SourceFiles#4=/home/fdila/Projects/otto/otto_controller/Core/Src/stm32f7xx_hal_msp.c\r
+SourceFiles#5=/home/fdila/Projects/otto/otto_controller/Core/Src/main.c\r
 HeaderFiles#6=/home/fdila/Projects/otto/otto_controller/Core/Inc/main.h\r
 SourceFiles#6=/home/fdila/Projects/otto/otto_controller/Core/Src/main.c\r
-HeaderFiles=;\r
-SourceFiles=;\r
 \r
 [PreviousLibFiles]\r
 LibFiles=Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_cortex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_tim.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_tim_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_flash.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_flash_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pwr.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pwr_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_def.h;Drivers/STM32F7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_i2c.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_i2c_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_exti.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_uart.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_uart_ex.h;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_flash.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_flash_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_gpio.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_exti.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart_ex.c;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_cortex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_tim.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_tim_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_flash.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_flash_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pwr.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pwr_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_def.h;Drivers/STM32F7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_i2c.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_i2c_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_exti.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_uart.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_uart_ex.h;Drivers/CMSIS/Device/ST/STM32F7xx/Include/stm32f767xx.h;Drivers/CMSIS/Device/ST/STM32F7xx/Include/stm32f7xx.h;Drivers/CMSIS/Device/ST/STM32F7xx/Include/system_stm32f7xx.h;Drivers/CMSIS/Device/ST/STM32F7xx/Source/Templates/system_stm32f7xx.c;Drivers/CMSIS/Include/cmsis_gcc.h;Drivers/CMSIS/Include/core_cm3.h;Drivers/CMSIS/Include/core_armv8mml.h;Drivers/CMSIS/Include/cmsis_armcc.h;Drivers/CMSIS/Include/core_sc300.h;Drivers/CMSIS/Include/core_cm33.h;Drivers/CMSIS/Include/core_cm0.h;Drivers/CMSIS/Include/core_cm1.h;Drivers/CMSIS/Include/tz_context.h;Drivers/CMSIS/Include/cmsis_armclang.h;Drivers/CMSIS/Include/core_cm7.h;Drivers/CMSIS/Include/cmsis_compiler.h;Drivers/CMSIS/Include/cmsis_iccarm.h;Drivers/CMSIS/Include/core_cm23.h;Drivers/CMSIS/Include/core_armv8mbl.h;Drivers/CMSIS/Include/core_cm0plus.h;Drivers/CMSIS/Include/mpu_armv7.h;Drivers/CMSIS/Include/mpu_armv8.h;Drivers/CMSIS/Include/cmsis_version.h;Drivers/CMSIS/Include/core_sc000.h;Drivers/CMSIS/Include/core_cm4.h;\r
 \r
 [PreviousUsedCubeIDEFiles]\r
-SourceFiles=Core/Src/main.c;Core/Src/gpio.c;Core/Src/dma.c;Core/Src/tim.c;Core/Src/usart.c;Core/Src/stm32f7xx_it.c;Core/Src/stm32f7xx_hal_msp.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_flash.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_flash_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_gpio.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_exti.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart_ex.c;Core/Src/system_stm32f7xx.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_flash.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_flash_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_gpio.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_exti.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart_ex.c;Core/Src/system_stm32f7xx.c;Drivers/CMSIS/Device/ST/STM32F7xx/Source/Templates/system_stm32f7xx.c;;\r
+SourceFiles=Core/Src/main.c;Core/Src/gpio.c;Core/Src/tim.c;Core/Src/usart.c;Core/Src/stm32f7xx_it.c;Core/Src/stm32f7xx_hal_msp.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_flash.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_flash_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_gpio.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_exti.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart_ex.c;Core/Src/system_stm32f7xx.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_flash.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_flash_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_gpio.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_exti.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart_ex.c;Core/Src/system_stm32f7xx.c;Drivers/CMSIS/Device/ST/STM32F7xx/Source/Templates/system_stm32f7xx.c;;\r
 HeaderPath=Drivers/STM32F7xx_HAL_Driver/Inc;Drivers/STM32F7xx_HAL_Driver/Inc/Legacy;Drivers/CMSIS/Device/ST/STM32F7xx/Include;Drivers/CMSIS/Include;Core/Inc;\r
 CDefines=USE_HAL_DRIVER;STM32F767xx;USE_HAL_DRIVER;USE_HAL_DRIVER;\r
 \r
diff --git a/otto_controller/Core/Inc/dma.h b/otto_controller/Core/Inc/dma.h
deleted file mode 100644 (file)
index 16bb88c..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/**\r
-  ******************************************************************************\r
-  * File Name          : dma.h\r
-  * Description        : This file contains all the function prototypes for\r
-  *                      the dma.c file\r
-  ******************************************************************************\r
-  * @attention\r
-  *\r
-  * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.\r
-  * All rights reserved.</center></h2>\r
-  *\r
-  * This software component is licensed by ST under BSD 3-Clause license,\r
-  * the "License"; You may not use this file except in compliance with the\r
-  * License. You may obtain a copy of the License at:\r
-  *                        opensource.org/licenses/BSD-3-Clause\r
-  *\r
-  ******************************************************************************\r
-  */\r
-/* Define to prevent recursive inclusion -------------------------------------*/\r
-#ifndef __dma_H\r
-#define __dma_H\r
-\r
-#ifdef __cplusplus\r
- extern "C" {\r
-#endif\r
-\r
-/* Includes ------------------------------------------------------------------*/\r
-#include "main.h"\r
-\r
-/* DMA memory to memory transfer handles -------------------------------------*/\r
-\r
-/* USER CODE BEGIN Includes */\r
-\r
-/* USER CODE END Includes */\r
-\r
-/* USER CODE BEGIN Private defines */\r
-\r
-/* USER CODE END Private defines */\r
-\r
-void MX_DMA_Init(void);\r
-\r
-/* USER CODE BEGIN Prototypes */\r
-\r
-/* USER CODE END Prototypes */\r
-\r
-#ifdef __cplusplus\r
-}\r
-#endif\r
-\r
-#endif /* __dma_H */\r
-\r
-/**\r
-  * @}\r
-  */\r
-\r
-/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/\r
index 80943f3956f409f5a055d9b3c4706a309a2ac5da..fb0a3d8d29a9e8a7dc65df8057ad36d399a7b04c 100644 (file)
@@ -58,9 +58,6 @@ void Error_Handler(void);
 /* USER CODE END EFP */\r
 \r
 /* Private defines -----------------------------------------------------------*/\r
-#define user_button_Pin GPIO_PIN_13\r
-#define user_button_GPIO_Port GPIOC\r
-#define user_button_EXTI_IRQn EXTI15_10_IRQn\r
 #define current2_Pin GPIO_PIN_0\r
 #define current2_GPIO_Port GPIOC\r
 #define encoder_dx1_Pin GPIO_PIN_0\r
index d1e7824001ab977304df98b986f926835b0c8f04..f138f646573ce783d6393cf109c2c8954fb22d47 100644 (file)
@@ -59,8 +59,6 @@ void SysTick_Handler(void);
 void TIM3_IRQHandler(void);\r
 void EXTI15_10_IRQHandler(void);\r
 void TIM6_DAC_IRQHandler(void);\r
-void DMA2_Stream1_IRQHandler(void);\r
-void DMA2_Stream6_IRQHandler(void);\r
 void USART6_IRQHandler(void);\r
 /* USER CODE BEGIN EFP */\r
 \r
diff --git a/otto_controller/Core/Src/dma.c b/otto_controller/Core/Src/dma.c
deleted file mode 100644 (file)
index 35f0a1b..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-/**\r
-  ******************************************************************************\r
-  * File Name          : dma.c\r
-  * Description        : This file provides code for the configuration\r
-  *                      of all the requested memory to memory DMA transfers.\r
-  ******************************************************************************\r
-  * @attention\r
-  *\r
-  * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.\r
-  * All rights reserved.</center></h2>\r
-  *\r
-  * This software component is licensed by ST under BSD 3-Clause license,\r
-  * the "License"; You may not use this file except in compliance with the\r
-  * License. You may obtain a copy of the License at:\r
-  *                        opensource.org/licenses/BSD-3-Clause\r
-  *\r
-  ******************************************************************************\r
-  */\r
-\r
-/* Includes ------------------------------------------------------------------*/\r
-#include "dma.h"\r
-\r
-/* USER CODE BEGIN 0 */\r
-\r
-/* USER CODE END 0 */\r
-\r
-/*----------------------------------------------------------------------------*/\r
-/* Configure DMA                                                              */\r
-/*----------------------------------------------------------------------------*/\r
-\r
-/* USER CODE BEGIN 1 */\r
-\r
-/* USER CODE END 1 */\r
-\r
-/** \r
-  * Enable DMA controller clock\r
-  */\r
-void MX_DMA_Init(void) \r
-{\r
-\r
-  /* DMA controller clock enable */\r
-  __HAL_RCC_DMA2_CLK_ENABLE();\r
-\r
-  /* DMA interrupt init */\r
-  /* DMA2_Stream1_IRQn interrupt configuration */\r
-  HAL_NVIC_SetPriority(DMA2_Stream1_IRQn, 0, 0);\r
-  HAL_NVIC_EnableIRQ(DMA2_Stream1_IRQn);\r
-  /* DMA2_Stream6_IRQn interrupt configuration */\r
-  HAL_NVIC_SetPriority(DMA2_Stream6_IRQn, 0, 0);\r
-  HAL_NVIC_EnableIRQ(DMA2_Stream6_IRQn);\r
-\r
-}\r
-\r
-/* USER CODE BEGIN 2 */\r
-\r
-/* USER CODE END 2 */\r
-\r
-/**\r
-  * @}\r
-  */\r
-\r
-/**\r
-  * @}\r
-  */\r
-\r
-/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/\r
index 7c99329471687c198a1d4bd42bced5d2145ea110..b3dac9b9000b889e1e78c9a7e4d2b91283dae34f 100644 (file)
@@ -56,11 +56,11 @@ void MX_GPIO_Init(void)
   /*Configure GPIO pin Output Level */\r
   HAL_GPIO_WritePin(GPIOF, sleep2_Pin|sleep1_Pin, GPIO_PIN_SET);\r
 \r
-  /*Configure GPIO pin : PtPin */\r
-  GPIO_InitStruct.Pin = user_button_Pin;\r
+  /*Configure GPIO pin : PC13 */\r
+  GPIO_InitStruct.Pin = GPIO_PIN_13;\r
   GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING;\r
   GPIO_InitStruct.Pull = GPIO_NOPULL;\r
-  HAL_GPIO_Init(user_button_GPIO_Port, &GPIO_InitStruct);\r
+  HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);\r
 \r
   /*Configure GPIO pin : PtPin */\r
   GPIO_InitStruct.Pin = current2_Pin;\r
index 5a658530636c9adac1c5e9604e6c9d488851a1c3..813b6f9c4d16b5072c34acd976123c4d6af34a68 100644 (file)
@@ -20,7 +20,6 @@
 \r
 /* Includes ------------------------------------------------------------------*/\r
 #include "main.h"\r
-#include "dma.h"\r
 #include "tim.h"\r
 #include "usart.h"\r
 #include "gpio.h"\r
@@ -142,7 +141,7 @@ int main(void)
   /* USER CODE END SysInit */\r
 \r
   /* Initialize all configured peripherals */\r
-  MX_DMA_Init();\r
+  MX_GPIO_Init();\r
   MX_TIM2_Init();\r
   MX_TIM3_Init();\r
   MX_TIM4_Init();\r
@@ -175,9 +174,11 @@ int main(void)
   rx_buffer = (uint8_t*) &vel_msg;\r
 \r
   //Enables UART RX interrupt\r
-  HAL_UART_Receive_DMA(&huart6, rx_buffer, 8);\r
+  HAL_UART_Receive_IT(&huart6, rx_buffer, 8);\r
 \r
   /* USER CODE END 2 */\r
\r
\r
 \r
   /* Infinite loop */\r
   /* USER CODE BEGIN WHILE */\r
@@ -304,7 +305,6 @@ void HAL_UART_RxCpltCallback(UART_HandleTypeDef *UartHandle) {
 void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) {\r
   //Blue user button on the NUCLEO board\r
   if (GPIO_Pin == GPIO_PIN_13) {\r
-    mode++;\r
     if (mode == 0) {\r
       mode = 1;\r
       //Enables TIM3 interrupt (used for PID control)\r
index d3abde0bd660471e4e5d4a04364fdb13dd143153..88e7f7d9a42c09142a0fc53b95e1e0388fac3c7d 100644 (file)
@@ -58,8 +58,6 @@
 /* External variables --------------------------------------------------------*/\r
 extern TIM_HandleTypeDef htim3;\r
 extern TIM_HandleTypeDef htim6;\r
-extern DMA_HandleTypeDef hdma_usart6_tx;\r
-extern DMA_HandleTypeDef hdma_usart6_rx;\r
 extern UART_HandleTypeDef huart6;\r
 /* USER CODE BEGIN EV */\r
 \r
@@ -243,34 +241,6 @@ void TIM6_DAC_IRQHandler(void)
   /* USER CODE END TIM6_DAC_IRQn 1 */\r
 }\r
 \r
-/**\r
-  * @brief This function handles DMA2 stream1 global interrupt.\r
-  */\r
-void DMA2_Stream1_IRQHandler(void)\r
-{\r
-  /* USER CODE BEGIN DMA2_Stream1_IRQn 0 */\r
-\r
-  /* USER CODE END DMA2_Stream1_IRQn 0 */\r
-  HAL_DMA_IRQHandler(&hdma_usart6_rx);\r
-  /* USER CODE BEGIN DMA2_Stream1_IRQn 1 */\r
-\r
-  /* USER CODE END DMA2_Stream1_IRQn 1 */\r
-}\r
-\r
-/**\r
-  * @brief This function handles DMA2 stream6 global interrupt.\r
-  */\r
-void DMA2_Stream6_IRQHandler(void)\r
-{\r
-  /* USER CODE BEGIN DMA2_Stream6_IRQn 0 */\r
-\r
-  /* USER CODE END DMA2_Stream6_IRQn 0 */\r
-  HAL_DMA_IRQHandler(&hdma_usart6_tx);\r
-  /* USER CODE BEGIN DMA2_Stream6_IRQn 1 */\r
-\r
-  /* USER CODE END DMA2_Stream6_IRQn 1 */\r
-}\r
-\r
 /**\r
   * @brief This function handles USART6 global interrupt.\r
   */\r
index 6f25222ddbe76a9f3160ec246d9adef7759f5c87..7b56c726b654214a451a1733653f09d0987ae6e4 100644 (file)
@@ -25,8 +25,6 @@
 /* USER CODE END 0 */\r
 \r
 UART_HandleTypeDef huart6;\r
-DMA_HandleTypeDef hdma_usart6_tx;\r
-DMA_HandleTypeDef hdma_usart6_rx;\r
 \r
 /* USART6 init function */\r
 \r
@@ -74,43 +72,6 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
     GPIO_InitStruct.Alternate = GPIO_AF8_USART6;\r
     HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);\r
 \r
-    /* USART6 DMA Init */\r
-    /* USART6_TX Init */\r
-    hdma_usart6_tx.Instance = DMA2_Stream6;\r
-    hdma_usart6_tx.Init.Channel = DMA_CHANNEL_5;\r
-    hdma_usart6_tx.Init.Direction = DMA_MEMORY_TO_PERIPH;\r
-    hdma_usart6_tx.Init.PeriphInc = DMA_PINC_DISABLE;\r
-    hdma_usart6_tx.Init.MemInc = DMA_MINC_ENABLE;\r
-    hdma_usart6_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;\r
-    hdma_usart6_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;\r
-    hdma_usart6_tx.Init.Mode = DMA_NORMAL;\r
-    hdma_usart6_tx.Init.Priority = DMA_PRIORITY_LOW;\r
-    hdma_usart6_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE;\r
-    if (HAL_DMA_Init(&hdma_usart6_tx) != HAL_OK)\r
-    {\r
-      Error_Handler();\r
-    }\r
-\r
-    __HAL_LINKDMA(uartHandle,hdmatx,hdma_usart6_tx);\r
-\r
-    /* USART6_RX Init */\r
-    hdma_usart6_rx.Instance = DMA2_Stream1;\r
-    hdma_usart6_rx.Init.Channel = DMA_CHANNEL_5;\r
-    hdma_usart6_rx.Init.Direction = DMA_PERIPH_TO_MEMORY;\r
-    hdma_usart6_rx.Init.PeriphInc = DMA_PINC_DISABLE;\r
-    hdma_usart6_rx.Init.MemInc = DMA_MINC_ENABLE;\r
-    hdma_usart6_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;\r
-    hdma_usart6_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;\r
-    hdma_usart6_rx.Init.Mode = DMA_NORMAL;\r
-    hdma_usart6_rx.Init.Priority = DMA_PRIORITY_LOW;\r
-    hdma_usart6_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE;\r
-    if (HAL_DMA_Init(&hdma_usart6_rx) != HAL_OK)\r
-    {\r
-      Error_Handler();\r
-    }\r
-\r
-    __HAL_LINKDMA(uartHandle,hdmarx,hdma_usart6_rx);\r
-\r
   /* USER CODE BEGIN USART6_MspInit 1 */\r
 \r
   /* USER CODE END USART6_MspInit 1 */\r
@@ -134,10 +95,6 @@ void HAL_UART_MspDeInit(UART_HandleTypeDef* uartHandle)
     */\r
     HAL_GPIO_DeInit(GPIOC, GPIO_PIN_6|GPIO_PIN_7);\r
 \r
-    /* USART6 DMA DeInit */\r
-    HAL_DMA_DeInit(uartHandle->hdmatx);\r
-    HAL_DMA_DeInit(uartHandle->hdmarx);\r
-\r
     /* USART6 interrupt Deinit */\r
     HAL_NVIC_DisableIRQ(USART6_IRQn);\r
   /* USER CODE BEGIN USART6_MspDeInit 1 */\r
index 6ae63027c9b1cc3c00022dde3bd3958398d81249..9b04d16fef71add4d2419f79d1f69989cf89ade7 100644 (file)
@@ -1,42 +1,18 @@
 #MicroXplorer Configuration settings - do not modify
-Dma.Request0=USART6_TX
-Dma.Request1=USART6_RX
-Dma.RequestsNb=2
-Dma.USART6_RX.1.Direction=DMA_PERIPH_TO_MEMORY
-Dma.USART6_RX.1.FIFOMode=DMA_FIFOMODE_DISABLE
-Dma.USART6_RX.1.Instance=DMA2_Stream1
-Dma.USART6_RX.1.MemDataAlignment=DMA_MDATAALIGN_BYTE
-Dma.USART6_RX.1.MemInc=DMA_MINC_ENABLE
-Dma.USART6_RX.1.Mode=DMA_NORMAL
-Dma.USART6_RX.1.PeriphDataAlignment=DMA_PDATAALIGN_BYTE
-Dma.USART6_RX.1.PeriphInc=DMA_PINC_DISABLE
-Dma.USART6_RX.1.Priority=DMA_PRIORITY_LOW
-Dma.USART6_RX.1.RequestParameters=Instance,Direction,PeriphInc,MemInc,PeriphDataAlignment,MemDataAlignment,Mode,Priority,FIFOMode
-Dma.USART6_TX.0.Direction=DMA_MEMORY_TO_PERIPH
-Dma.USART6_TX.0.FIFOMode=DMA_FIFOMODE_DISABLE
-Dma.USART6_TX.0.Instance=DMA2_Stream6
-Dma.USART6_TX.0.MemDataAlignment=DMA_MDATAALIGN_BYTE
-Dma.USART6_TX.0.MemInc=DMA_MINC_ENABLE
-Dma.USART6_TX.0.Mode=DMA_NORMAL
-Dma.USART6_TX.0.PeriphDataAlignment=DMA_PDATAALIGN_BYTE
-Dma.USART6_TX.0.PeriphInc=DMA_PINC_DISABLE
-Dma.USART6_TX.0.Priority=DMA_PRIORITY_LOW
-Dma.USART6_TX.0.RequestParameters=Instance,Direction,PeriphInc,MemInc,PeriphDataAlignment,MemDataAlignment,Mode,Priority,FIFOMode
 File.Version=6
 KeepUserPlacement=false
 Mcu.Family=STM32F7
 Mcu.IP0=CORTEX_M7
-Mcu.IP1=DMA
-Mcu.IP10=USART6
-Mcu.IP2=NVIC
-Mcu.IP3=RCC
-Mcu.IP4=SYS
-Mcu.IP5=TIM2
-Mcu.IP6=TIM3
-Mcu.IP7=TIM4
-Mcu.IP8=TIM5
-Mcu.IP9=TIM6
-Mcu.IPNb=11
+Mcu.IP1=NVIC
+Mcu.IP2=RCC
+Mcu.IP3=SYS
+Mcu.IP4=TIM2
+Mcu.IP5=TIM3
+Mcu.IP6=TIM4
+Mcu.IP7=TIM5
+Mcu.IP8=TIM6
+Mcu.IP9=USART6
+Mcu.IPNb=10
 Mcu.Name=STM32F767ZITx
 Mcu.Package=LQFP144
 Mcu.Pin0=PC13
@@ -66,11 +42,9 @@ Mcu.PinsNb=23
 Mcu.ThirdPartyNb=0
 Mcu.UserConstants=
 Mcu.UserName=STM32F767ZITx
-MxCube.Version=5.4.0
-MxDb.Version=DB.5.0.40
+MxCube.Version=5.5.0
+MxDb.Version=DB.5.0.50
 NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false
-NVIC.DMA2_Stream1_IRQn=true\:0\:0\:false\:false\:true\:false\:true
-NVIC.DMA2_Stream6_IRQn=true\:0\:0\:false\:false\:true\:false\:true
 NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:false\:false
 NVIC.EXTI15_10_IRQn=true\:0\:0\:false\:false\:true\:true\:true
 NVIC.ForceEnableDMAVector=true
@@ -117,8 +91,6 @@ PC0.GPIOParameters=GPIO_Label
 PC0.GPIO_Label=current2
 PC0.Locked=true
 PC0.Signal=GPIO_Analog
-PC13.GPIOParameters=GPIO_Label
-PC13.GPIO_Label=user_button
 PC13.Locked=true
 PC13.Signal=GPXTI13
 PC6.Mode=Asynchronous
@@ -193,7 +165,7 @@ ProjectManager.StackSize=0x400
 ProjectManager.TargetToolchain=STM32CubeIDE
 ProjectManager.ToolChainLocation=
 ProjectManager.UnderRoot=true
-ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,1-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_TIM2_Init-TIM2-false-HAL-true,4-MX_TIM3_Init-TIM3-false-HAL-true,5-MX_TIM4_Init-TIM4-false-HAL-true,6-MX_TIM5_Init-TIM5-false-HAL-true,7-MX_USART6_UART_Init-USART6-false-HAL-true,8-MX_CORTEX_M7_Init-CORTEX_M7-false-HAL-true,9-MX_TIM6_Init-TIM6-false-HAL-true
+ProjectManager.functionlistsort=1-MX_GPIO_Init-GPIO-false-HAL-true,2-SystemClock_Config-RCC-false-HAL-false,2-MX_DMA_Init-DMA-false-HAL-true,4-MX_TIM2_Init-TIM2-false-HAL-true,5-MX_TIM3_Init-TIM3-false-HAL-true,6-MX_TIM4_Init-TIM4-false-HAL-true,7-MX_TIM5_Init-TIM5-false-HAL-true,8-MX_USART6_UART_Init-USART6-false-HAL-true,9-MX_CORTEX_M7_Init-CORTEX_M7-false-HAL-true,10-MX_TIM6_Init-TIM6-false-HAL-true
 RCC.CECFreq_Value=32786.88524590164
 RCC.DFSDMFreq_Value=16000000
 RCC.FamilyName=M
index 50c3c83e6d9f2560c4879f4096529180e5fda824..6aebfd2780f27280415fa80e32bcd105a368ff3c 100644 (file)
@@ -12,8 +12,6 @@ SourceFiles#1=/home/fdila/Projects/otto/test_dma/Core/Src/stm32f7xx_hal_msp.c
 SourceFiles#2=/home/fdila/Projects/otto/test_dma/Core/Src/main.c\r
 SourceFolderListSize=1\r
 SourcePath#0=/home/fdila/Projects/otto/test_dma/Core/Src\r
-HeaderFiles=;\r
-SourceFiles=;\r
 \r
 [PreviousLibFiles]\r
 LibFiles=Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_cortex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_tim.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_tim_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_uart.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_uart_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_flash.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_flash_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pwr.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pwr_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_def.h;Drivers/STM32F7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_i2c.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_i2c_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_exti.h;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_flash.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_flash_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_gpio.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_exti.c;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_cortex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_tim.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_tim_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_uart.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_uart_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_flash.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_flash_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pwr.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pwr_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_def.h;Drivers/STM32F7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_i2c.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_i2c_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_exti.h;Drivers/CMSIS/Device/ST/STM32F7xx/Include/stm32f767xx.h;Drivers/CMSIS/Device/ST/STM32F7xx/Include/stm32f7xx.h;Drivers/CMSIS/Device/ST/STM32F7xx/Include/system_stm32f7xx.h;Drivers/CMSIS/Device/ST/STM32F7xx/Source/Templates/system_stm32f7xx.c;Drivers/CMSIS/Include/cmsis_gcc.h;Drivers/CMSIS/Include/core_cm3.h;Drivers/CMSIS/Include/core_armv8mml.h;Drivers/CMSIS/Include/cmsis_armcc.h;Drivers/CMSIS/Include/core_sc300.h;Drivers/CMSIS/Include/core_cm33.h;Drivers/CMSIS/Include/core_cm0.h;Drivers/CMSIS/Include/core_cm1.h;Drivers/CMSIS/Include/tz_context.h;Drivers/CMSIS/Include/cmsis_armclang.h;Drivers/CMSIS/Include/core_cm7.h;Drivers/CMSIS/Include/cmsis_compiler.h;Drivers/CMSIS/Include/cmsis_iccarm.h;Drivers/CMSIS/Include/core_cm23.h;Drivers/CMSIS/Include/core_armv8mbl.h;Drivers/CMSIS/Include/core_cm0plus.h;Drivers/CMSIS/Include/mpu_armv7.h;Drivers/CMSIS/Include/mpu_armv8.h;Drivers/CMSIS/Include/cmsis_version.h;Drivers/CMSIS/Include/core_sc000.h;Drivers/CMSIS/Include/core_cm4.h;\r
index 932f5d532d9b269dd70cb48fe2ac7522212ed902..7b20a1b5e78b487a21e3a4925bdc46e23b783dd7 100644 (file)
@@ -105,6 +105,8 @@ int main(void)
   HAL_UART_Receive_DMA(&huart6, rx_buffer, 8);\r
 \r
   /* USER CODE END 2 */\r
\r
\r
 \r
   /* Infinite loop */\r
   /* USER CODE BEGIN WHILE */\r
@@ -250,6 +252,7 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) {
 }\r
 void HAL_UART_RxCpltCallback(UART_HandleTypeDef *UartHandle) {\r
   HAL_UART_Receive_DMA(&huart6, rx_buffer, 8);\r
+  mode++;\r
 }\r
 \r
 /* USER CODE END 4 */\r
index 309018a2eb07df3771c19c91c16eda15b645a60e..721fdbe6ac8d556ee7191fd1fdce952824825b6f 100644 (file)
@@ -43,7 +43,7 @@ Mcu.ThirdPartyNb=0
 Mcu.UserConstants=
 Mcu.UserName=STM32F767ZITx
 MxCube.Version=5.5.0
-MxDb.Version=DB.5.0.40
+MxDb.Version=DB.5.0.50
 NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false
 NVIC.DMA2_Stream1_IRQn=true\:0\:0\:false\:false\:true\:false\:true
 NVIC.DMA2_Stream6_IRQn=true\:0\:0\:false\:false\:true\:false\:true