You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/08/07 05:03:46 UTC

[incubator-nuttx] branch master updated: fix warning

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 631ae0032e fix warning
631ae0032e is described below

commit 631ae0032ec1d7705da9f51b66c100987396da28
Author: p-eaglelaw <p-...@xiaomi.com>
AuthorDate: Sun Aug 7 10:34:14 2022 +0800

    fix warning
---
 arch/arm/src/phy62xx/phy6222_patch.c | 43 ++++++++++++++++++++----------------
 1 file changed, 24 insertions(+), 19 deletions(-)

diff --git a/arch/arm/src/phy62xx/phy6222_patch.c b/arch/arm/src/phy62xx/phy6222_patch.c
index bafa96fe84..6e60ce118a 100644
--- a/arch/arm/src/phy62xx/phy6222_patch.c
+++ b/arch/arm/src/phy62xx/phy6222_patch.c
@@ -1,19 +1,24 @@
-#include "types.h"
-#include <arch/irq.h>
-#include "mcu_phy_bumbee.h"
-
-#ifndef CONFIG_PHY6222_SDK
-void TIM1_IRQHandler1(void)
-{
-  /*  HAL_ENTER_CRITICAL_SECTION() */
-
-  if (AP_TIM1->status & 0x1)
-    {
-      clear_timer_int(AP_TIM1);
-      clear_timer(AP_TIM1);
-      LL_evt_schedule();
-    }
-
-  /* HAL_EXIT_CRITICAL_SECTION(); */
-}
-#endif
+#include "types.h"
+#include "rom_sym_def.h"
+#include <arch/irq.h>
+#include "mcu_phy_bumbee.h"
+
+extern int clear_timer_int(AP_TIM_TypeDef* TIMx);
+extern void clear_timer(AP_TIM_TypeDef* TIMx);
+extern void LL_evt_schedule(void);
+
+#ifndef CONFIG_PHY6222_SDK
+void TIM1_IRQHandler1(void)
+{
+  /*  HAL_ENTER_CRITICAL_SECTION() */
+
+  if (AP_TIM1->status & 0x1)
+    {
+      clear_timer_int(AP_TIM1);
+      clear_timer(AP_TIM1);
+      LL_evt_schedule();
+    }
+
+  /* HAL_EXIT_CRITICAL_SECTION(); */
+}
+#endif