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/net.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'code/fe310/eos/net.c') diff --git a/code/fe310/eos/net.c b/code/fe310/eos/net.c index 7d1803d..2d5e05e 100644 --- a/code/fe310/eos/net.c +++ b/code/fe310/eos/net.c @@ -14,6 +14,7 @@ #include "net.h" #include "net_def.h" +#include "irq_def.h" #define MIN(X, Y) (((X) < (Y)) ? (X) : (Y)) #define MAX(X, Y) (((X) > (Y)) ? (X) : (Y)) @@ -247,14 +248,14 @@ void eos_net_init(void) { GPIO_REG(GPIO_PULLUP_EN) |= (1 << NET_PIN_CTS); GPIO_REG(GPIO_INPUT_EN) |= (1 << NET_PIN_CTS); GPIO_REG(GPIO_RISE_IE) |= (1 << NET_PIN_CTS); - eos_intr_set(INT_GPIO_BASE + NET_PIN_CTS, 4, net_handler_cts); + eos_intr_set(INT_GPIO_BASE + NET_PIN_CTS, IRQ_PRIORITY_NET_CTS, net_handler_cts); GPIO_REG(GPIO_OUTPUT_EN) &= ~(1 << NET_PIN_RTS); GPIO_REG(GPIO_PULLUP_EN) |= (1 << NET_PIN_RTS); GPIO_REG(GPIO_INPUT_EN) |= (1 << NET_PIN_RTS); GPIO_REG(GPIO_RISE_IE) |= (1 << NET_PIN_RTS); GPIO_REG(GPIO_FALL_IE) |= (1 << NET_PIN_RTS); - eos_intr_set(INT_GPIO_BASE + NET_PIN_RTS, 4, net_handler_rts); + eos_intr_set(INT_GPIO_BASE + NET_PIN_RTS, IRQ_PRIORITY_NET_RTS, net_handler_rts); net_bufq_init(); eos_msgq_init(&net_send_q, net_sndq_array, NET_SIZE_BUFQ); -- cgit v1.2.3