From 27ce73c013df91fc40d85fa585d6d2b995bd14fe Mon Sep 17 00:00:00 2001 From: utzig Date: Tue, 8 Jul 2014 18:57:03 +0000 Subject: [PATCH] Removed duplicated initialization which is already done in hal git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7014 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/boards/ARDUINO_MEGA/board.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/os/hal/boards/ARDUINO_MEGA/board.c b/os/hal/boards/ARDUINO_MEGA/board.c index 07ead2c7e..d4a6d7911 100644 --- a/os/hal/boards/ARDUINO_MEGA/board.c +++ b/os/hal/boards/ARDUINO_MEGA/board.c @@ -72,16 +72,4 @@ void boardInit(void) { EICRB = 0x00; EIMSK = 0x00; - /* - * Timer 0 setup. - */ - TCCR0A = (1 << WGM01) | (0 << WGM00) | /* CTC mode. */ - (0 << COM0A1) | (0 << COM0A0) | /* OC0A disabled. */ - (0 << COM0B1) | (0 << COM0B0); /* OC0B disabled. */ - TCCR0B = (0 << WGM02) | /* CTC mode. */ - (0 << CS02) | (1 << CS01) | (1 << CS00); /* CLK/64 clock. */ - OCR0A = F_CPU / 64 / CH_CFG_ST_FREQUENCY - 1; - TCNT0 = 0; /* Reset counter. */ - TIFR0 = (1 << OCF0A); /* Reset pending. */ - TIMSK0 = (1 << OCIE0A); /* IRQ on compare. */ }