arch/arm/src/sam34/sam4cm_oneshot.c
/****************************************************************************
 * Name: sam_oneshot_max_delay
 *
 * Description:
 *   Determine the maximum delay of the one-shot timer (in microseconds)
 *
 ****************************************************************************/
sam_oneshot_max_delay
Description:
Determine the maximum delay of the one-shot timer (in microseconds)
sam_oneshot_max_delay Description : Determine the maximum delay of the one - shot timer ( in microseconds )
int sam_oneshot_max_delay(struct sam_oneshot_s *oneshot, uint64_t *usec)
{
  DEBUGASSERT(oneshot && usec);
  *usec = (0xffffull * USEC_PER_SEC) / (uint64_t)sam_tc_divfreq(oneshot->tch);
  return OK;
}
int sam_oneshot_max_delay ( struct sam_oneshot_s * oneshot , uint64_t * usec ) { DEBUGASSERT ( oneshot && usec ) ; * usec = ( 0xffffull * USEC_PER_SEC ) / ( uint64_t ) sam_tc_divfreq ( oneshot -> tch ) ; return OK ; }
Name: sam_oneshot_max_delay
 Description:
   Determine the maximum delay of the one-shot timer (in microseconds)
Name : sam_oneshot_max_delay Description : Determine the maximum delay of the one - shot timer ( in microseconds )