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