|
|
@@ -128,7 +128,12 @@
|
|
128
|
128
|
|
|
129
|
129
|
/* onboard LED is used to indicate, that the bootloader was entered (3x flashing) */
|
|
130
|
130
|
/* if monitor functions are included, LED goes on after monitor was entered */
|
|
131
|
|
-#if defined __AVR_ATmega128__ || defined __AVR_ATmega1280__
|
|
|
131
|
+#if defined ROVERIF
|
|
|
132
|
+#define LED_DDR DDRD
|
|
|
133
|
+#define LED_PORT PORTD
|
|
|
134
|
+#define LED_PIN PIND
|
|
|
135
|
+#define LED PIND7
|
|
|
136
|
+#elif defined __AVR_ATmega128__ || defined __AVR_ATmega1280__
|
|
132
|
137
|
/* Onboard LED is connected to pin PB7 (e.g. Crumb128, PROBOmega128, Savvy128, Arduino Mega) */
|
|
133
|
138
|
#define LED_DDR DDRB
|
|
134
|
139
|
#define LED_PORT PORTB
|
|
|
@@ -583,7 +588,7 @@ int main(void)
|
|
583
|
588
|
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega1281__)
|
|
584
|
589
|
while(bit_is_set(EECR,EEPE)); //Wait for previous EEPROM writes to complete
|
|
585
|
590
|
#else
|
|
586
|
|
- while(bit_is_set(EECR,EEWE)); //Wait for previous EEPROM writes to complete
|
|
|
591
|
+ while(bit_is_set(EECR,EEPE)); //Wait for previous EEPROM writes to complete
|
|
587
|
592
|
#endif
|
|
588
|
593
|
asm volatile(
|
|
589
|
594
|
"clr r17 \n\t" //page_word_count
|