mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-29 18:52:13 +01:00
cleaning up code and comments in main - getting rid of leftover stuff from experiments
This commit is contained in:
parent
f59451b04d
commit
0dc5f19ea9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user