/* In a single threaded sys_arch implementation, this function will simply return a pointer to a global sys_timeouts variable stored in the sys_arch module.  */
struct sys_timeouts* sys_arch_timeouts(void)
/* In a single threaded sys_arch implementation, this function will simply return a pointer to a global sys_timeouts variable stored in the sys_arch module.  */
struct sys_timeouts* sys_arch_timeouts(void)
{
int i;
xTaskHandle pid;
struct timeoutlist *tl;
	pid = xTaskGetCurrentTaskHandle( );
	for(i = 0; i < nextthread; i++)
	{
		tl = &timeoutlist[i];
		if(tl->pid == pid)
		{
			return &(tl->timeouts);
		}
	}
	return NULL;
}