drv_openamp.h 834 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (c) 2006-2022, 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. #ifndef __DRV_OPENAMP_H__
  11. #define __DRV_OPENAMP_H__
  12. #include "board.h"
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. struct rt_openamp
  17. {
  18. rt_uint8_t *rbuf;
  19. rt_uint8_t *tbuf;
  20. volatile rt_uint16_t rbuf_size;
  21. volatile rt_uint16_t tbuf_size;
  22. volatile rt_uint16_t rbuf_start;
  23. volatile rt_uint16_t rbuf_count;
  24. volatile rt_uint16_t tbuf_start;
  25. volatile rt_uint16_t tbuf_count;
  26. };
  27. #define OPENAMP_THREAD_STACK_SIZE 512
  28. #define OPENAMP_THREAD_PRIORITY 5
  29. #define OPENAMP_THREAD_TIMESLICE 10
  30. #define MAX_BUFFER_SIZE 256
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif