/** * @brief Allocates a memory block. * @details The size of the returned block is aligned to the alignment * type so it is not possible to allocate less * than <code>MEM_ALIGN_SIZE</code>. * * @param[in] size the size of the block to be allocated * @return A pointer to the allocated memory block. * @retval NULL allocation failed, core memory exhausted. * * @api */ void *chCoreAlloc(size_t size) { void *p; chSysLock(); p = chCoreAllocI(size); chSysUnlock(); return p; }
void *Core::allocI(size_t size) { return chCoreAllocI(size); }