31 #if (CH_CFG_USE_MEMCORE == TRUE) || defined(__DOXYGEN__) 52 #if !defined(CH_CFG_MEMCORE_SIZE) || defined(__DOXYGEN__) 53 #define CH_CFG_MEMCORE_SIZE 0 60 #if CH_CFG_MEMCORE_SIZE < 0 61 #error "invalid CH_CFG_MEMCORE_SIZE value specified" 71 typedef void *(*memgetfunc_t)(
size_t size,
unsigned align);
76 typedef void *(*memgetfunc2_t)(
size_t size,
unsigned align,
size_t offset);
100 #if !defined(__DOXYGEN__) void * chCoreAllocAlignedWithOffset(size_t size, unsigned align, size_t offset)
Allocates a memory block.
static void chSysLock(void)
Enters the kernel lock state.
void * chCoreAllocAlignedWithOffsetI(size_t size, unsigned align, size_t offset)
Allocates a memory block.
void _core_init(void)
Low level memory manager initialization.
Type of memory core object.
static void chSysUnlock(void)
Leaves the kernel lock state.
memcore_t ch_memcore
Memory core descriptor.
static void * chCoreAlloc(size_t size)
Allocates a memory block.
static void * chCoreAllocI(size_t size)
Allocates a memory block.
size_t chCoreGetStatusX(void)
Core memory status.
static void * chCoreAllocAligned(size_t size, unsigned align)
Allocates a memory block.
uint8_t * nextmem
Next free address.
uint8_t * endmem
Final address.
static void * chCoreAllocAlignedI(size_t size, unsigned align)
Allocates a memory block.