aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/arm/skyeye_common/armdefs.h
diff options
context:
space:
mode:
authorGravatar Lioncash <mathew1800@gmail.com>2015-02-11 10:14:20 -0500
committerGravatar Lioncash <mathew1800@gmail.com>2015-02-11 10:14:20 -0500
commit93cd199633faef7061ac77a4bb756f7cc1c704df (patch)
tree53fbc7430ff9890a332bad376fe7522587ca2468 /src/core/arm/skyeye_common/armdefs.h
parent088fab743fcff848b342efd52bfccaf6ee62a72f (diff)
arm: Change some more constants into enums
Diffstat (limited to 'src/core/arm/skyeye_common/armdefs.h')
-rw-r--r--src/core/arm/skyeye_common/armdefs.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/core/arm/skyeye_common/armdefs.h b/src/core/arm/skyeye_common/armdefs.h
index ff9296e0..97a34176 100644
--- a/src/core/arm/skyeye_common/armdefs.h
+++ b/src/core/arm/skyeye_common/armdefs.h
@@ -35,15 +35,20 @@
#define BITS(s, a, b) ((s << ((sizeof(s) * 8 - 1) - b)) >> (sizeof(s) * 8 - b + a - 1))
#define BIT(s, n) ((s >> (n)) & 1)
-#define LOW 0
-#define HIGH 1
-#define LOWHIGH 1
-#define HIGHLOW 2
-
-//the define of cachetype
-#define NONCACHE 0
-#define DATACACHE 1
-#define INSTCACHE 2
+// Signal levels
+enum {
+ LOW = 0,
+ HIGH = 1,
+ LOWHIGH = 1,
+ HIGHLOW = 2
+};
+
+// Cache types
+enum {
+ NONCACHE = 0,
+ DATACACHE = 1,
+ INSTCACHE = 2,
+};
#define POS(i) ( (~(i)) >> 31 )
#define NEG(i) ( (i) >> 31 )