diff options
author | Uros Majstorovic <majstor@majstor.org> | 2019-10-18 18:54:04 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2019-10-18 18:54:04 +0200 |
commit | 15385be32753cd928c708e9478eda546c3eb1644 (patch) | |
tree | 6a193ce6cf425ae16c752a57c21689307d989738 /code/fe310/eos/net.c | |
parent | 85500fe0d01b691a9bdd8c2330d26d66bc2bc177 (diff) |
fixed interrupt priority defs
Diffstat (limited to 'code/fe310/eos/net.c')
-rw-r--r-- | code/fe310/eos/net.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |