diff options
author | Megan Wachs <megan@sifive.com> | 2016-12-11 20:55:03 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-11 20:55:03 -0800 |
commit | 5ae9732432b0829b4b77856ebf8c87aed3e843c9 (patch) | |
tree | 4b718239b3850cd58b072f0e72bb0fbb2ff3b455 /bsp/env | |
parent | 799dd4689d57af70b8c829307811679dd7c8af34 (diff) | |
parent | 860d38c9dcf0553241da4090e5502650e0399f1c (diff) |
Merge pull request #22 from sifive/more_defines
Add NUM_GPIO definitions
Diffstat (limited to 'bsp/env')
-rw-r--r-- | bsp/env/freedom-e300-arty/init.c | 1 | ||||
-rw-r--r-- | bsp/env/freedom-e300-arty/platform.h | 5 | ||||
-rw-r--r-- | bsp/env/freedom-e300-hifive1/entry.S | 1 | ||||
-rw-r--r-- | bsp/env/freedom-e300-hifive1/platform.h | 2 |
4 files changed, 8 insertions, 1 deletions
diff --git a/bsp/env/freedom-e300-arty/init.c b/bsp/env/freedom-e300-arty/init.c index 37e9725..1f26b19 100644 --- a/bsp/env/freedom-e300-arty/init.c +++ b/bsp/env/freedom-e300-arty/init.c @@ -1,3 +1,4 @@ +//See LICENSE for license details. #include <stdint.h> #include <unistd.h> diff --git a/bsp/env/freedom-e300-arty/platform.h b/bsp/env/freedom-e300-arty/platform.h index c408ac4..1f62956 100644 --- a/bsp/env/freedom-e300-arty/platform.h +++ b/bsp/env/freedom-e300-arty/platform.h @@ -109,7 +109,10 @@ // Misc #include <stdint.h> - + + +#define NUM_GPIO 32 + #define PLIC_NUM_INTERRUPTS 52 #define PLIC_NUM_PRIORITIES 7 diff --git a/bsp/env/freedom-e300-hifive1/entry.S b/bsp/env/freedom-e300-hifive1/entry.S index 524f8ee..3eb2638 100644 --- a/bsp/env/freedom-e300-hifive1/entry.S +++ b/bsp/env/freedom-e300-hifive1/entry.S @@ -1,3 +1,4 @@ +// See LICENSE for License Details #ifndef ENTRY_S #define ENTRY_S diff --git a/bsp/env/freedom-e300-hifive1/platform.h b/bsp/env/freedom-e300-hifive1/platform.h index f0c763a..eca708e 100644 --- a/bsp/env/freedom-e300-hifive1/platform.h +++ b/bsp/env/freedom-e300-hifive1/platform.h @@ -119,6 +119,8 @@ #include <stdint.h> +#define NUM_GPIO 32 + #define PLIC_NUM_INTERRUPTS 52 #define PLIC_NUM_PRIORITIES 7 |