From 23480ab197150979f4505501a1abe8a64796fb18 Mon Sep 17 00:00:00 2001
From: chen <15335560115@163.com>
Date: 星期五, 04 七月 2025 18:37:07 +0800
Subject: [PATCH] 初步调好发包,解决因为uwb未open导致txlen不断溢出重启问题,两边sts配置初步调好

---
 keil/include/drivers/mk_pwm.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/keil/include/drivers/mk_pwm.c b/keil/include/drivers/mk_pwm.c
index 186ba54..98e3516 100644
--- a/keil/include/drivers/mk_pwm.c
+++ b/keil/include/drivers/mk_pwm.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2019-2023 Beijing Hanwei Innovation Technology Ltd. Co. and
+ * Copyright (c) 2019-2025 Beijing Hanwei Innovation Technology Ltd. Co. and
  * its subsidiaries and affiliates (collectly called MKSEMI).
  *
  * All rights reserved.
@@ -125,6 +125,10 @@
     {
         pwm_handle.base->PHASE[1] |= PWM_PHASE_PWM3_COUNTER(cfg->phase * 255U / 360U);
     }
+    else if (id == PWM_ID4)
+    {
+        // The phase value of PWM_ID4 is fixed at 0 and cannot be set.
+    }
 
     // enable
     val = pwm_handle.base->CTRL;

--
Gitblit v1.9.3