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/11/13 14:35:33 UTC

[incubator-nuttx] 09/18: Fix Error: chip/nuc_timerisr.c:105:20: error: unused function 'nuc_unlock' [-Werror,-Wunused-function]

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

commit 492da4d56dc00f0572ee66b9a7e0b517ce9979c3
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Nov 13 11:05:37 2022 +0800

    Fix Error: chip/nuc_timerisr.c:105:20: error: unused function 'nuc_unlock' [-Werror,-Wunused-function]
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 arch/arm/src/nuc1xx/nuc_timerisr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/src/nuc1xx/nuc_timerisr.c b/arch/arm/src/nuc1xx/nuc_timerisr.c
index b6eff265c6..d80f14d082 100644
--- a/arch/arm/src/nuc1xx/nuc_timerisr.c
+++ b/arch/arm/src/nuc1xx/nuc_timerisr.c
@@ -101,7 +101,7 @@
  *
  ****************************************************************************/
 
-#ifdef CONFIG_NUC_SYSTICK_CORECLK
+#ifndef CONFIG_NUC_SYSTICK_CORECLK
 static inline void nuc_unlock(void)
 {
   putreg32(0x59, NUC_GCR_REGWRPROT);
@@ -124,7 +124,7 @@ static inline void nuc_unlock(void)
  *
  ****************************************************************************/
 
-#ifdef CONFIG_NUC_SYSTICK_CORECLK
+#ifndef CONFIG_NUC_SYSTICK_CORECLK
 static inline void nuc_lock(void)
 {
   putreg32(0, NUC_GCR_REGWRPROT);