7.1.3 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)
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 |
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 |