From 58bf13b0569714d03afe101a3abb4d2419ec9e30 Mon Sep 17 00:00:00 2001
From: yincheng.zhong <634916154@qq.com>
Date: 星期日, 25 二月 2024 19:04:38 +0800
Subject: [PATCH] Merge branch '免布线基站-lora' of http://47.108.70.204:60062/r/XRange_Tag into 免布线基站-lora

---
 Src/radio/sx126x.c |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/Src/radio/sx126x.c b/Src/radio/sx126x.c
index 3c375a4..91725a5 100644
--- a/Src/radio/sx126x.c
+++ b/Src/radio/sx126x.c
@@ -79,14 +79,18 @@
  * \brief Process the IRQ if handled by the driver
  */
 void SX126xProcessIrqs( void );
-
-
+#include "main.h"
+extern LPTIM_HandleTypeDef hlptim1;
+uint16_t tt3[10];
 void SX126xInit( DioIrqHandler dioIrq )
 {
+   tt3[0] = HAL_LPTIM_ReadCounter(&hlptim1); 
     SX126xReset( );
+    tt3[1] = HAL_LPTIM_ReadCounter(&hlptim1);
     SX126xWakeup( );
+    tt3[2] = HAL_LPTIM_ReadCounter(&hlptim1);
     SX126xSetStandby( STDBY_RC );
-
+tt3[3] = HAL_LPTIM_ReadCounter(&hlptim1);
 #ifdef USE_TCXO
     CalibrationParams_t calibParam;
 
@@ -95,8 +99,9 @@
     SX126xCalibrate( calibParam );
 
 #endif
-    
+   tt3[4] = HAL_LPTIM_ReadCounter(&hlptim1); 
     SX126xSetDio2AsRfSwitchCtrl( true );
+    tt3[5] = HAL_LPTIM_ReadCounter(&hlptim1);
     OperatingMode = MODE_STDBY_RC;
 }
 

--
Gitblit v1.9.3