dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_heap.h
Go to the documentation of this file.
1 
12 /*
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 3 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful, but
19  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  * for more details.
22  *
23  * You should have received a copy of the GNU General Public License along
24  * with this program; if not, see <http://www.gnu.org/licenses/>
25  */
26 
27 #ifndef PIOS_HEAP_H
28 #define PIOS_HEAP_H
29 
30 #include <stdlib.h> /* size_t */
31 #include <stdbool.h> /* bool */
32 
33 extern bool PIOS_heap_malloc_failed_p(void);
34 
35 extern void * PIOS_malloc_no_dma(size_t size);
36 extern void * PIOS_malloc(size_t size);
37 
38 extern void PIOS_free(void * buf);
39 
40 extern size_t PIOS_heap_get_free_size(void);
41 extern size_t PIOS_fastheap_get_free_size(void);
42 extern void PIOS_heap_initialize_blocks(void);
43 extern void PIOS_heap_increase_size(size_t bytes);
44 
45 #endif /* PIOS_HEAP_H */
size_t PIOS_fastheap_get_free_size(void)
Definition: pios_heap.c:221
void * PIOS_malloc(size_t size)
Definition: pios_heap.c:125
void * PIOS_malloc_no_dma(size_t size)
Definition: pios_heap.c:166
uint8_t bytes[2]
Definition: storm32bgc.c:156
void PIOS_heap_increase_size(size_t bytes)
Definition: pios_heap.c:233
void PIOS_heap_initialize_blocks(void)
Definition: pios_heap.c:228
void PIOS_free(void *buf)
Definition: pios_heap.c:174
bool PIOS_heap_malloc_failed_p(void)
Definition: pios_heap.c:47
size_t PIOS_heap_get_free_size(void)
Definition: pios_heap.c:74