aboutsummaryrefslogtreecommitdiffstats
path: root/boards/OLIMEX_AVR_MT_128/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'boards/OLIMEX_AVR_MT_128/board.c')
-rw-r--r--boards/OLIMEX_AVR_MT_128/board.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/boards/OLIMEX_AVR_MT_128/board.c b/boards/OLIMEX_AVR_MT_128/board.c
index ff1ee85e8..198e052c8 100644
--- a/boards/OLIMEX_AVR_MT_128/board.c
+++ b/boards/OLIMEX_AVR_MT_128/board.c
@@ -50,20 +50,6 @@ const PALConfig pal_default_config =
#endif /* HAL_USE_PAL */
/**
- * @brief Timer0 interrupt handler.
- */
-CH_IRQ_HANDLER(TIMER0_COMP_vect) {
-
- CH_IRQ_PROLOGUE();
-
- chSysLockFromIsr();
- chSysTimerHandlerI();
- chSysUnlockFromIsr();
-
- CH_IRQ_EPILOGUE();
-}
-
-/**
* Board-specific initialization code.
*/
void boardInit(void) {
@@ -74,20 +60,4 @@ void boardInit(void) {
EICRA = 0x00;
EICRB = 0x00;
EIMSK = 0x00;
-
- /*
- * Enables Idle mode for SLEEP instruction.
- */
- MCUCR = (1 << SE);
-
- /*
- * Timer 0 setup.
- */
- TCCR0 = (1 << WGM01) | (0 << WGM00) | /* CTC mode. */
- (0 << COM01) | (0 << COM00) | /* OC0A disabled. */
- (1 << CS02) | (0 << CS01) | (0 << CS00); /* CLK/64 clock. */
- OCR0 = F_CPU / 64 / CH_FREQUENCY - 1;
- TCNT0 = 0; /* Reset counter. */
- TIFR = (1 << OCF0); /* Reset pending. */
- TIMSK = (1 << OCIE0); /* IRQ on compare. */
}