From 1f13402c253b53637b0add20ced31f0fedad313f Mon Sep 17 00:00:00 2001 From: akif Date: Tue, 1 Jun 2021 17:26:51 -0700 Subject: [PATCH 1/2] Add MSI definition for RISCV scorpio --- include/arch/riscv/arch.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/arch/riscv/arch.h b/include/arch/riscv/arch.h index f317eef8d4da0..08fbcbe67621b 100644 --- a/include/arch/riscv/arch.h +++ b/include/arch/riscv/arch.h @@ -279,6 +279,13 @@ typedef struct { uint8_t pmp_attr; } k_mem_partition_attr_t; +struct scorpio_msi_vector { + unsigned int irq; + uint8_t vector; +}; + +typedef struct scorpio_msi_vector arch_msi_vector_t; + void arch_irq_enable(unsigned int irq); void arch_irq_disable(unsigned int irq); int arch_irq_is_enabled(unsigned int irq); From f6a26a9ee30ad25055b065aaa7a700f79b1e9446 Mon Sep 17 00:00:00 2001 From: akif Date: Tue, 1 Jun 2021 17:49:38 -0700 Subject: [PATCH 2/2] Update echo app proj config --- samples/net/sockets/echo/prj.conf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/samples/net/sockets/echo/prj.conf b/samples/net/sockets/echo/prj.conf index 6526148e0a131..8f3f10b798c43 100644 --- a/samples/net/sockets/echo/prj.conf +++ b/samples/net/sockets/echo/prj.conf @@ -16,5 +16,4 @@ CONFIG_TEST_RANDOM_GENERATOR=y # Network address config CONFIG_NET_CONFIG_SETTINGS=y CONFIG_NET_CONFIG_NEED_IPV4=y -CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.1" -CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.0.2.2" +CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.168.1.78"