samples: ipc: openamp_rsc_table: Add shell backend
Add an ipc shell to the open-amp resource table sample. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
df7750f63a
commit
d2aaa65c14
|
@ -7,3 +7,6 @@ CONFIG_OPENAMP=y
|
|||
CONFIG_OPENAMP_RSC_TABLE_NUM_RPMSG_BUFF=8
|
||||
CONFIG_OPENAMP_RSC_TABLE=y
|
||||
CONFIG_OPENAMP_MASTER=n
|
||||
|
||||
CONFIG_SHELL=y
|
||||
CONFIG_SHELL_BACKEND_RPMSG=y
|
||||
|
|
|
@ -17,6 +17,10 @@
|
|||
#include <metal/device.h>
|
||||
#include <resource_table.h>
|
||||
|
||||
#ifdef CONFIG_SHELL_BACKEND_RPMSG
|
||||
#include <zephyr/shell/shell_rpmsg.h>
|
||||
#endif
|
||||
|
||||
#include <zephyr/logging/log.h>
|
||||
LOG_MODULE_REGISTER(openamp_rsc_table, LOG_LEVEL_DBG);
|
||||
|
||||
|
@ -363,6 +367,10 @@ void rpmsg_mng_task(void *arg1, void *arg2, void *arg3)
|
|||
goto task_end;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SHELL_BACKEND_RPMSG
|
||||
(void)shell_backend_rpmsg_init_transport(rpdev);
|
||||
#endif
|
||||
|
||||
/* start the rpmsg clients */
|
||||
k_sem_give(&data_sc_sem);
|
||||
k_sem_give(&data_tty_sem);
|
||||
|
|
Loading…
Reference in a new issue