更新通讯协议,完善灯丝控制

This commit is contained in:
2026-08-26 16:06:02 +08:00
parent 29e22659ce
commit 653c7ec412
10 changed files with 228 additions and 113 deletions
+3 -1
View File
@@ -48,7 +48,7 @@ extern "C" {
/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */
#define VERSION_STR "V8.5.0"
#define VERSION_STR "V1.0.0"
#ifdef BOOTLOADER
#define SW_VER "BL for " VERSION_STR
#else
@@ -69,6 +69,8 @@ void Error_Handler(void);
/* Private defines -----------------------------------------------------------*/
#define LED_Pin GPIO_PIN_2
#define LED_GPIO_Port GPIOE
#define WORK_CMD_Pin GPIO_PIN_3
#define WORK_CMD_GPIO_Port GPIOE
#define I_FILA_Pin GPIO_PIN_5
#define I_FILA_GPIO_Port GPIOC
#define V_FILA_Pin GPIO_PIN_0
+6
View File
@@ -900,6 +900,12 @@ static void MX_GPIO_Init(void)
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(LED_GPIO_Port, &GPIO_InitStruct);
/*Configure GPIO pin : WORK_CMD_Pin */
GPIO_InitStruct.Pin = WORK_CMD_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(WORK_CMD_GPIO_Port, &GPIO_InitStruct);
/*Configure GPIO pin : WDI_Pin */
GPIO_InitStruct.Pin = WDI_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;