/* err_t sys_sem_new(sys_sem_t *sem, u8_t count) Creates a new semaphore.  */
err_t sys_sem_new(sys_sem_t *sem, u8_t count)
/* err_t sys_sem_new(sys_sem_t *sem, u8_t count) Creates a new semaphore.  */
err_t sys_sem_new(sys_sem_t *sem, u8_t count)
{
    err_t ret = ERR_MEM;
    int stat = aos_sem_new(sem,count);
    if (stat == 0) {
        ret = ERR_OK;
    }
    return ret;
}