rpmsg_env_specific.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright 2021-2023 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 Zephyr specific constructions.
  16. *
  17. **************************************************************************/
  18. #ifndef RPMSG_ENV_SPECIFIC_H_
  19. #define RPMSG_ENV_SPECIFIC_H_
  20. #include "rpmsg_default_config.h"
  21. #if defined(RL_USE_STATIC_API) && (RL_USE_STATIC_API == 1)
  22. #include <zephyr.h>
  23. typedef k_sem LOCK_STATIC_CONTEXT;
  24. typedef k_msgq rpmsg_static_queue_ctxt;
  25. /* Queue object static storage size in bytes, should be defined as (2*RL_BUFFER_COUNT*sizeof(rpmsg_queue_rx_cb_data_t))
  26. This macro helps the application to statically allocate the queue object static storage memory. Note, the
  27. RL_BUFFER_COUNT is not applied for all instances when RL_ALLOW_CUSTOM_SHMEM_CONFIG is set to 1 ! */
  28. #define RL_ENV_QUEUE_STATIC_STORAGE_SIZE (2 * RL_BUFFER_COUNT * sizeof(rpmsg_queue_rx_cb_data_t))
  29. #endif
  30. #endif /* RPMSG_ENV_SPECIFIC_H_ */