增加调试功能,以及yaw补偿

This commit is contained in:
lyf committed 2026-11-18 16:05:46 +08:00
1 parent 267a659242
commit 957c535bda
257 files changed
+239436 -692

No files matched your search

+42
View File
@@ -0,0 +1,42 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file gpio.c
* @brief GPIO 初始化(module_test 精简版)
******************************************************************************
* @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 */
/* Includes ------------------------------------------------------------------*/
#include "gpio.h"
/*
* 本工程只做单电机台架测试:
* - CAN / USART3 / TIM4(蜂鸣器) / TIM5(LED) / USB 的 GPIO 复用配置
* 在各外设自己的 HAL_xxx_MspInit 内完成(can.c / usart.c / tim.c / usbd_conf.c);
* - 原 IMU(BMI088/IST8310)、按键、拨弹检测等无关引脚与 EXTI 中断已全部移除,
* 避免台架上悬空引脚误触发中断。
* 这里只保留端口时钟使能(保证任何早期 GPIO 访问都有效)。
*/
void MX_GPIO_Init(void)
{
__HAL_RCC_GPIOA_CLK_ENABLE();
__HAL_RCC_GPIOB_CLK_ENABLE();
__HAL_RCC_GPIOC_CLK_ENABLE();
__HAL_RCC_GPIOD_CLK_ENABLE();
__HAL_RCC_GPIOE_CLK_ENABLE();
__HAL_RCC_GPIOF_CLK_ENABLE();
__HAL_RCC_GPIOG_CLK_ENABLE();
__HAL_RCC_GPIOH_CLK_ENABLE();
__HAL_RCC_GPIOI_CLK_ENABLE();
}