ATmega128RFA1 bug fix: no interrupt pin used (embedded radio).

Enabling interrupt caused MCU reset if using pin as GPIO.
This commit is contained in:
Ivan Delamer 2012-07-10 14:36:47 -06:00
parent 86115a392e
commit 17a62a649c

View file

@ -217,7 +217,7 @@ hal_init(void)
// TCCR1B = HAL_TCCR1B_CONFIG; /* Set clock prescaler */ // TCCR1B = HAL_TCCR1B_CONFIG; /* Set clock prescaler */
// TIFR1 |= (1 << ICF1); /* Clear Input Capture Flag. */ // TIFR1 |= (1 << ICF1); /* Clear Input Capture Flag. */
// HAL_ENABLE_OVERFLOW_INTERRUPT(); /* Enable Timer1 overflow interrupt. */ // HAL_ENABLE_OVERFLOW_INTERRUPT(); /* Enable Timer1 overflow interrupt. */
hal_enable_trx_interrupt(); /* Enable interrupts from the radio transceiver. */ //hal_enable_trx_interrupt(); /* NOT USED: Enable interrupt pin from the radio transceiver. */
} }
#elif defined(__AVR__) #elif defined(__AVR__)