From d68908b417453481a7a7acb7a2951938a598c9b8 Mon Sep 17 00:00:00 2001 From: stark1898y <1658608470@qq.com> Date: Sun, 15 Dec 2024 15:28:43 +0800 Subject: [PATCH 01/16] =?UTF-8?q?=E5=A4=8D=E5=88=B6=E4=BA=86=E6=96=B0?= =?UTF-8?q?=E7=9A=84common=EF=BC=8C=E5=BC=80=E4=BA=86SLEEP=E6=B2=A1?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .settings/language.settings.xml | 2 +- APP/peripheral_main.c | 2 +- HAL/include/CONFIG.h | 2 +- common/letter-shell/extensions/log/log.h | 2 +- common/letter-shell/shell_cfg.h | 2 +- common/letter-shell/shell_port.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.settings/language.settings.xml b/.settings/language.settings.xml index 2e3b5bb..18c8056 100644 --- a/.settings/language.settings.xml +++ b/.settings/language.settings.xml @@ -5,7 +5,7 @@ - + diff --git a/APP/peripheral_main.c b/APP/peripheral_main.c index b7da959..b70f54f 100644 --- a/APP/peripheral_main.c +++ b/APP/peripheral_main.c @@ -145,7 +145,7 @@ int main(void) // UART1_DefInit(); // 改成1500000波特率了 - BSP_UART1_Init(460800); + BSP_UART1_Init(1500000); // logDebug("Start @ChipID=%02X\n", R8_CHIP_ID); logDebug("Start @ChipID=%02X\n", R8_CHIP_ID); #endif diff --git a/HAL/include/CONFIG.h b/HAL/include/CONFIG.h index 9508fd2..672d892 100644 --- a/HAL/include/CONFIG.h +++ b/HAL/include/CONFIG.h @@ -82,7 +82,7 @@ #define DCDC_ENABLE TRUE #endif #ifndef HAL_SLEEP -#define HAL_SLEEP FALSE +#define HAL_SLEEP TRUE #endif #ifndef SLEEP_RTC_MIN_TIME #define SLEEP_RTC_MIN_TIME US_TO_RTC(1000) diff --git a/common/letter-shell/extensions/log/log.h b/common/letter-shell/extensions/log/log.h index e41dfa1..0842210 100644 --- a/common/letter-shell/extensions/log/log.h +++ b/common/letter-shell/extensions/log/log.h @@ -27,7 +27,7 @@ extern "C" { #define LOG_MAX_NUMBER 5 /**< 鍏佽娉ㄥ唽鐨勬渶澶og瀵硅薄鏁伴噺 */ #define LOG_AUTO_TAG 1 /**< 鏄惁鑷姩娣诲姞TAG */ #define LOG_END "\r\n" /**< log淇℃伅缁撳熬 */ -#define LOG_TIME_STAMP 0 /**< 璁剧疆鑾峰彇绯荤粺鏃堕棿鎴 */ +#define LOG_TIME_STAMP BSP_Get_Tick() /**< 璁剧疆鑾峰彇绯荤粺鏃堕棿鎴 */ #ifndef LOG_TAG #define LOG_TAG __FUNCTION__ /**< 鑷畾娣诲姞鐨凾AG */ diff --git a/common/letter-shell/shell_cfg.h b/common/letter-shell/shell_cfg.h index b2f2b58..10c6e0a 100644 --- a/common/letter-shell/shell_cfg.h +++ b/common/letter-shell/shell_cfg.h @@ -185,7 +185,7 @@ * 瀹氫箟姝ゅ畯涓鸿幏鍙栫郴缁烼ick锛屽`HAL_GetTick()` * @note 姝ゅ畯涓嶅畾涔夋椂鏃犳硶浣跨敤鍙屽嚮tab琛ュ叏鍛戒护help锛屾棤娉曚娇鐢╯hell瓒呮椂閿佸畾 */ -#define SHELL_GET_TICK() BSP_Get_Tick() +#define SHELL_GET_TICK() TMOS_GetSystemClock() #endif /** SHELL_GET_TICK */ #ifndef SHELL_USING_LOCK diff --git a/common/letter-shell/shell_port.h b/common/letter-shell/shell_port.h index 4b55018..069982a 100644 --- a/common/letter-shell/shell_port.h +++ b/common/letter-shell/shell_port.h @@ -14,7 +14,7 @@ #include "shell.h" -#define SHELL_BUF_LENGTH 1024 +#define SHELL_BUF_LENGTH 256 extern Shell shell; From 16ff36c10bc7f631bbafadbd73be7712a07972ff Mon Sep 17 00:00:00 2001 From: stark1898y <1658608470@qq.com> Date: Sun, 15 Dec 2024 15:34:51 +0800 Subject: [PATCH 02/16] =?UTF-8?q?float=E6=89=93=E5=8D=B0=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=EF=BC=8C=E5=8F=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cproject | 6 +++--- .settings/org.eclipse.core.resources.prefs | 1 + APP/peripheral_main.c | 16 +++++++++++----- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.cproject b/.cproject index 328c437..74bb70a 100644 --- a/.cproject +++ b/.cproject @@ -45,7 +45,7 @@ -