1 /* USER CODE BEGIN Header */
2 /**
3   ******************************************************************************
4   * @file    dm_alloc.h
5   * @author  GPM WBL Application Team
6   * @brief   Dynamic Memory Allocator
7   ******************************************************************************
8   * @attention
9   *
10   * Copyright (c) 2024 STMicroelectronics.
11   * All rights reserved.
12   *
13   * This software is licensed under terms that can be found in the LICENSE file
14   * in the root directory of this software component.
15   * If no LICENSE file comes with this software, it is provided AS-IS.
16   *
17   ******************************************************************************
18   */
19 /* USER CODE END Header */
20 
21 #ifndef __DM_ALLOC_H__
22 #define __DM_ALLOC_H__
23 /******************************************************************************
24  * Includes
25  *****************************************************************************/
26 #include <stdint.h>
27 /******************************************************************************
28  * CONSTANT SYMBOLS
29  *****************************************************************************/
30 /******************************************************************************
31  * LOCAL MACROS
32  *****************************************************************************/
33 /******************************************************************************
34  * TYPES
35  *****************************************************************************/
36 /******************************************************************************
37  * FUNCTION PROTOTYPES
38  *****************************************************************************/
39 void dm_init(uint16_t buffer_size, uint32_t *buffer_p);
40 void *dm_alloc(uint16_t size);
41 void *dm_realloc(void *buffer_p, uint16_t size);
42 void dm_free(void *buffer_p);
43 
44 #endif
45