summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew Barbier <dbarbi1@gmail.com>2018-07-05 22:32:56 -0500
committerDrew Barbier <dbarbi1@gmail.com>2018-07-05 22:32:56 -0500
commitc17273a65d0d2928217d587688f3fe2bea2406e8 (patch)
tree309bfb050cc141116768b0fe4d0a2fae72c94388
parentb5f83a89d41dc2bd0307694ffca4cb4136f32f86 (diff)
support the E20
-rw-r--r--bsp/env/coreip-e2-arty/platform.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/bsp/env/coreip-e2-arty/platform.h b/bsp/env/coreip-e2-arty/platform.h
index ba06160..9ae9864 100644
--- a/bsp/env/coreip-e2-arty/platform.h
+++ b/bsp/env/coreip-e2-arty/platform.h
@@ -79,7 +79,12 @@
#define NUM_GPIO 16
#define CLIC_NUM_INTERRUPTS 28 + 16
-#define CLIC_CONFIG_BITS 4
+
+#ifdef E20
+ #define CLIC_CONFIG_BITS 2
+#else
+ #define CLIC_CONFIG_BITS 4
+#endif
#define HAS_BOARD_BUTTONS