From 833e3fadf745dfdec6c8208f6c3b2ffd7b5a6f7f Mon Sep 17 00:00:00 2001 From: Drew Barbier Date: Mon, 2 Jul 2018 01:48:36 -0500 Subject: dont use pre-empt with buttons --- software/clic_vectored/clic_vectored.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'software') diff --git a/software/clic_vectored/clic_vectored.c b/software/clic_vectored/clic_vectored.c index 9ae99e3..db2435d 100644 --- a/software/clic_vectored/clic_vectored.c +++ b/software/clic_vectored/clic_vectored.c @@ -44,14 +44,14 @@ void print_instructions() { } -void button_0_isr(void)__attribute__((interrupt("SiFive-CLIC-preemptible"))); +void button_0_isr(void) __attribute__((interrupt)); void button_0_isr(void) { // Toggle Red LED + const char button_0_msg[] = "Button 0 was pressed. Toggle Red.\n"; write (STDOUT_FILENO, button_0_msg, strlen(button_0_msg)); GPIO_REG(GPIO_OUTPUT_VAL) = GPIO_REG(GPIO_OUTPUT_VAL) ^ (0x1 << RED_LED_OFFSET); clic_clear_pending(&clic, (LOCALINTIDBASE + LOCAL_INT_BTN_0)); - clic_enable_interrupt(&clic, (LOCALINTIDBASE + LOCAL_INT_BTN_0)); } void button_0_setup(void) { -- cgit v1.2.1-18-gbd029