nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gn...@apache.org
Subject [incubator-nuttx] 02/02: arch/sim: initialize 'rxbuf_size' and 'txbuf_size' instead of 'buf_size'.
Date Mon, 27 Apr 2020 01:59:29 GMT
This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit ef9735febd37079a2795b0b265ba38c7839a1481
Author: zhongan <zhongan@xiaomi.com>
AuthorDate: Sun Apr 26 19:14:16 2020 +0800

    arch/sim: initialize 'rxbuf_size' and 'txbuf_size' instead of 'buf_size'.
    
    Change-Id: I5442f022cafef6c0f636614ba739e11249713134
    Signed-off-by: zhongan <zhongan@xiaomi.com>
---
 arch/sim/src/sim/up_rptun.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/sim/src/sim/up_rptun.c b/arch/sim/src/sim/up_rptun.c
index 9bf30a9..98098b0 100644
--- a/arch/sim/src/sim/up_rptun.c
+++ b/arch/sim/src/sim/up_rptun.c
@@ -218,7 +218,8 @@ int up_rptun_init(void)
       rsc->rpmsg_vring0.num         = 8;
       rsc->rpmsg_vring1.align       = 8;
       rsc->rpmsg_vring1.num         = 8;
-      rsc->buf_size                 = 0x800;
+      rsc->config.rxbuf_size        = 0x800;
+      rsc->config.txbuf_size        = 0x800;
 
       g_dev.shmem->base             = (uintptr_t)g_dev.shmem;
     }


Mime
View raw message