feat: 集成 EasyLogger 并更新 UART DMA 回调
- 集成 EasyLogger,增强日志功能。 - 更新 UART DMA 回调以使用 EasyLogger 记录日志。 - 重新格式化 README.md,提升可读性和清晰度。 - 添加新的 CMSIS DSP 和 FreeRTOS 源文件。 - 更新 CMake 配置以包含 EasyLogger 源文件。 此提交改进了日志功能,为后续开发做好了准备。
This commit is contained in:
113
Core/Inc/main.h
Normal file
113
Core/Inc/main.h
Normal file
@@ -0,0 +1,113 @@
|
||||
/* USER CODE BEGIN Header */
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file : main.h
|
||||
* @brief : Header for main.c file.
|
||||
* This file contains the common defines of the application.
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* Copyright (c) 2026 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 __MAIN_H
|
||||
#define __MAIN_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
#include "stm32f1xx_hal.h"
|
||||
|
||||
/* Private includes ----------------------------------------------------------*/
|
||||
/* USER CODE BEGIN Includes */
|
||||
|
||||
/* USER CODE END Includes */
|
||||
|
||||
/* Exported types ------------------------------------------------------------*/
|
||||
/* USER CODE BEGIN ET */
|
||||
|
||||
/* USER CODE END ET */
|
||||
|
||||
/* Exported constants --------------------------------------------------------*/
|
||||
/* USER CODE BEGIN EC */
|
||||
|
||||
/* USER CODE END EC */
|
||||
|
||||
/* Exported macro ------------------------------------------------------------*/
|
||||
/* USER CODE BEGIN EM */
|
||||
|
||||
/* USER CODE END EM */
|
||||
|
||||
/* Exported functions prototypes ---------------------------------------------*/
|
||||
void Error_Handler(void);
|
||||
|
||||
/* USER CODE BEGIN EFP */
|
||||
|
||||
/* USER CODE END EFP */
|
||||
|
||||
/* Private defines -----------------------------------------------------------*/
|
||||
#define RUN_LED_Pin GPIO_PIN_13
|
||||
#define RUN_LED_GPIO_Port GPIOC
|
||||
#define HC_SR04_Pin GPIO_PIN_0
|
||||
#define HC_SR04_GPIO_Port GPIOA
|
||||
#define M4_W_Pin GPIO_PIN_2
|
||||
#define M4_W_GPIO_Port GPIOA
|
||||
#define M4_S_Pin GPIO_PIN_3
|
||||
#define M4_S_GPIO_Port GPIOA
|
||||
#define SDA_Pin GPIO_PIN_4
|
||||
#define SDA_GPIO_Port GPIOC
|
||||
#define IOR_Pin GPIO_PIN_5
|
||||
#define IOR_GPIO_Port GPIOC
|
||||
#define RST_Pin GPIO_PIN_0
|
||||
#define RST_GPIO_Port GPIOB
|
||||
#define M1_W_Pin GPIO_PIN_9
|
||||
#define M1_W_GPIO_Port GPIOE
|
||||
#define M1_S_Pin GPIO_PIN_11
|
||||
#define M1_S_GPIO_Port GPIOE
|
||||
#define M2_W_Pin GPIO_PIN_13
|
||||
#define M2_W_GPIO_Port GPIOE
|
||||
#define M2_S_Pin GPIO_PIN_14
|
||||
#define M2_S_GPIO_Port GPIOE
|
||||
#define M_I_4_Pin GPIO_PIN_14
|
||||
#define M_I_4_GPIO_Port GPIOB
|
||||
#define M_I_3_Pin GPIO_PIN_15
|
||||
#define M_I_3_GPIO_Port GPIOB
|
||||
#define M_I_2_Pin GPIO_PIN_8
|
||||
#define M_I_2_GPIO_Port GPIOD
|
||||
#define M_I_1_Pin GPIO_PIN_9
|
||||
#define M_I_1_GPIO_Port GPIOD
|
||||
#define H4_Pin GPIO_PIN_11
|
||||
#define H4_GPIO_Port GPIOD
|
||||
#define H3_Pin GPIO_PIN_12
|
||||
#define H3_GPIO_Port GPIOD
|
||||
#define H2_Pin GPIO_PIN_13
|
||||
#define H2_GPIO_Port GPIOD
|
||||
#define H1_Pin GPIO_PIN_14
|
||||
#define H1_GPIO_Port GPIOD
|
||||
#define LED_Pin GPIO_PIN_15
|
||||
#define LED_GPIO_Port GPIOD
|
||||
#define M3_W_Pin GPIO_PIN_15
|
||||
#define M3_W_GPIO_Port GPIOA
|
||||
#define M3_S_Pin GPIO_PIN_3
|
||||
#define M3_S_GPIO_Port GPIOB
|
||||
|
||||
/* USER CODE BEGIN Private defines */
|
||||
|
||||
/* USER CODE END Private defines */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __MAIN_H */
|
||||
Reference in New Issue
Block a user