From 492da4d56dc00f0572ee66b9a7e0b517ce9979c3 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 13 Nov 2022 11:05:37 +0800 Subject: [PATCH] Fix Error: chip/nuc_timerisr.c:105:20: error: unused function 'nuc_unlock' [-Werror,-Wunused-function] Signed-off-by: Xiang Xiao --- 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 b6eff265c60..d80f14d0822 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);