Example #1
0
void aos_free(void *mem)
{
    if (mem == NULL) {
        return;
    }

    krhino_mm_free(mem);
}
Example #2
0
/**
 * @brief delete a task
 */
esp_err_t espos_task_del (
    espos_task_t task
)
{
    kstat_t ret;
    ktask_t *ptask = (ktask_t *)task;

    /* Be very careful here user_info[1] is used here */
    #if 0
    espos_sem_t *sem = ptask->user_info[1];
    if (sem && *sem) {
    	espos_sem_del(*sem);
    }
    if (sem){
        krhino_mm_free(sem);
    }
    #endif

    ret = krhino_task_dyn_del(ptask);

    return espos_err_map(ret);
}
Example #3
0
/*TODO: check return value */
void a_free(void *addr, uint8_t id)
{
    // UNUSED_ARGUMENT(id);
    krhino_mm_free(addr);
}