From 7612c956f3f2bba9b2ba01b8731297fd9c86dd21 Mon Sep 17 00:00:00 2001 From: lottaviano Date: Thu, 14 Apr 2011 10:13:55 +0000 Subject: [PATCH] Remove unneeded instruction in AVR timer. The ASSR register is used for asynchronous counter timer2. Checked for ATmega8/16, ATmega48/168/328, and ATmega1280. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4860 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/avr/drv/timer_mega.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/bertos/cpu/avr/drv/timer_mega.c b/bertos/cpu/avr/drv/timer_mega.c index d6e88d21..8b760454 100644 --- a/bertos/cpu/avr/drv/timer_mega.c +++ b/bertos/cpu/avr/drv/timer_mega.c @@ -126,8 +126,6 @@ REG_TIFR0 = BV(BIT_OCF0A) | BV(TOV0); /* Setup Timer/Counter interrupt */ - ASSR = 0x00; /* Internal system clock */ - REG_TCCR0A = 0; // TCCR2 reg could be separate or a unique register with both A & B values, this is needed to REG_TCCR0B = 0; -- 2.25.1