Function tc_enable_interrupt()

Enable the TC interrupts on the specified channel.

void tc_enable_interrupt(
		Tc * p_tc,
		uint32_t ul_channel,
		uint32_t ul_sources)

Table 1. Parameters
Data direction Parameter name Description

[in, out]

p_tc

Module hardware register base address pointer

[in]

ul_channel

Channel to configure

[in]

ul_sources

Bitmask of interrupt sources

Where the input parameter ul_sources can be one or more of the following:

Parameter Value

Description

TC_IER_COVFS

Enables the Counter Overflow Interrupt

TC_IER_LOVRS

Enables the Load Overrun Interrupt

TC_IER_CPAS

Enables the RA Compare Interrupt

TC_IER_CPBS

Enables the RB Compare Interrupt

TC_IER_CPCS

Enables the RC Compare Interrupt

TC_IER_LDRAS

Enables the RA Load Interrupt

TC_IER_LDRBS

Enables the RB Load Interrupt

TC_IER_ETRGS

Enables the External Trigger Interrupt