Clean up. Silent warning.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 19 May 2010 12:26:51 +0000 (12:26 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 19 May 2010 12:26:51 +0000 (12:26 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3718 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/avr/drv/timer_avr.c

index 1ef5caec801ee67ae7dec43a9ec0d4ecc7fcabee..ab8329a69e34f2cd559781f1b0861acce45af6f0 100644 (file)
@@ -30,8 +30,6 @@
  *
  * -->
  *
- * \version $Id$
- *
  * \author Bernie Innocenti <bernie@codewiz.org>
  * \author Francesco Sacchi <batt@develer.com>
  * \author Luca Ottaviano <lottaviano@develer.com>
                        #else
                                #error Unsupported value of TIMER_PRESCALER
                        #endif
-               ;
+
                TCNT0 = 0x00;                 /* Initialization of Timer/Counter */
                REG_OCR0A = OCR_DIVISOR;           /* Timer/Counter Output Compare Register */
 
                /* 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);