![]() |
ChibiOS/RT Architecture - Reference Manual - Guides |
Core memory manager macros and structures. More...
Go to the source code of this file.
Defines | |
| #define | MEM_ALIGN_MASK (sizeof(stkalign_t) - 1) |
| Alignment mask constant. | |
| #define | MEM_ALIGN_SIZE(p) (((size_t)(p) + MEM_ALIGN_MASK) & ~MEM_ALIGN_MASK) |
| Alignment helper macro. | |
| #define | MEM_IS_ALIGNED(p) (((size_t)(p) & MEM_ALIGN_MASK) == 0) |
Returns whatever a pointer or memory size is aligned to the type align_t. | |
Typedefs | |
| typedef void *(* | memgetfunc_t )(size_t size) |
| Memory get function. | |
Functions | |
| void | core_init (void) |
| Low level memory manager initialization. | |
| void * | chCoreAlloc (size_t size) |
| Allocates a memory block. | |
| void * | chCoreAllocI (size_t size) |
| Allocates a memory block. | |
| size_t | chCoreStatus (void) |
| Core memory status. | |
Core memory manager macros and structures.
Definition in file chmemcore.h.
1.7.1