summaryrefslogtreecommitdiff
path: root/code/fe310/eos/spi.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2019-10-18 18:54:04 +0200
committerUros Majstorovic <majstor@majstor.org>2019-10-18 18:54:04 +0200
commit15385be32753cd928c708e9478eda546c3eb1644 (patch)
tree6a193ce6cf425ae16c752a57c21689307d989738 /code/fe310/eos/spi.c
parent85500fe0d01b691a9bdd8c2330d26d66bc2bc177 (diff)
fixed interrupt priority defs
Diffstat (limited to 'code/fe310/eos/spi.c')
-rw-r--r--code/fe310/eos/spi.c3
1 files changed, 2 insertions, 1 deletions
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();
}