From ae079c1fc5d990ba55714d4b3a51b19f96edaec4 Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期四, 24 四月 2025 16:01:43 +0800
Subject: [PATCH] 改为中断来低电平触发发送当前扫描数据,3s内扫描不到的会退出,串口来55 AA 75 70 64 61 74 65,进入升级模式

---
 01_SDK/modules/hal/panchip/panplat/pan1070/bsp/peripheral/src/pan_hal_pwm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/01_SDK/modules/hal/panchip/panplat/pan1070/bsp/peripheral/src/pan_hal_pwm.c b/01_SDK/modules/hal/panchip/panplat/pan1070/bsp/peripheral/src/pan_hal_pwm.c
index d8987c1..0bb6505 100644
--- a/01_SDK/modules/hal/panchip/panplat/pan1070/bsp/peripheral/src/pan_hal_pwm.c
+++ b/01_SDK/modules/hal/panchip/panplat/pan1070/bsp/peripheral/src/pan_hal_pwm.c
@@ -55,13 +55,13 @@
 	uint32_t clockBit = ClockBitGet(chId);
 	
 	if (clockBit == 0) {
-		return -PAN_HAL_INVALID_PARAMS;
+		return -HAL_INVALID_PARAMS;
 	}
 	
 	uint8_t handle = SearchFreeHandle();
 	
 	if (handle == PWM_MAX_WORKING_NUMBER) {
-		return -PAN_HAL_NO_HARDWARE_SOURCE;
+		return -HAL_NO_HARDWARE_SOURCE;
 	}
 	/* store inforamtion to device configurations, and it will be used by handle */ 
 	deviceConfigures[handle].id = chId;

--
Gitblit v1.9.3