rt-thread/bsp/stm32/stm32mp157a-st-ev1/board/ports/OpenAMP/drv_openamp.h

42 lines
811 B
C
Raw Normal View History

2020-09-23 15:30:05 +08:00
/*
2021-03-14 15:33:55 +08:00
* Copyright (c) 2006-2021, RT-Thread Development Team
2020-09-23 15:30:05 +08:00
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-06-24 thread-liu first version
*/
#ifndef __DRV_OPENAMP_H__
#define __DRV_OPENAMP_H__
#include "board.h"
#ifdef __cplusplus
extern "C" {
#endif
struct rt_openamp
{
2021-03-14 15:33:55 +08:00
rt_uint8_t *rbuf;
rt_uint8_t *tbuf;
volatile rt_uint16_t rbuf_size;
2020-09-23 15:30:05 +08:00
volatile rt_uint16_t tbuf_size;
volatile rt_uint16_t rbuf_start;
volatile rt_uint16_t rbuf_count;
volatile rt_uint16_t tbuf_start;
volatile rt_uint16_t tbuf_count;
};
2021-03-14 15:33:55 +08:00
2020-09-23 15:30:05 +08:00
#define OPENAMP_THREAD_STACK_SIZE 512
#define OPENAMP_THREAD_PRIORITY 5
#define OPENAMP_THREAD_TIMESLICE 10
#define MAX_BUFFER_SIZE 256
2021-03-14 15:33:55 +08:00
2020-09-23 15:30:05 +08:00
#ifdef __cplusplus
}
#endif
#endif