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/inc/pan_fmc.h |   27 +++++++++++++--------------
 1 files changed, 13 insertions(+), 14 deletions(-)

diff --git a/01_SDK/modules/hal/panchip/panplat/pan1070/bsp/peripheral/inc/pan_fmc.h b/01_SDK/modules/hal/panchip/panplat/pan1070/bsp/peripheral/inc/pan_fmc.h
index 2e8f439..7f830fa 100644
--- a/01_SDK/modules/hal/panchip/panplat/pan1070/bsp/peripheral/inc/pan_fmc.h
+++ b/01_SDK/modules/hal/panchip/panplat/pan1070/bsp/peripheral/inc/pan_fmc.h
@@ -151,6 +151,18 @@
 }
 
 /**
+ * @brief Get busy status of FMC module
+ * @param fmc Flash memory controller base
+ * @note FMC changes to busy status when doing read/write/erase operations
+ *       using software APIs in current fmc driver.
+ * @return fmc is busy working (true) or not (false)
+ */
+__STATIC_FORCEINLINE bool FMC_IsBusyWorking(FLCTL_T *fmc)
+{
+    return (bool)fmc->X_FL_TRIG;
+}
+
+/**
   * @brief  This function is used to get flash unique id,
   * @param  fmc: where fmc is a flash peripheral.
   * @return None
@@ -224,20 +236,7 @@
   * @retval -1: Fail.
   */
 extern int FMC_EraseBlock64k(FLCTL_T *fmc,unsigned long addr);
-/**
-  * @brief Erase the whole flash memory.
-  *
-  * This function is used to erase all data in flash, include
-  * Code Area and Info Area.
-  *
-  * @note This API should only be used when you really know what
-  * you are doing.
-  *
-  * @param fmc: where fmc is a flash peripheral.
-  * @retval 0: Success.
-  * @retval -1: Fail.
-  */
-extern int FMC_EraseChip(FLCTL_T *fmc);
+
 /**
   * @brief Erase specific data in flash code area.
   *

--
Gitblit v1.9.3