|
ChibiOS 21.11.4
|
Memory heaps code. More...
#include "ch.h"Go to the source code of this file.
Macros | |
| #define | H_LOCK(h) |
| #define | H_UNLOCK(h) |
| #define | H_BLOCK(hp) |
| #define | H_LIMIT(hp) |
| #define | H_NEXT(hp) |
| #define | H_PAGES(hp) |
| #define | H_HEAP(hp) |
| #define | H_SIZE(hp) |
| #define | NPAGES(p1, p2) |
Functions | |
| void | __heap_init (void) |
| Initializes the default heap. | |
| void | chHeapObjectInit (memory_heap_t *heapp, void *buf, size_t size) |
| Initializes a memory heap from a static memory area. | |
| void * | chHeapAllocAligned (memory_heap_t *heapp, size_t size, unsigned align) |
| Allocates a block of memory from the heap by using the first-fit algorithm. | |
| void | chHeapFree (void *p) |
| Frees a previously allocated memory block. | |
| size_t | chHeapStatus (memory_heap_t *heapp, size_t *totalp, size_t *largestp) |
| Reports the heap status. | |
Variables | |
| static memory_heap_t | default_heap |
| Default heap descriptor. | |
Memory heaps code.
Definition in file chmemheaps.c.