/* Delete a timer that was created by osTimerCreate.  */
osStatus osTimerDelete(osTimerId timer_id)
/* Delete a timer that was created by osTimerCreate.  */
osStatus osTimerDelete(osTimerId timer_id)
{
		BaseType_t ret = xTimerDelete(timer->timer, 0);
		if (ret == pdPASS) {
			timer->timer = NULL;
			return osOK;
		} else {
			return osErrorParameter;
		}
	} else {
		return osErrorParameter;
	}
}