From: asterix Date: Wed, 19 May 2010 12:26:51 +0000 (+0000) Subject: Clean up. Silent warning. X-Git-Tag: 2.5.0~199 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=55e4b1a4b5d2a29f799a360ca0ac191a6de26135;p=bertos.git Clean up. Silent warning. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3718 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/avr/drv/timer_avr.c b/bertos/cpu/avr/drv/timer_avr.c index 1ef5caec..ab8329a6 100644 --- a/bertos/cpu/avr/drv/timer_avr.c +++ b/bertos/cpu/avr/drv/timer_avr.c @@ -30,8 +30,6 @@ * * --> * - * \version $Id$ - * * \author Bernie Innocenti * \author Francesco Sacchi * \author Luca Ottaviano @@ -138,7 +136,7 @@ #else #error Unsupported value of TIMER_PRESCALER #endif - ; + TCNT0 = 0x00; /* Initialization of Timer/Counter */ REG_OCR0A = OCR_DIVISOR; /* Timer/Counter Output Compare Register */ @@ -206,7 +204,7 @@ /* Clear on Compare match & prescaler = 64, internal sys clock. When changing prescaler change TIMER_HW_HPTICKS_PER_SEC too */ TCNT2 = 0x00; /* initialization of Timer/Counter */ - REG_OCR2A = OCR_DIVISOR; /* Timer/Counter Output Compare Register */ + REG_OCR2A = (uint8_t)OCR_DIVISOR; /* Timer/Counter Output Compare Register */ /* Enable timer interrupts: Timer/Counter2 Output Compare (OCIE2) */ REG_TIMSK2 &= ~BV(TOIE2);