1 /*
2  * Copyright (c) 2006-2021, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2020-06-24     thread-liu   first version
9  */
10 
11 #ifndef __DRV_OPENAMP_H__
12 #define __DRV_OPENAMP_H__
13 
14 #include "board.h"
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 struct rt_openamp
20 {
21     rt_uint8_t   *rbuf;
22     rt_uint8_t   *tbuf;
23     volatile rt_uint16_t  rbuf_size;
24     volatile rt_uint16_t  tbuf_size;
25     volatile rt_uint16_t  rbuf_start;
26     volatile rt_uint16_t  rbuf_count;
27     volatile rt_uint16_t  tbuf_start;
28     volatile rt_uint16_t  tbuf_count;
29 };
30 
31 #define OPENAMP_THREAD_STACK_SIZE   512
32 #define OPENAMP_THREAD_PRIORITY     5
33 #define OPENAMP_THREAD_TIMESLICE    10
34 
35 #define MAX_BUFFER_SIZE             256
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif
42