/* Find the timer_user block for this owner. This just returns a pointer to the block, or NULL.  */
static timer_user* ICACHE_RAM_ATTR find_tu(os_param_t owner)
/* Find the timer_user block for this owner. This just returns a pointer to the block, or NULL.  */
static timer_user* ICACHE_RAM_ATTR find_tu(os_param_t owner)
{
    if ((*p)->owner == owner) {
      timer_user *result = *p;
      UNLOCK();
      return result;
    }
  }
  for (p = &active; *p; p = &((*p)->next)) {
    if ((*p)->owner == owner) {
      timer_user *result = *p;
      UNLOCK();
      return result;
    }
  }
  UNLOCK();
  return NULL;
}