aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorutzig <utzig@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-07-08 18:57:03 +0000
committerutzig <utzig@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-07-08 18:57:03 +0000
commit27ce73c013df91fc40d85fa585d6d2b995bd14fe (patch)
treeb4853d1d35d3b3fdf2d3457fca8f65b755e0292d
parentf7aebc96d5db995b2b6267fcaeeb1dec3b8d9140 (diff)
downloadChibiOS-27ce73c013df91fc40d85fa585d6d2b995bd14fe.tar.gz
ChibiOS-27ce73c013df91fc40d85fa585d6d2b995bd14fe.tar.bz2
ChibiOS-27ce73c013df91fc40d85fa585d6d2b995bd14fe.zip
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
-rw-r--r--os/hal/boards/ARDUINO_MEGA/board.c12
1 files changed, 0 insertions, 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. */
}