From 597470f441c2da6d985d78350c4659bbe997a726 Mon Sep 17 00:00:00 2001 From: sunbeam Date: Fri, 6 Dec 2024 11:21:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DQAC=E5=AE=8F=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 20 ++++++++++++++++++- firmware/src/P417_SWTL_App_ert_rtw/rtwtypes.h | 2 +- firmware/src/RTE/RTE.c | 11 ---------- 3 files changed, 20 insertions(+), 13 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 05cd8ca..6ca07cf 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,5 +3,23 @@ "rte.h": "c", "sysdiagdetect.h": "c", "touch_example.h": "c" - } + }, + "MicroPython.executeButton": [ + { + "text": "▶", + "tooltip": "运行", + "alignment": "left", + "command": "extension.executeFile", + "priority": 3.5 + } + ], + "MicroPython.syncButton": [ + { + "text": "$(sync)", + "tooltip": "同步", + "alignment": "left", + "command": "extension.execute", + "priority": 4 + } + ] } \ No newline at end of file diff --git a/firmware/src/P417_SWTL_App_ert_rtw/rtwtypes.h b/firmware/src/P417_SWTL_App_ert_rtw/rtwtypes.h index d723218..b9117b9 100644 --- a/firmware/src/P417_SWTL_App_ert_rtw/rtwtypes.h +++ b/firmware/src/P417_SWTL_App_ert_rtw/rtwtypes.h @@ -49,7 +49,7 @@ typedef unsigned char uint8_T; typedef short int16_T; typedef unsigned short uint16_T; typedef int int32_T; -typedef unsigned int uint32_T; +typedef long unsigned int uint32_T; typedef float real32_T; typedef double real64_T; diff --git a/firmware/src/RTE/RTE.c b/firmware/src/RTE/RTE.c index afbb6c0..4f384eb 100644 --- a/firmware/src/RTE/RTE.c +++ b/firmware/src/RTE/RTE.c @@ -37,17 +37,6 @@ // For SWTL // #include "Global.h" -#ifndef uint8_t -#define uint8_t unsigned char -#endif - -#ifndef uint16_t -#define uint16_t unsigned short -#endif - -#ifndef uint32_t -#define uint32_t unsigned int -#endif #define Cncl_Btn_E2EID ((uint16_t)(0x2136)) // in CAN ID 0x305