AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/ASF/xmega/drivers/tc/tc.h
static inline void tc_enable_cc_channels (volatile void *tc,
					    enum tc_cc_channel_mask_enable_t
					    enablemask)
  {
    if (tc_is_tc0 (void *tc))
      {
	((TC0_t *) tc)->CTRLB |= enablemask;
      }
    else if (tc_is_tc1 (void *tc))
      {
	((TC1_t *) tc)->CTRLB |= enablemask & (TC1_CCAEN_bm | TC1_CCBEN_bm);
      }
  }
/**
 * \brief Enables Compare/Capture channel
 *
 * \param tc Pointer to TC module.
 * \param enablemask CC channel
 */
\brief Enables Compare/Capture channel
\param tc Pointer to TC module.
\param enablemask CC channel
\ brief Enables Compare / Capture channel \ param tc Pointer to TC module . \ param enablemask CC channel
static inline void tc_enable_cc_channels (volatile void *tc,
					    enum tc_cc_channel_mask_enable_t
					    enablemask)
  {
    if (tc_is_tc0 (void *tc))
      {
	((TC0_t *) tc)->CTRLB |= enablemask;
      }
    else if (tc_is_tc1 (void *tc))
      {
	((TC1_t *) tc)->CTRLB |= enablemask & (TC1_CCAEN_bm | TC1_CCBEN_bm);
      }
  }
static inline void tc_enable_cc_channels ( volatile void * tc , enum tc_cc_channel_mask_enable_t enablemask ) { if ( tc_is_tc0 ( void * tc ) ) { ( ( TC0_t * ) tc ) -> CTRLB |= enablemask ; } else if ( tc_is_tc1 ( void * tc ) ) { ( ( TC1_t * ) tc ) -> CTRLB |= enablemask & ( TC1_CCAEN_bm | TC1_CCBEN_bm ) ; } }
\brief Enables Compare/Capture channel
 \param tc Pointer to TC module.
\ brief Enables Compare / Capture channel \ param tc Pointer to TC module .