From 961c1174bbf1aaae5fa2f672806ed4eaf2f917be Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期三, 05 二月 2025 15:45:10 +0800
Subject: [PATCH] 串口传输协议加上一位指令类型

---
 01_SDK/modules/hal/panchip/panplat/pan1070/bsp/peripheral/inc/pan_gpio.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/01_SDK/modules/hal/panchip/panplat/pan1070/bsp/peripheral/inc/pan_gpio.h b/01_SDK/modules/hal/panchip/panplat/pan1070/bsp/peripheral/inc/pan_gpio.h
index 492c504..231ac4d 100644
--- a/01_SDK/modules/hal/panchip/panplat/pan1070/bsp/peripheral/inc/pan_gpio.h
+++ b/01_SDK/modules/hal/panchip/panplat/pan1070/bsp/peripheral/inc/pan_gpio.h
@@ -362,7 +362,7 @@
  */
 __STATIC_INLINE bool GPIO_GetIntFlag(GPIO_T *gpio, uint32_t u32PinMask)
 {
-    return (bool)(gpio->INTSRC & u32PinMask);
+    return (gpio->INTSRC & u32PinMask) ? true : false;
 }
 
 /**

--
Gitblit v1.9.3