Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/include/openamp/hil.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ struct hil_proc {
struct metal_list node;
};

#ifdef __cplusplus
extern "C" {
#endif

/**
* hil_create_proc
*
Expand Down Expand Up @@ -596,6 +600,10 @@ int hil_set_rpmsg_channel (struct hil_proc *proc, int index,
int hil_set_vdev_rst_cb (struct hil_proc *proc, int index,
hil_proc_vdev_rst_cb_t cb);

#ifdef __cplusplus
} // extern "C"
#endif

/**
*
* This structure is an interface between HIL and platform porting
Expand Down
8 changes: 8 additions & 0 deletions lib/include/openamp/remoteproc.h
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,10 @@ struct rsc_table_info {
#define RPROC_ERR_PARAM (RPROC_ERR_BASE -12)
#define RPROC_ERR_PTR (void*)0xDEADBEAF

#ifdef __cplusplus
extern "C" {
#endif

/**
* remoteproc_resource_init
*
Expand Down Expand Up @@ -515,4 +519,8 @@ int remoteproc_boot(struct remote_proc *rproc);
*/
int remoteproc_shutdown(struct remote_proc *rproc);

#ifdef __cplusplus
} // extern "C"
#endif

#endif /* REMOTEPROC_H_ */
8 changes: 8 additions & 0 deletions lib/include/openamp/rpmsg.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ struct rpmsg_endpoint {
struct metal_list node;
};

#ifdef __cplusplus
extern "C" {
#endif

struct rpmsg_endpoint *rpmsg_create_ept(struct rpmsg_channel *rp_chnl,
rpmsg_rx_cb_t cb, void *priv,
uint32_t addr);
Expand Down Expand Up @@ -584,4 +588,8 @@ struct rpmsg_channel *rpmsg_create_channel(struct remote_device *rdev,
*/
void rpmsg_delete_channel(struct rpmsg_channel *rp_chnl);

#ifdef __cplusplus
} // extern "C"
#endif

#endif /* _RPMSG_H_ */