Skip to content

Commit 114563d

Browse files
committed
LOG by USART1 OK
0 parents  commit 114563d

21 files changed

+5970
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.uvguix.*
2+
JLinkLog.txt
3+
MDK-ARM/STM32V6_systemview_demo/*
4+

.mxproject

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[PreviousGenFiles]
2+
AdvancedFolderStructure=true
3+
HeaderFileListSize=5
4+
HeaderFiles#0=..\Core\Inc\gpio.h
5+
HeaderFiles#1=..\Core\Inc\usart.h
6+
HeaderFiles#2=..\Core\Inc\stm32f4xx_it.h
7+
HeaderFiles#3=..\Core\Inc\stm32f4xx_hal_conf.h
8+
HeaderFiles#4=..\Core\Inc\main.h
9+
HeaderFolderListSize=1
10+
HeaderPath#0=..\Core\Inc
11+
HeaderFiles=;
12+
SourceFileListSize=5
13+
SourceFiles#0=..\Core\Src\gpio.c
14+
SourceFiles#1=..\Core\Src\usart.c
15+
SourceFiles#2=..\Core\Src\stm32f4xx_it.c
16+
SourceFiles#3=..\Core\Src\stm32f4xx_hal_msp.c
17+
SourceFiles#4=..\Core\Src\main.c
18+
SourceFolderListSize=1
19+
SourcePath#0=..\Core\Src
20+
SourceFiles=;
21+
22+
[PreviousLibFiles]
23+
LibFiles=Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_tim.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_tim_ex.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_uart.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_usart.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_rcc.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_rcc_ex.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_bus.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_rcc.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_system.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_utils.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_flash.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_flash_ex.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_flash_ramfunc.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_gpio.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_gpio_ex.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_gpio.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_dma_ex.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_dma.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_dma.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_dmamux.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_pwr.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_pwr_ex.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_pwr.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_cortex.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_cortex.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal.h;Drivers\STM32F4xx_HAL_Driver\Inc\Legacy\stm32_hal_legacy.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_def.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_exti.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_exti.h;Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_tim.c;Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_tim_ex.c;Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_uart.c;Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc.c;Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc_ex.c;Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash.c;Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash_ex.c;Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash_ramfunc.c;Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_gpio.c;Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma_ex.c;Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma.c;Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pwr.c;Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pwr_ex.c;Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cortex.c;Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal.c;Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_exti.c;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_tim.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_tim_ex.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_uart.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_usart.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_rcc.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_rcc_ex.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_bus.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_rcc.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_system.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_utils.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_flash.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_flash_ex.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_flash_ramfunc.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_gpio.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_gpio_ex.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_gpio.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_dma_ex.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_dma.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_dma.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_dmamux.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_pwr.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_pwr_ex.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_pwr.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_cortex.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_cortex.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal.h;Drivers\STM32F4xx_HAL_Driver\Inc\Legacy\stm32_hal_legacy.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_def.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_exti.h;Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_ll_exti.h;Drivers\CMSIS\Device\ST\STM32F4xx\Include\stm32f429xx.h;Drivers\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h;Drivers\CMSIS\Device\ST\STM32F4xx\Include\system_stm32f4xx.h;Drivers\CMSIS\Device\ST\STM32F4xx\Source\Templates\system_stm32f4xx.c;Drivers\CMSIS\Include\cachel1_armv7.h;Drivers\CMSIS\Include\cmsis_armcc.h;Drivers\CMSIS\Include\cmsis_armclang.h;Drivers\CMSIS\Include\cmsis_armclang_ltm.h;Drivers\CMSIS\Include\cmsis_compiler.h;Drivers\CMSIS\Include\cmsis_gcc.h;Drivers\CMSIS\Include\cmsis_iccarm.h;Drivers\CMSIS\Include\cmsis_version.h;Drivers\CMSIS\Include\core_armv81mml.h;Drivers\CMSIS\Include\core_armv8mbl.h;Drivers\CMSIS\Include\core_armv8mml.h;Drivers\CMSIS\Include\core_cm0.h;Drivers\CMSIS\Include\core_cm0plus.h;Drivers\CMSIS\Include\core_cm1.h;Drivers\CMSIS\Include\core_cm23.h;Drivers\CMSIS\Include\core_cm3.h;Drivers\CMSIS\Include\core_cm33.h;Drivers\CMSIS\Include\core_cm35p.h;Drivers\CMSIS\Include\core_cm4.h;Drivers\CMSIS\Include\core_cm55.h;Drivers\CMSIS\Include\core_cm7.h;Drivers\CMSIS\Include\core_cm85.h;Drivers\CMSIS\Include\core_sc000.h;Drivers\CMSIS\Include\core_sc300.h;Drivers\CMSIS\Include\core_starmc1.h;Drivers\CMSIS\Include\mpu_armv7.h;Drivers\CMSIS\Include\mpu_armv8.h;Drivers\CMSIS\Include\pac_armv81.h;Drivers\CMSIS\Include\pmu_armv8.h;Drivers\CMSIS\Include\tz_context.h;
24+
25+
[PreviousUsedKeilFiles]
26+
SourceFiles=..\Core\Src\main.c;..\Core\Src\gpio.c;..\Core\Src\usart.c;..\Core\Src\stm32f4xx_it.c;..\Core\Src\stm32f4xx_hal_msp.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_tim.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_tim_ex.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_uart.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc_ex.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash_ex.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash_ramfunc.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_gpio.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma_ex.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pwr.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pwr_ex.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cortex.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_exti.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\CMSIS\Device\ST\STM32F4xx\Source\Templates\system_stm32f4xx.c;..\Core\Src\system_stm32f4xx.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_tim.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_tim_ex.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_uart.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc_ex.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash_ex.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash_ramfunc.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_gpio.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma_ex.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pwr.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pwr_ex.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cortex.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_exti.c;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\CMSIS\Device\ST\STM32F4xx\Source\Templates\system_stm32f4xx.c;..\Core\Src\system_stm32f4xx.c;;;
27+
HeaderPath=C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Inc;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\STM32F4xx_HAL_Driver\Inc\Legacy;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\CMSIS\Device\ST\STM32F4xx\Include;C:\Users\dengjunde\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Drivers\CMSIS\Include;..\Core\Inc;
28+
CDefines=USE_HAL_DRIVER;STM32F429xx;USE_HAL_DRIVER;USE_HAL_DRIVER;
29+

Core/Inc/gpio.h

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/* USER CODE BEGIN Header */
2+
/**
3+
******************************************************************************
4+
* @file gpio.h
5+
* @brief This file contains all the function prototypes for
6+
* the gpio.c file
7+
******************************************************************************
8+
* @attention
9+
*
10+
* Copyright (c) 2024 STMicroelectronics.
11+
* All rights reserved.
12+
*
13+
* This software is licensed under terms that can be found in the LICENSE file
14+
* in the root directory of this software component.
15+
* If no LICENSE file comes with this software, it is provided AS-IS.
16+
*
17+
******************************************************************************
18+
*/
19+
/* USER CODE END Header */
20+
/* Define to prevent recursive inclusion -------------------------------------*/
21+
#ifndef __GPIO_H__
22+
#define __GPIO_H__
23+
24+
#ifdef __cplusplus
25+
extern "C" {
26+
#endif
27+
28+
/* Includes ------------------------------------------------------------------*/
29+
#include "main.h"
30+
31+
/* USER CODE BEGIN Includes */
32+
33+
/* USER CODE END Includes */
34+
35+
/* USER CODE BEGIN Private defines */
36+
37+
/* USER CODE END Private defines */
38+
39+
void MX_GPIO_Init(void);
40+
41+
/* USER CODE BEGIN Prototypes */
42+
43+
/* USER CODE END Prototypes */
44+
45+
#ifdef __cplusplus
46+
}
47+
#endif
48+
#endif /*__ GPIO_H__ */
49+

Core/Inc/main.h

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/* USER CODE BEGIN Header */
2+
/**
3+
******************************************************************************
4+
* @file : main.h
5+
* @brief : Header for main.c file.
6+
* This file contains the common defines of the application.
7+
******************************************************************************
8+
* @attention
9+
*
10+
* Copyright (c) 2024 STMicroelectronics.
11+
* All rights reserved.
12+
*
13+
* This software is licensed under terms that can be found in the LICENSE file
14+
* in the root directory of this software component.
15+
* If no LICENSE file comes with this software, it is provided AS-IS.
16+
*
17+
******************************************************************************
18+
*/
19+
/* USER CODE END Header */
20+
21+
/* Define to prevent recursive inclusion -------------------------------------*/
22+
#ifndef __MAIN_H
23+
#define __MAIN_H
24+
25+
#ifdef __cplusplus
26+
extern "C" {
27+
#endif
28+
29+
/* Includes ------------------------------------------------------------------*/
30+
#include "stm32f4xx_hal.h"
31+
32+
/* Private includes ----------------------------------------------------------*/
33+
/* USER CODE BEGIN Includes */
34+
35+
/* USER CODE END Includes */
36+
37+
/* Exported types ------------------------------------------------------------*/
38+
/* USER CODE BEGIN ET */
39+
40+
/* USER CODE END ET */
41+
42+
/* Exported constants --------------------------------------------------------*/
43+
/* USER CODE BEGIN EC */
44+
45+
/* USER CODE END EC */
46+
47+
/* Exported macro ------------------------------------------------------------*/
48+
/* USER CODE BEGIN EM */
49+
50+
/* USER CODE END EM */
51+
52+
/* Exported functions prototypes ---------------------------------------------*/
53+
void Error_Handler(void);
54+
55+
/* USER CODE BEGIN EFP */
56+
57+
/* USER CODE END EFP */
58+
59+
/* Private defines -----------------------------------------------------------*/
60+
61+
/* USER CODE BEGIN Private defines */
62+
63+
/* USER CODE END Private defines */
64+
65+
#ifdef __cplusplus
66+
}
67+
#endif
68+
69+
#endif /* __MAIN_H */

0 commit comments

Comments
 (0)