diff options
| author | Megan Wachs <megan@sifive.com> | 2016-12-09 17:29:16 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-09 17:29:16 -0800 |
| commit | 7b9f876e2584e277accb2f38488fc0cfadcb6387 (patch) | |
| tree | 81fc4b0ef94dfa74c0db3a09d383dded5f9ab53b /bsp/env/hifive1.h | |
| parent | 7011ca48a2ef9205184a03a854ba310ebcda0e40 (diff) | |
| parent | a68a562a49da111ff722a1651dd6f74604d3247b (diff) | |
Merge pull request #20 from sifive/trap_entry
demo_gpio: Correct trap_entry handling to enable timer/ext interrupts
Diffstat (limited to 'bsp/env/hifive1.h')
| -rw-r--r-- | bsp/env/hifive1.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bsp/env/hifive1.h b/bsp/env/hifive1.h index f6bef9f..11b98f8 100644 --- a/bsp/env/hifive1.h +++ b/bsp/env/hifive1.h @@ -66,16 +66,14 @@ #define BUTTON_2_OFFSET 31 #define INT_DEVICE_BUTTON_0 (INT_GPIO_BASE + BUTTON_0_OFFSET) -#define INT_DEVICE_BUTTON_1 (INT_GPIO_BASE + BUTTON_0_OFFSET) -#define INT_DEVICE_BUTTON_2 (INT_GPIO_BASE + BUTTON_0_OFFSET) +#define INT_DEVICE_BUTTON_1 (INT_GPIO_BASE + BUTTON_1_OFFSET) +#define INT_DEVICE_BUTTON_2 (INT_GPIO_BASE + BUTTON_2_OFFSET) #endif #define HAS_HFXOSC 1 #define HAS_LFROSC_BYPASS 1 - - void write_hex(int fd, uint32_t hex); #endif /* _SIFIVE_HIFIVE1_H */ |
