From b9b0053baa0f30e0068c9e2ff0a697251b208c56 Mon Sep 17 00:00:00 2001 From: RB Date: Mon, 28 Apr 2025 15:44:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 4 +++- User/device/{uart_pc.c => pc_uart.c} | 4 ++-- User/device/{uart_pc.h => pc_uart.h} | 0 3 files changed, 5 insertions(+), 3 deletions(-) rename User/device/{uart_pc.c => pc_uart.c} (96%) rename User/device/{uart_pc.h => pc_uart.h} (100%) diff --git a/.vscode/settings.json b/.vscode/settings.json index 7b8de78..13add5f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,7 @@ { "files.associations": { - "uart.h": "c" + "uart.h": "c", + "device.h": "c", + "pc_uart.h": "c" } } \ No newline at end of file diff --git a/User/device/uart_pc.c b/User/device/pc_uart.c similarity index 96% rename from User/device/uart_pc.c rename to User/device/pc_uart.c index 8fd5241..0e40455 100644 --- a/User/device/uart_pc.c +++ b/User/device/pc_uart.c @@ -1,5 +1,5 @@ /* Includes ----------------------------------------------------------------- */ -#include "uart.h" +#include "pc_uart.h" #include @@ -50,5 +50,5 @@ int8_t UART_StartSend(UART_t *huart) { return DEVICE_OK } - return DEVICE_ERROR; + return DEVICE_ERR; } \ No newline at end of file diff --git a/User/device/uart_pc.h b/User/device/pc_uart.h similarity index 100% rename from User/device/uart_pc.h rename to User/device/pc_uart.h