1
0
mirror of https://github.com/elua/elua.git synced 2025-01-08 20:56:17 +08:00

AVR32 INT_TMR_MATCH fix

Actually disable the timer match interrupt for the non-cyclic mode.
This commit is contained in:
Bogdan Marinescu 2011-11-10 13:03:57 +02:00
parent d4f03efb96
commit cd530f9640

View File

@ -85,7 +85,10 @@ static void tmr_match_common_handler( int id )
else
cmn_int_handler( INT_TMR_MATCH, id );
if( avr32_timer_int_periodic_flag[ id ] != PLATFORM_TIMER_INT_CYCLIC )
{
tc->channel[ id ].IDR.cpcs = 1;
tc->channel[ id ].CMR.waveform.wavsel = TC_WAVEFORM_SEL_UP_MODE;
}
}
__attribute__((__interrupt__)) static void tmr0_int_handler()