mirror of
https://github.com/apache/nuttx.git
synced 2026-08-26 11:50:50 +00:00
Fix Error: chip/nuc_timerisr.c:105:20: error: unused function 'nuc_unlock' [-Werror,-Wunused-function]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
fb618666f6
commit
492da4d56d
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue