cleaning up code and comments in main - getting rid of leftover stuff from experiments

This commit is contained in:
Zach Eveland 2011-10-21 17:25:59 -04:00
parent ad95bc05f4
commit 629788e47c
1 changed files with 5 additions and 7 deletions

View File

@ -19,17 +19,15 @@ void entrypoint(void)
::);
}
ISR(BADISR_vect)
{
L_LED_ON();
}
int main(void) __attribute__ ((naked));
int main()
{
{
wdt_disable();
BOARD_INIT();
/* move interrupts to boot section:
* uses inline assembly because the procedure must be completed in four cycles.
* seems to fail if called before disabling WDT and calling BOARD_INIT()
*/
asm volatile (
"ldi r16, 0x01\n" // (1<<IVCE) /* Enable change of interrupt vectors */
"out 0x35, r16\n" // MCUCR