From 55e4b1a4b5d2a29f799a360ca0ac191a6de26135 Mon Sep 17 00:00:00 2001 From: asterix Date: Wed, 19 May 2010 12:26:51 +0000 Subject: [PATCH] Clean up. Silent warning. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3718 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/avr/drv/timer_avr.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); -- 2.25.1