zephyr/samples/subsys/ipc/openamp/platform/platform.h
Kristian Klomsten Skordal 5eb882980d sample: add OpenAMP sample application
This commit adds a sample application using OpenAMP for remote procedure
calls on the LPCXpresso54114. It is adapted from the RPMsg-Lite sample
application added in PR #5960, and uses the IPM driver to provide
interprocessor interrupts.

Signed-off-by: Kristian Klomsten Skordal <kristian.skordal@nordicsemi.no>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-05-19 12:56:36 -05:00

26 lines
539 B
C

/*
* Copyright (c) 2018 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef PLATFORM_H__
#define PLATFORM_H__
#include <openamp/open_amp.h>
#define SHM_START_ADDRESS 0x04000400
#define SHM_SIZE 0x7c00
#define SHM_DEVICE_NAME "sramx.shm"
#define VRING_COUNT 2
#define VRING_RX_ADDRESS 0x04007800
#define VRING_TX_ADDRESS 0x04007C00
#define VRING_ALIGNMENT 4
#define VRING_SIZE 16
struct hil_proc *platform_init(int role);
#endif