From 15385be32753cd928c708e9478eda546c3eb1644 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Fri, 18 Oct 2019 18:54:04 +0200 Subject: fixed interrupt priority defs --- code/fe310/eos/spi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'code/fe310/eos/spi.c') diff --git a/code/fe310/eos/spi.c b/code/fe310/eos/spi.c index 86a967d..abc7de5 100644 --- a/code/fe310/eos/spi.c +++ b/code/fe310/eos/spi.c @@ -12,6 +12,7 @@ #include "net.h" #include "spi.h" #include "spi_def.h" +#include "irq_def.h" #define MIN(X, Y) (((X) < (Y)) ? (X) : (Y)) #define MAX(X, Y) (((X) > (Y)) ? (X) : (Y)) @@ -89,7 +90,7 @@ void eos_spi_init(void) { // There is no way here to change the CS polarity. // SPI1_REG(SPI_REG_CSDEF) = 0xFFFF; - eos_intr_set(INT_SPI1_BASE, 5, NULL); + eos_intr_set(INT_SPI1_BASE, IRQ_PRIORITY_SPI_XCHG, NULL); eos_evtq_set_handler(EOS_EVT_SPI, spi_handler_evt); eos_spi_dev_release(); } -- cgit v1.2.3