From f179752527e4d74e837cf22801bb146dac6a8267 Mon Sep 17 00:00:00 2001 From: stark1898y <1658608470@qq.com> Date: Thu, 14 Nov 2024 09:48:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E9=97=B4=E9=9A=94MS1=5FTO=5F?= =?UTF-8?q?SYSTEM=5FTIME?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- APP/bsp_wf5803.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/APP/bsp_wf5803.c b/APP/bsp_wf5803.c index 761c9cf..82383ab 100644 --- a/APP/bsp_wf5803.c +++ b/APP/bsp_wf5803.c @@ -122,17 +122,12 @@ void SensorData_Process(void) // PRINT("T=%d.%d \r\n", (int)temp, ((int)(temp * 100.0f) % 100)); } -// 1600 = 1s -// 1ms = 1.6 - -#define TICK_MS(x) (x * 1.6) - uint16_t wf5803_ProcessEvent(uint8_t task_id, uint16_t events) { if (events & WF5803_EVT) { SensorData_Process(); - tmos_start_task(Peripheral_TaskID, WF5803_EVT, TICK_MS(100)); + tmos_start_task(Peripheral_TaskID, WF5803_EVT, MS1_TO_SYSTEM_TIME(100)); return (events ^ WF5803_EVT); } return 0;