X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fperformance_test.c;h=a5e897f16702a9ebdc3e4e13b334ab60c620f578;hb=c9c11514d91b8c19f77d65ac051b998bd99048b0;hp=de718bc54f63de6f42696de35f46ec751f373295;hpb=45ad29acafe8ee17f7b1bd5b933a0e04cd51c94e;p=avr-crypto-lib.git diff --git a/test_src/performance_test.c b/test_src/performance_test.c index de718bc..a5e897f 100644 --- a/test_src/performance_test.c +++ b/test_src/performance_test.c @@ -67,8 +67,7 @@ void startTimer(uint8_t granularity){ TCNT1 = 0; ovfcounter = 0; TCCR1A = 0x00; - TIMSK &= 0xC3; - TIMSK |= _BV(TOIE1); /* enable TOIE1 */ + TIMSK = _BV(TOIE1); /* enable TOIE1 */ TCCR1B = granularity & 0x7; /* start timer */ }