ipc_service: Extend RPMsg structs and misc fixes
Extend the RPMsg structs to accommodate for the introduction of new backends and contextually fix the ipc_rpmsg_static_vrings_mi backend (the only user). Rework also some comments and ipc_service glue code. Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
parent
83d0c96915
commit
d7a40ba5d7
8 changed files with 55 additions and 12 deletions
|
@ -46,7 +46,10 @@ struct ipc_rpmsg_ept {
|
|||
struct rpmsg_endpoint ep;
|
||||
|
||||
/** Name of the endpoint. */
|
||||
const char *name;
|
||||
char name[RPMSG_NAME_SIZE];
|
||||
|
||||
/** Destination endpoint. */
|
||||
uint32_t dest;
|
||||
|
||||
/** Bound flag. */
|
||||
volatile bool bound;
|
||||
|
@ -77,6 +80,9 @@ struct ipc_rpmsg_instance {
|
|||
|
||||
/** EPT (instance) callback. */
|
||||
rpmsg_ept_cb cb;
|
||||
|
||||
/** Mutex for the instance. */
|
||||
struct k_mutex mtx;
|
||||
};
|
||||
|
||||
/** @brief Init an RPMsg instance.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue