rt_MemBox.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*----------------------------------------------------------------------------
  2. * CMSIS-RTOS - RTX
  3. *----------------------------------------------------------------------------
  4. * Name: RT_MEMBOX.H
  5. * Purpose: Interface functions for fixed memory block management system
  6. * Rev.: V4.79
  7. *----------------------------------------------------------------------------
  8. *
  9. * Copyright (c) 1999-2009 KEIL, 2009-2017 ARM Germany GmbH. All rights reserved.
  10. *
  11. * SPDX-License-Identifier: Apache-2.0
  12. *
  13. * Licensed under the Apache License, Version 2.0 (the License); you may
  14. * not use this file except in compliance with the License.
  15. * You may obtain a copy of the License at
  16. *
  17. * www.apache.org/licenses/LICENSE-2.0
  18. *
  19. * Unless required by applicable law or agreed to in writing, software
  20. * distributed under the License is distributed on an AS IS BASIS, WITHOUT
  21. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  22. * See the License for the specific language governing permissions and
  23. * limitations under the License.
  24. *---------------------------------------------------------------------------*/
  25. /* Functions */
  26. #define rt_init_box _init_box
  27. #define rt_calloc_box _calloc_box
  28. extern U32 _init_box (void *box_mem, U32 box_size, U32 blk_size);
  29. extern void *rt_alloc_box (void *box_mem);
  30. extern void * _calloc_box (void *box_mem);
  31. extern U32 rt_free_box (void *box_mem, void *box);
  32. /*----------------------------------------------------------------------------
  33. * end of file
  34. *---------------------------------------------------------------------------*/