kconfig: rename non-Kconfig CONFIG_* variables
CONFIG_* usually come from Kconfig, rename variables that are locally defined to avoid confusion about where they are set. Change-Id: I83b8459913c5deb68dc1b9f5386b8934363a6d1f Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
c6f4476bf6
commit
fdd045b52b
4 changed files with 9 additions and 9 deletions
|
@ -32,11 +32,11 @@
|
|||
#include <misc/util.h>
|
||||
#include <drivers/rand32.h>
|
||||
|
||||
#define CONFIG_ARCV2_TIMER0_INT_LVL IRQ_TIMER0
|
||||
#define CONFIG_ARCV2_TIMER0_INT_PRI 0
|
||||
#define ARCV2_TIMER0_INT_LVL IRQ_TIMER0
|
||||
#define ARCV2_TIMER0_INT_PRI 0
|
||||
|
||||
#define CONFIG_ARCV2_TIMER1_INT_LVL IRQ_TIMER1
|
||||
#define CONFIG_ARCV2_TIMER1_INT_PRI 1
|
||||
#define ARCV2_TIMER1_INT_LVL IRQ_TIMER1
|
||||
#define ARCV2_TIMER1_INT_PRI 1
|
||||
|
||||
#define INT_ENABLE_ARC ~(0x00000001 << 8)
|
||||
#define INT_ENABLE_ARC_BIT_POS (8)
|
||||
|
|
|
@ -32,8 +32,8 @@
|
|||
#include <misc/util.h>
|
||||
#include <drivers/rand32.h>
|
||||
|
||||
#define CONFIG_ARCV2_TIMER0_INT_LVL IRQ_TIMER0
|
||||
#define CONFIG_ARCV2_TIMER0_INT_PRI 0
|
||||
#define ARCV2_TIMER0_INT_LVL IRQ_TIMER0
|
||||
#define ARCV2_TIMER0_INT_PRI 0
|
||||
|
||||
#define CONFIG_ARCV2_TIMER1_INT_LVL IRQ_TIMER1
|
||||
#define CONFIG_ARCV2_TIMER1_INT_PRI 1
|
||||
|
|
|
@ -32,8 +32,8 @@
|
|||
#include <misc/util.h>
|
||||
#include <drivers/rand32.h>
|
||||
|
||||
#define CONFIG_ARCV2_TIMER0_INT_LVL IRQ_TIMER0
|
||||
#define CONFIG_ARCV2_TIMER0_INT_PRI 0
|
||||
#define ARCV2_TIMER0_INT_LVL IRQ_TIMER0
|
||||
#define ARCV2_TIMER0_INT_PRI 0
|
||||
|
||||
#define CONFIG_ARCV2_TIMER1_INT_LVL IRQ_TIMER1
|
||||
#define CONFIG_ARCV2_TIMER1_INT_PRI 1
|
||||
|
|
|
@ -451,6 +451,6 @@ void sys_clock_disable(void)
|
|||
|
||||
/* disable interrupt in the interrupt controller */
|
||||
|
||||
irq_disable(CONFIG_ARCV2_TIMER0_INT_LVL);
|
||||
irq_disable(ARCV2_TIMER0_INT_LVL);
|
||||
}
|
||||
#endif /* CONFIG_SYSTEM_CLOCK_DISABLE */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue