mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
sim/sim_bringup: make rpmsg services init controled by CONFIG_RPMSG
Because all rpmsg services depends on RPMSG instead RPTUN Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
@@ -463,11 +463,12 @@ int sim_bringup(void)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_RPTUN
|
||||
#ifdef CONFIG_SIM_RPTUN_MASTER
|
||||
# ifdef CONFIG_SIM_RPTUN_MASTER
|
||||
sim_rptun_init("server-proxy", "proxy",
|
||||
SIM_RPTUN_MASTER | SIM_RPTUN_NOBOOT);
|
||||
#else
|
||||
# else
|
||||
sim_rptun_init("server-proxy", "server", SIM_RPTUN_SLAVE);
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEV_RPMSG
|
||||
@@ -483,7 +484,6 @@ int sim_bringup(void)
|
||||
#ifdef CONFIG_RPMSGMTD
|
||||
rpmsgmtd_register("server", "/dev/rammtd", NULL);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SIM_WTGAHRS2_UARTN
|
||||
#if CONFIG_SIM_WTGAHRS2_UARTN == 0
|
||||
|
||||
Reference in New Issue
Block a user