rpmsg_env_specific.h 826 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright 2021 NXP
  3. * All rights reserved.
  4. *
  5. *
  6. * SPDX-License-Identifier: BSD-3-Clause
  7. */
  8. /**************************************************************************
  9. * FILE NAME
  10. *
  11. * rpmsg_env_specific.h
  12. *
  13. * DESCRIPTION
  14. *
  15. * This file contains rt-thread specific constructions.
  16. *
  17. **************************************************************************/
  18. #ifndef RPMSG_ENV_SPECIFIC_H_
  19. #define RPMSG_ENV_SPECIFIC_H_
  20. #include <rtthread.h>
  21. #include <stdint.h>
  22. #include "rpmsg_default_config.h"
  23. typedef struct
  24. {
  25. uint32_t src;
  26. void *data;
  27. uint32_t len;
  28. } rpmsg_queue_rx_cb_data_t;
  29. #if defined(RL_USE_STATIC_API) && (RL_USE_STATIC_API == 1)
  30. typedef struct rt_mutex LOCK_STATIC_CONTEXT;
  31. typedef struct rt_messagequeue rpmsg_static_queue_ctxt;
  32. #endif
  33. #endif /* RPMSG_ENV_SPECIFIC_H_ */