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:
Pieter De Gendt 2024-02-11 16:11:08 +01:00 committed by Alberto Escolar
parent df7750f63a
commit d2aaa65c14
2 changed files with 11 additions and 0 deletions

View file

@ -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

View file

@ -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);